If you have grepped the sources and not found any asm code for asm int 3
implemented, you could just actually use inline asm:
asm("int $0x3")
That's the gcc syntax anyway, you might have to change it depending on which
compiler you are using.
This is more of a library question than an IDE question though.
Alan
On Wed, Dec 9, 2009 at 11:37 PM, Eric Landuyt <[email protected]> wrote:
> Hello Alex,
>
> Wednesday, December 9, 2009, 12:42:27 AM, you wrote:
> BA> I can't find anywhere if QtCreator has support for DebugBreak ()
> BA> functionality available in Visual Studio.
>
> Which functionality are you looking for exactly ?
>
> DebugBreak() is a function exported by KERNEL32.DLL
> ( http://msdn.microsoft.com/en-us/library/ms679297(VS.85).aspx ) which
> does
> nothing more than calling NTDLL's DbgBreakPoint(), which itself is as tiny
> as:
>
> public DbgBreakPoint
> DbgBreakPoint proc near
> int 3 ; Trap to Debugger
> retn
> DbgBreakPoint endp
>
> So basically, calling DebugBreak() will throw a breakpoint exception in
> your
> process, and this exception should be catched by the current debugger if
> any
> (being VS, GDB or anything else).
>
> --
> Eric Landuyt, Developer - mailto:[email protected]
> DataRescue sa/nv - http://www.datarescue.com
>
> _______________________________________________
> Qt-creator mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator