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


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


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