From: Duncan M. <dmu...@pa...> - 2003-10-26 12:26:18
|
On Sat, 25 Oct 2003 16:20:16 +0200, you wrote: >Hi Duncan, > >Duncan Murdoch <mi...@mu...> writes: >> Is there a simple function or macro to put into code to trap to the >> debugger (using Insight on top of gdb)? > >I haven't tried this myself with GCC/gdb, but with other compilers the >equivalent of asm("int 3") works fine on Intel. Thanks to all who responded. This seems to be the simplest solution. In GCC, the syntax is asm("int $3"); This will cause a break with Insight (the Cygwin version) stopped on the line following. Thanks! Duncan Murdoch |