This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: solib.c bfd_elf_get_arch_size() changes break build
- To: Fernando Nasser <fnasser at cygnus dot com>
- Subject: Re: solib.c bfd_elf_get_arch_size() changes break build
- From: jtc at redback dot com (J.T. Conklin)
- Date: 18 Sep 2000 11:46:22 -0700
- Cc: Andrew Cagney <ac131313 at cygnus dot com>, gdb at sourceware dot cygnus dot com
- References: <5mk8gr5pbd.fsf@jtc.redback.com> <39337F40.E9211200@cygnus.com> <39C653C9.37377FB7@cygnus.com>
- Reply-To: jtc at redback dot com
>>>>> "Fernando" == Fernando Nasser <fnasser@cygnus.com> writes:
>> "J.T. Conklin" wrote:
>> >
>> > The changes to solib.c to use bfd_elf_get_arch_size() break the GDB
>> > build for a.out targets that use solib.c such as NetBSD/i386 1.4.
>> >
>> > In info_sharedlibrary_command(), it appears that the intent was for
>> > bfd_elf_get_arch_size() to fail at run time on non-elf targets.
>> > However, that function/macro is not available on those targets
>> > and GDB fails to link.
>> >
>> > I've enclosed the offending part of the diff.
>>
>> Has anyone had a chance to look at this?
>>
>> Andrew
>>
Fernando> I am getting complaints from everywhere about this. I think
Fernando> we will have to revert this change ASAP!
The problem I was encountering has been fixed.
As I recall, Andrew moved bfd_elf_get_arch_size() from bfd/elf.c to
bfd/bfd.c, renamed it to bfd_get_arch_size(), tweaked it to work on
non-ELF systems, and then fixed up GDB to match. Can you share any
more details wrt. the failures that have been reported? Are they
using current sources?
--jtc
--
J.T. Conklin
RedBack Networks