This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rft/symtab] Check the sizes of minimal symbols
On Wed, Jul 12, 2006 at 12:00:49AM +0200, Mark Kettenis wrote:
> > Date: Sun, 9 Jul 2006 16:35:57 -0400
> > From: Daniel Jacobowitz <drow@false.org>
> >
> > > Program received signal SIGSEGV, Segmentation fault.
> > > 0x1c0066a8 in lookup_minimal_symbol_by_pc_section (pc=469800299,
> > > section=0x800e95fc) at ../../../src/gdb/gdb/minsyms.c:535
> > > 535 if (MSYMBOL_SIZE (&msymbol[hi]) != 0
> >
> > I'm just guessing here but... is hi == -1 when that happens? Does
> > adding "hi >= 0 &&" to the front of that if statement help?
>
> Yes it does. No regressions on OpenBSD/i386. I'll try some of the
> other architectures as well later this week. Any in particular that
> you'd like to see tested?
Nothing jumps out at me; the things that seem likely to be a problem
are e.g. hppa/ia64/ppc64.
--
Daniel Jacobowitz
CodeSourcery