Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Are ASSERT style macros prossible with gdb?
@ 2002-09-20  1:44 Prashant Deva
  2002-09-26 17:18 ` Andrew Cagney
  0 siblings, 1 reply; 2+ messages in thread
From: Prashant Deva @ 2002-09-20  1:44 UTC (permalink / raw)
  To: 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.

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?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Are ASSERT style macros prossible with gdb?
  2002-09-20  1:44 Are ASSERT style macros prossible with gdb? Prashant Deva
@ 2002-09-26 17:18 ` Andrew Cagney
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cagney @ 2002-09-26 17:18 UTC (permalink / raw)
  To: Prashant Deva; +Cc: 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-27  0:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-20  1:44 Are ASSERT style macros prossible with gdb? Prashant Deva
2002-09-26 17:18 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox