Are ASSERT style macros prossible with gdb?

Prashant Deva fulcrum1@onlysmart.com
Fri Sep 20 01:44:00 GMT 2002


In VC++ you can put the expressions within an ASSERT macro the effect of
which being that while running if the expression evaluates to false the
program gives an option to start the debugger and break on the line on which
the assert statement evaluated to false.

I want to know if such kind of functionality is possible with gdb. Is there
anyway within the windows evnviroment that the running program if
encountered an error can send a msg to gdb to attach itself to the program
and break on the specific line?



More information about the Gdb mailing list