Breaking on C labels?
Joel Brobecker
brobecker@adacore.com
Fri Jan 26 01:01:00 GMT 2007
> There's a risk that some symbol-lookup function would then select that
> label instead of the function entry label when you tried to look up the
> nearest label preceeding a given address.
Yes, I was actually also thinking about that... Even though GDB tends
to prefer debugging information over plain symbols, it still uses minsym
lookups during symbol/psymbol lookups...
This may not be as straightforward as it looks.
In any case, I was just curious about this, wondering whether we broke
this feature or never implemented it. Sounds like the latter. There are
other things that motivate me more than support for labels. I tend to
think that usage of labels in C should be relatively rare, and it's
pretty easy to implement ways of working around that limitation.
--
Joel
More information about the Gdb
mailing list