This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: gdb/344: AIX4.3.2.0 build problem c_impl
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: phil at mesmeric dot demon dot co dot uk, gdb-gnats at sources dot redhat dot com,binutils at sources dot redhat dot com, gdb/344 at redhat dot com
- Date: Wed, 27 Mar 2002 23:57:05 -0500
- Subject: Re: gdb/344: AIX4.3.2.0 build problem c_impl
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
>
2002-03-27 Andrew Cagney <ac131313@redhat.com>
* configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
is greater or equal to 4.3.3.
* configure: Regenerate.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/bfd/configure.in,v
retrieving revision 1.86
diff -u -r1.86 configure.in
--- configure.in 2002/02/18 12:16:55 1.86
+++ configure.in 2002/03/28 04:50:50
@@ -323,7 +323,8 @@
;;
rs6000-*-lynx*) COREFILE=lynx-core.lo ;;
changequote(,)dnl
- rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
+ rs6000-*-aix4.[4-9]* | powerpc-*-aix4.[4-9]* \
+ rs6000-*-aix4.3.[3-9]* | powerpc-*-aix4.3.[3-9]*)
changequote([,])dnl
COREFILE=rs6000-core.lo
COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"