Re: New warning in GDB 7.5

Eli Zaretskii
2012-08-18T21:01:29Z

> 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.

> Unless "main" and "Fmake_symbol" were settings

No, they are symbols (function names).

> I think the warning is actually correct: these commands have no
> effect.

They have a useful side effect.

> The warning was added to catch the situation where the wrong assignment
> operator was used.

Sigh. I guess we will have to live with this annoyance, then.