When debugging C code with gdb, I often have to find where things are first declared, whether a type (structure) or a variable. According to this answer ( GDB: break if variable equal value ) it might not be possible in gdb. Is this true?
If it's not possible in gdb, are there other strategies? I have often used grep
, but this fails if there are too many results.