This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
conditional breakpoint with (char* ) string condition
- From: Fabio De Bona <Auslieferator at gmx dot net>
- To: gdb at sources dot redhat dot com
- Date: Fri, 12 May 2006 11:37:56 +0200
- Subject: conditional breakpoint with (char* ) string condition
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