Can I specify that I want gdb to break at line x when char* x
points to a string whose value equals "hello"
? If yes, how?
How to set a conditional breakpoint in gdb, when char* x points to a string whose value equals “hello”
cconditional-breakpointdebugginggdb
Related Topic
- Objective-c – How to set a conditional breakpoint in Xcode based on an object string property
- Sqlite – Improve INSERT-per-second performance of SQLite
- Unix – gdb: breakpoint when register will have value 0xffaa
- Javascript – How to set a JavaScript breakpoint from code in Chrome
- Php – Reference – What does this error mean in PHP
Best Answer
You can use
strcmp
:20
is line number,x
can be any filename andy
can be any variable.