P
Pawel
Hallo group members.
Is it possible in gdb to setup breakpoint conditions to stop if char*
points to string that is equal to some string, for example
void fun(char* line) {
printf("%s\n", line); // breakpoint 1 is set on this line
};
I tried the following but these do not work:
(gud) cond 1 strcmp(line,"value")
(gud) cond 1 line == "value"
regards
Is it possible in gdb to setup breakpoint conditions to stop if char*
points to string that is equal to some string, for example
void fun(char* line) {
printf("%s\n", line); // breakpoint 1 is set on this line
};
I tried the following but these do not work:
(gud) cond 1 strcmp(line,"value")
(gud) cond 1 line == "value"
regards