From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4793 invoked by alias); 20 Dec 2004 22:35:05 -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 4646 invoked from network); 20 Dec 2004 22:34:52 -0000 Received: from unknown (HELO gizmo12ps.bigpond.com) (144.140.71.43) by sourceware.org with SMTP; 20 Dec 2004 22:34:52 -0000 Received: (qmail 21985 invoked from network); 20 Dec 2004 22:34:49 -0000 Received: from unknown (HELO psmam12.bigpond.com) (144.135.25.103) by gizmo12ps.bigpond.com with SMTP; 20 Dec 2004 22:34:49 -0000 Received: from cpe-144-136-221-26.sa.bigpond.net.au ([144.136.221.26]) by psmam12.bigpond.com(MAM REL_3_4_2a 234/14476862) with SMTP id 14476862; Tue, 21 Dec 2004 08:34:49 +1000 Received: by bubble.modra.org (Postfix, from userid 500) id 99E0E14CC8A; Tue, 21 Dec 2004 09:04:49 +1030 Date: Mon, 20 Dec 2004 22:35:00 -0000 From: Alan Modra To: Mark Kettenis Cc: binutils@sources.redhat.com, gdb@sources.redhat.com Subject: Re: Giving canonical sections a name breaks GDB? Message-ID: <20041220223449.GA13749@bubble.modra.org> Mail-Followup-To: Mark Kettenis , binutils@sources.redhat.com, gdb@sources.redhat.com References: <200412201241.iBKCfCiI021313@juw15.nfra.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200412201241.iBKCfCiI021313@juw15.nfra.nl> User-Agent: Mutt/1.4i X-SW-Source: 2004-12/txt/msg00251.txt.bz2 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. 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; -- Alan Modra IBM OzLabs - Linux Technology Centre