From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19561 invoked by alias); 9 Jul 2006 20:26:58 -0000 Received: (qmail 19553 invoked by uid 22791); 9 Jul 2006 20:26:58 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 09 Jul 2006 20:26:56 +0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.4/8.13.4) with ESMTP id k69KQL2i019111; Sun, 9 Jul 2006 22:26:21 +0200 (CEST) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.6/8.13.6) with ESMTP id k69KQLri001449; Sun, 9 Jul 2006 22:26:21 +0200 (CEST) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.6/8.13.6/Submit) id k69KQKQg027664; Sun, 9 Jul 2006 22:26:20 +0200 (CEST) Date: Sun, 09 Jul 2006 20:26:00 -0000 Message-Id: <200607092026.k69KQKQg027664@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: drow@false.org CC: gdb-patches@sourceware.org In-reply-to: <20060707035420.GA8071@nevyn.them.org> (message from Daniel Jacobowitz on Thu, 6 Jul 2006 23:54:20 -0400) Subject: Re: [rft/symtab] Check the sizes of minimal symbols References: <20060707035420.GA8071@nevyn.them.org> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00072.txt.bz2 > Date: Thu, 6 Jul 2006 23:54:20 -0400 > From: Daniel Jacobowitz > > 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