This is the mail archive of the gdb@sourceware.org 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]

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


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