Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* conditional breakpoint with (char* ) string condition
@ 2006-05-12 12:43 Fabio De Bona
  2006-05-12 12:45 ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Fabio De Bona @ 2006-05-12 12:43 UTC (permalink / raw)
  To: gdb

Hi everyone,
I would like to set a conditional breakpoint with a condition that 
depends on the value of
a char* string, i.e. something like

b gui/R.cpp:190 if cmd=="train" (doesn't work of course)

resp.

b gui/R.cpp:190 if strcmp(cmd,"train")

is there a possibility to do this *without* changing the code (like 
setting a boolean or so in the source).

Regards

Fabio


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

end of thread, other threads:[~2006-05-16  3:32 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-12 12:43 conditional breakpoint with (char* ) string condition Fabio De Bona
2006-05-12 12:45 ` Eli Zaretskii
2006-05-12 13:53   ` Daniel Jacobowitz
2006-05-12 16:09     ` Eli Zaretskii
2006-05-12 16:21       ` Daniel Jacobowitz
2006-05-12 18:00         ` PAUL GILLIAM
2006-05-12 18:59           ` Jim Blandy
2006-05-15 17:55             ` Daniel Jacobowitz
2006-05-15 19:17               ` Jim Blandy
2006-05-15 19:51                 ` Daniel Jacobowitz
2006-05-15 22:44                   ` Jim Blandy
2006-05-16 12:39                     ` Joel Brobecker
2006-05-12 20:36           ` Eli Zaretskii
2006-05-13 11:24             ` PAUL GILLIAM

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