This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 3/5] powerpc64-aix config patch
- From: Raunaq 12 <raunaq12 at in dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Cc: brobecker at adacore dot com
- Date: Wed, 10 Jul 2013 13:17:37 +0530
- Subject: [PATCH 3/5] powerpc64-aix config patch
powerpc64: Add support for host and target powerpc64.
Add new file config/powerpc/ppc64-aix.mh for host powerpc64 which includes
new file (inf-ptrace64)
Note :- inf-ptrace64.c is a file derived from inf-ptrace.c to make
appropiate 'ptrace' calls for 64 BIT mode.
( This is mentioned in the next patch [PATCH 4/5] )
Add new case to configure.host and configure.tgt to support powerpc64
running aix
---
ChangeLog-
* configure.tgt (powerpc64-*-aix*): Match powerpc64 running
aix.
* configure.host (powerpc64-*-aix*): Likewise.
* config/powerpc/ppc64-aix.mh: New File for powerpc running
aix host.
---
Index: ./gdb/config/powerpc/ppc64-aix.mh
===================================================================
--- /dev/null
+++ ./gdb/config/powerpc/ppc64-aix.mh
@@ -0,0 +1,8 @@
+# Host: IBM PowerPC 64 BIT running AIX
+
+# aix64-thread.o is not listed in NATDEPFILES as it is pulled in by
configure.
+NATDEPFILES= fork-child.o inf-ptrace64.o rs6000-nat.o
+
+# When compiled with cc, for debugging, this argument should be passed.
+# We have no idea who our current compiler is though, so we skip it.
+# MH_CFLAGS = -bnodelcsect
Index: gdb/configure
===================================================================
--- ./gdb.orig/configure.host
+++ ./gdb/configure.host
@@ -128,6 +128,8 @@ mips64*-*-openbsd*) gdb_host=obsd64 ;;
powerpc-*-aix* | rs6000-*-*)
gdb_host=aix ;;
+powerpc64-*-aix*)
+ gdb_host=ppc64-aix ;;
powerpc*-*-freebsd*) gdb_host=fbsd ;;
powerpc-*-linux*) gdb_host=linux ;;
powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
Index: gdb/configure.tgt
===================================================================
--- ./gdb.orig/configure.tgt
+++ ./gdb/configure.tgt
@@ -415,7 +415,7 @@ powerpc-*-openbsd*)
solib-svr4.o \
ravenscar-thread.o ppc-ravenscar-thread.o"
;;
-powerpc-*-aix* | rs6000-*-*)
+powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
# Target: PowerPC running AIX
gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \
ppc-sysv-tdep.o solib-svr4.o \
@@ -702,4 +702,6 @@ m68*-*-openbsd* | m88*-*-openbsd* | vax-
*-*-dicos*) gdb_osabi=GDB_OSABI_DICOS ;;
*-*-symbianelf*)
gdb_osabi=GDB_OSABI_SYMBIAN ;;
+powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
+ gdb_osabi=GDB_OSABI_AIX ;;
esac