From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10353 invoked by alias); 21 Dec 2004 20:28:23 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 9720 invoked from network); 21 Dec 2004 20:27:56 -0000 Received: from unknown (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org with SMTP; 21 Dec 2004 20:27:56 -0000 Received: from elgar.sibelius.xs4all.nl (elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.0/8.13.0) with ESMTP id iBLKReWI009821; Tue, 21 Dec 2004 21:27:40 +0100 (CET) Received: from elgar.sibelius.xs4all.nl (localhost [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.12.6p3/8.12.6) with ESMTP id iBLKReFB000690; Tue, 21 Dec 2004 21:27:40 +0100 (CET) (envelope-from kettenis@elgar.sibelius.xs4all.nl) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.12.6p3/8.12.6/Submit) id iBLKRe7L000687; Tue, 21 Dec 2004 21:27:40 +0100 (CET) Date: Tue, 21 Dec 2004 20:28:00 -0000 Message-Id: <200412212027.iBLKRe7L000687@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: amodra@bigpond.net.au, ezannoni@redhat.com CC: binutils@sources.redhat.com, gdb@sources.redhat.com In-reply-to: <20041220223449.GA13749@bubble.modra.org> (message from Alan Modra on Tue, 21 Dec 2004 09:04:49 +1030) Subject: Re: Giving canonical sections a name breaks GDB? References: <200412201241.iBKCfCiI021313@juw15.nfra.nl> <20041220223449.GA13749@bubble.modra.org> X-SW-Source: 2004-12/txt/msg00267.txt.bz2 Date: Tue, 21 Dec 2004 09:04:49 +1030 From: Alan Modra On Mon, Dec 20, 2004 at 01:41:12PM +0100, Mark Kettenis wrote: > Any idea what's wrong? Try this * elfread.c (elf_symtab_read): Discard section syms. Thanks, yes, that solves the problem. Elena, is this ok? Perhaps it needs a comment? Mark Index: gdb/elfread.c =================================================================== RCS file: /cvs/src/src/gdb/elfread.c,v retrieving revision 1.47 diff -u -p -r1.47 elfread.c --- gdb/elfread.c 23 Oct 2004 16:18:08 -0000 1.47 +++ gdb/elfread.c 20 Dec 2004 22:34:20 -0000 @@ -254,6 +254,8 @@ elf_symtab_read (struct objfile *objfile &objfile->objfile_obstack); #endif } + else if (sym->flags & BSF_SECTION_SYM) + continue; else if (sym->flags & (BSF_GLOBAL | BSF_LOCAL | BSF_WEAK)) { struct minimal_symbol *msym;