This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Are ASSERT style macros prossible with gdb?
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: Prashant Deva <fulcrum1 at onlysmart dot com>
- Cc: gdb <gdb at sources dot redhat dot com>
- Date: Thu, 26 Sep 2002 20:18:50 -0400
- Subject: Re: Are ASSERT style macros prossible with gdb?
- References: <00a501c26081$cce7dbb0$e5698aca@homecomp>
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.
You might be able to do something using system ("gdb argv[0] getpid()");
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?
I'm not sure, but nana may also be useful.
http://www.gnu.org/software/nana/
Andrew