This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [3/3, ppc64, bfd patch] eu-strip vs. func addresses for GDB inferior calls
- From: Alan Modra <amodra at gmail dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: binutils at sourceware dot org, elfutils-devel at lists dot fedorahosted dot org, gdb-patches at sourceware dot org
- Date: Thu, 24 Mar 2011 10:08:41 +1030
- Subject: Re: [3/3, ppc64, bfd patch] eu-strip vs. func addresses for GDB inferior calls
- References: <20110323153022.GA13679@host1.jankratochvil.net>
On Wed, Mar 23, 2011 at 04:30:22PM +0100, Jan Kratochvil wrote:
> * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Do not check for
> SEC_LOAD.
Not OK. ppc64_elf_get_synthetic_symtab just doesn't work when ABFD is
a separate debug info file.
> --- a/bfd/elf64-ppc.c
> +++ b/bfd/elf64-ppc.c
> @@ -3317,8 +3317,9 @@ ppc64_elf_get_synthetic_symtab (bfd *abfd,
> {
> if (sec->vma > ent)
> break;
> - if ((sec->flags & SEC_ALLOC) == 0
> - || (sec->flags & SEC_LOAD) == 0)
> + /* SEC_LOAD may not be set if ABFD is a separate debug info
> + file. */
> + if ((sec->flags & SEC_ALLOC) == 0)
> break;
> if ((sec->flags & SEC_CODE) != 0)
> s->section = sec;
--
Alan Modra
Australia Development Lab, IBM