This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: New warning in GDB 7.5
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sun, 19 Aug 2012 00:01:26 +0300
- Subject: Re: New warning in GDB 7.5
- References: <838vdcdl2q.fsf@gnu.org> <20120818205543.GL2798@adacore.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot 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.
> 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.