@Eric Thank you for the useful info. (BTW, I use QNX as a target, but that’s OK, I know it’s too much to expect help for it.) @Alan Thank you for assembler code too. I thought this feature needs integration with the IDE (QtCreator) for it to show correct source/pause at the correct line/etc. Thus the question in this forum.
From: [email protected] [mailto:[email protected]] On Behalf Of Alan Westbrook Sent: Thursday, December 10, 2009 12:20 AM To: [email protected] Subject: Re: [Qt-creator] DebugBreak () functionality 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]<mailto:[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]<mailto:[email protected]> DataRescue sa/nv - http://www.datarescue.com _______________________________________________ Qt-creator mailing list [email protected]<mailto:[email protected]> http://lists.trolltech.com/mailman/listinfo/qt-creator
_______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
