gdb/344: AIX4.3.2.0 build problem c_impl
Andrew Cagney
ac131313@cygnus.com
Wed Mar 27 20:58:00 GMT 2002
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=344
Hello,
This is a binutils problem (CC:'d). The attached patch, though,
hopefully fixes it.
Binutils, look ok?
Andrew
---
> In file rs6000-core.c line 441
>
> switch (CNEW_IMPL (core.new))
>
> new is (struct core_dumpx)
>
> On AIX 4.3.2 core_dumpx does not define c_impl
> but on AIX5 it does. I don't know about 4.3.3
>
> I don't know of a way to find the architecture
> from the core on AIX 4.3.2 so I have set
>
> arch = bfd_arch_powerpc;
> mach = bfd_mach_ppc;
>
> diff
> *** rs6000-core.c-orig Thu Feb 7 11:16:05 2002
> --- rs6000-core.c Thu Feb 7 11:17:27 2002
> ***************
> *** 437,443 ****
> {
> enum bfd_architecture arch;
> unsigned long mach;
> !
> switch (CNEW_IMPL (core.new))
> {
> case POWER_RS1:
> --- 437,443 ----
> {
> enum bfd_architecture arch;
> unsigned long mach;
> ! /* Problem on AIX4.3 core_dumpx does not define c_impl
> switch (CNEW_IMPL (core.new))
> {
> case POWER_RS1:
> ***************
> *** 451,456 ****
> --- 451,459 ----
> mach = bfd_mach_ppc;
> break;
> }
> + */
> + arch = bfd_arch_powerpc;
> + mach = bfd_mach_ppc;
> bfd_default_set_arch_mach (abfd, arch, mach);
> }
>
> This got it working but could do with some test hear
> for the 2 formats of struct core_dumpx
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <https://sourceware.org/pipermail/binutils/attachments/20020327/f7e55937/attachment.ksh>
More information about the Binutils
mailing list