This is the mail archive of the gdb-patches@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: New warning in GDB 7.5


On Mon, 20 Aug 2012 18:32:38 +0200, Eli Zaretskii wrote:
> > It will, because GDB generates symbols for each type.  See for example:
> > process_structure_scope -> new_symbol_full <DW_TAG_structure_type> ->
> > -> add_symbol_to_list
> 
> If it relies on DW_TAG_structure_type, it needs DWARF, perhaps even
> newer than DWARF-2, doesn't it?

I have verified it for DWARF (GDB no longer supports version 1 and any version 2
upwards behaves the same in this simple case).  I do not know if it works for
STABS and other formats but any non-DWARF format has poor debugging anyway and
there is normally no reason to use anything else than DWARF.


> Emacs debugging shouldn't depend on that.

We can conclude then it may be a workaround of GDB bugs in non-DWARF formats
support (maybe, maybe not).  I do not find meaningful to actively support
non-DWARF debugging, it is just best-effort.


Thanks,
Jan


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