This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [crash] Section index is uninitialized
- To: Daniel Berlin <dberlin at redhat dot com>, Richard Henderson <rth at redhat dot com>
- Subject: Re: [crash] Section index is uninitialized
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Thu, 30 Nov 2000 22:40:52 -0700
- Cc: gdb at sources dot redhat dot com
- References: <20001130174058.A16314@redhat.com> <m3wvdk21xf.fsf@dan2.cygnus.com>
On Nov 30, 11:36pm, Daniel Berlin wrote:
> > 4184 SYMBOL_VALUE_ADDRESS (sym) +=
> > (top-gdb) p *sym
> > $1 = {ginfo = {name = 0x1206e18f0 "_ZTIP1D", value = {ivalue = 4831863968,
> > block = 0x1200064a0, bytes = 0x1200064a0 "\206\002",
> > address = 4831863968, chain = 0x1200064a0}, language_specific = {
> > cplus_specific = {demangled_name = 0x0}, chill_specific = {
> > demangled_name = 0x0}}, language = language_cplus, section =-1, ^^
>
> That's the problem.
> Why it happens, no idea.
>
> If it helps, Kevin, we never set SYMBOL_SECTION in dwarf2read.
>
> Should we be setting it?
> We set it in stabsread.
The call to fixup_symbol_section() (which is one line before the line
indicated above) should be setting section to the section associated
with the minimal symbol. I think we need to find out why
fixup_symbol_section() is failing to do this. (Obviously, it could be
failing if if fails to locate the minimal symbol. If this is the
case, we need to find out if symbol simply doesn't exist in the minimal
symbol table or if it's a demangling problem... Or possibly there's
another reason why the symbol wouldn't be found.)
Kevin