This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [PING] Re: Giving canonical sections a name breaks GDB?
- From: Mark Kettenis <kettenis at gnu dot org>
- To: ezannoni at redhat dot com, gdb at sources dot redhat dot com
- Date: Tue, 25 Jan 2005 22:09:14 +0100 (CET)
- Subject: Re: [PING] Re: Giving canonical sections a name breaks GDB?
- References: <200412201241.iBKCfCiI021313@juw15.nfra.nl> <20041220223449.GA13749@bubble.modra.org> <200412212027.iBLKRe7L000687@elgar.sibelius.xs4all.nl> <200501161944.j0GJi5Yj005805@elgar.sibelius.xs4all.nl>
[ Ping ]
Elena, is this patch ok?
Date: Tue, 21 Dec 2004 21:27:40 +0100 (CET)
From: Mark Kettenis <kettenis@gnu.org>
Date: Tue, 21 Dec 2004 09:04:49 +1030
From: Alan Modra <amodra@bigpond.net.au>
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;