Re: New warning in GDB 7.5

Mark Kettenis
2012-08-18T21:49:45Z

> Date: Sun, 19 Aug 2012 00:01:26 +0300
> From: Eli Zaretskii <eliz@gnu.org>
>
> > Date: Sat, 18 Aug 2012 13:55:43 -0700
> > From: Joel Brobecker <brobecker@adacore.com>
> > Cc: gdb-patches@sourceware.org
> >
> > > These come from the following 2 lines in src/.gdbinit:
> > >
> > > # Force loading of symbols, enough to give us VALBITS etc.
> > > set main
> > > # With some compilers, we need this to give us struct Lisp_Symbol etc.:
> > > set Fmake_symbol
> > > The comments explain why they are needed.
> >
> > Are these really doing anything?
>
> Yes. They force GDB to read the symbol table of a couple of object
> files, so the symbols from those files are known to GDB. That is
> needed for several commands in the file to work right from the start
> of the debugging session.

Sounds like a workaround for a bug in GDB to me.