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]

Re: Breaking on C labels?


> 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


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