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
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: drow at false dot org
- Cc: gdb-patches at sourceware dot org
- Date: Sun, 9 Jul 2006 22:26:20 +0200 (CEST)
- Subject: Re: [rft/symtab] Check the sizes of minimal symbols
- References: <20060707035420.GA8071@nevyn.them.org>
> Date: Thu, 6 Jul 2006 23:54:20 -0400
> From: Daniel Jacobowitz <drow@false.org>
>
> This is something I've been meaning to do for years, on general principle.
> Much to my surprise it did very good things (~ 15% fails fixed) for my
> native amd64 test run, too, so I have a good example to illustrate with.
>
> In ELF, one of the properties of a symbol is its size. If left unspecified,
> the size is treated as zero. Some hand-written code may lack .size, but
> most compiled code will have it.
Cool! Unfortunately there seems to be something wrong with the patch.
On i386-pc-openbsd3.9, a gdb segfaults when I try to run anything.
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
Mark