posts - 4238, comments - 3946, trackbacks - 370

My Links

News



Subscribe Subscribe

image image image





This is my personal weblog. These postings are provided 'AS IS' with no warranties, and confer no rights. The views expressed on this weblog are mine alone and do not necessarily reflect the views of my employer.

Licenza Creative Commons

Tag Cloud

Archives

Post Categories

Usate ancora "int 3"?!?!? Ormai ha fatto il suo tempo... :-)

Soprattutto se volete portare il vostro codice su x64...

Visto che nel codice a 64bit non avete l'inline assembly, dovete usare "__debugbreak()":

This is a Visual C++ compiler intrinsic (defined in Visual C++ 2005 under vc\include\intrin.h, with tons of other cool intrinsics) that will effectively act "int 3" across all platforms. 

DebugBreak, the Win32 function call is still around, but in general using __debugbreak() is my preference, if for no other reason than it's not a function call (it's a compiler intrinsic), and you don't need debug symbols to get a readable call stack.

Fonte: No more "int 3"

Print | posted on giovedì 8 settembre 2005 12:35 |

Comments have been closed on this topic.

Powered by:
Powered By Subtext Powered By ASP.NET