This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Are ASSERT style macros prossible with gdb?


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]