Re: New warning in GDB 7.5

Eli Zaretskii
2012-08-20T16:33:33Z

> Date: Mon, 20 Aug 2012 16:24:17 +0200
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> Cc: eliz@gnu.org, brobecker@adacore.com, gdb-patches@sourceware.org
>
> On Sun, 19 Aug 2012 21:10:49 +0200, Mark Kettenis wrote:
> > set $tem = (struct Lisp_Symbol *) $ptr
> >
> > probably won't trigger a full symbol read since "struct Lisp_Symbol"
> > is a type and not a function or variable.
>
> 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? Emacs debugging shouldn't depend on
that.