From 8fbb30b1240c0eeb5d73c92f73731a788a72fea2 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Thu, 12 Jun 2003 23:30:39 +0000 Subject: [PATCH] * configure.host, configure.tgt: Add entries for powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and powerpc/linux.mt. * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh: New files. --- gdb/ChangeLog | 6 ++++++ gdb/config/powerpc/nm-ppc64-linux.h | 27 +++++++++++++++++++++++++++ gdb/config/powerpc/ppc64-linux.mh | 19 +++++++++++++++++++ gdb/configure.host | 2 ++ gdb/configure.tgt | 1 + 5 files changed, 55 insertions(+) create mode 100644 gdb/config/powerpc/nm-ppc64-linux.h create mode 100644 gdb/config/powerpc/ppc64-linux.mh diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 40c00db84b9..bdeab021a80 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2003-06-12 Jim Blandy + * configure.host, configure.tgt: Add entries for + powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and + powerpc/linux.mt. + * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh: + New files. + * arch-utils.c (always_use_struct_convention): New function. * arch-utils.h (always_use_struct_convention): New prototype. * alpha-tdep.c (alpha_use_struct_convention): Delete. diff --git a/gdb/config/powerpc/nm-ppc64-linux.h b/gdb/config/powerpc/nm-ppc64-linux.h new file mode 100644 index 00000000000..5d1c7b6d9e0 --- /dev/null +++ b/gdb/config/powerpc/nm-ppc64-linux.h @@ -0,0 +1,27 @@ +/* IBM PowerPC64 native-dependent macros for GDB, the GNU debugger. + Copyright 2003 Free Software Foundation, Inc. + +This file is part of GDB. + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#ifndef NM_PPC64_LINUX_H + +#include "config/powerpc/nm-linux.h" + +#define PTRACE_ARG3_TYPE void * +#define PTRACE_XFER_TYPE long + +#endif /* NM_PPC64_LINUX_H */ diff --git a/gdb/config/powerpc/ppc64-linux.mh b/gdb/config/powerpc/ppc64-linux.mh new file mode 100644 index 00000000000..c7a69ea073c --- /dev/null +++ b/gdb/config/powerpc/ppc64-linux.mh @@ -0,0 +1,19 @@ +# Host: PowerPC64, running Linux + +XM_FILE= xm-linux.h +XM_CLIBS= + +NAT_FILE= nm-ppc64-linux.h +NATDEPFILES= infptrace.o inftarg.o fork-child.o linux-proc.o \ + ppc-linux-nat.o proc-service.o thread-db.o lin-lwp.o \ + gcore.o + +# The PowerPC has severe limitations on TOC size, and uses them even +# for non-PIC code. GDB overflows those tables when compiling with +# -mfull-toc (the default), so we need to ask GCC to use as few TOC +# entries as possible. +MH_CFLAGS= -mminimal-toc + +# The dynamically loaded libthread_db needs access to symbols in the +# gdb executable. +LOADLIBES= -ldl -rdynamic diff --git a/gdb/configure.host b/gdb/configure.host index 8f96b0a842c..0268a871af0 100644 --- a/gdb/configure.host +++ b/gdb/configure.host @@ -120,6 +120,8 @@ powerpc-*-aix*) gdb_host=aix432 ;; powerpc-*-linux*) gdb_host=linux ;; powerpc-*-netbsd*) gdb_host=nbsd ;; +powerpc64-*-linux*) gdb_host=ppc64-linux ;; + rs6000-*-lynxos*) gdb_host=rs6000lynx ;; rs6000-*-aix4*) gdb_host=aix4 ;; rs6000-*-*) gdb_host=rs6000 ;; diff --git a/gdb/configure.tgt b/gdb/configure.tgt index 45991d6c756..3f90ed2de0c 100644 --- a/gdb/configure.tgt +++ b/gdb/configure.tgt @@ -186,6 +186,7 @@ powerpc-*-aix*) gdb_target=aix ;; powerpc-*-linux*) gdb_target=linux build_gdbserver=yes ;; +powerpc64-*-linux*) gdb_target=linux ;; powerpc-*-vxworks*) gdb_target=vxworks ;; powerpc*-*-*) if test -f ../sim/ppc/Makefile; then gdb_target=ppc-sim -- 2.30.2