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


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