From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27287 invoked by alias); 28 May 2003 19:05:34 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 27219 invoked from network); 28 May 2003 19:05:33 -0000 Received: from unknown (HELO zenia.red-bean.com) (12.223.225.216) by sources.redhat.com with SMTP; 28 May 2003 19:05:33 -0000 Received: from zenia.red-bean.com (localhost.localdomain [127.0.0.1]) by zenia.red-bean.com (8.12.5/8.12.5) with ESMTP id h4SJEKFq003989; Wed, 28 May 2003 14:14:21 -0500 Received: (from jimb@localhost) by zenia.red-bean.com (8.12.5/8.12.5/Submit) id h4SJEKN5003985; Wed, 28 May 2003 14:14:20 -0500 To: gdb-patches@sources.redhat.com Subject: [ppc64-linux]: Add basic native configury From: Jim Blandy Date: Wed, 28 May 2003 19:05:00 -0000 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-05/txt/msg00509.txt.bz2 2003-05-28 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. Index: gdb/configure.host =================================================================== RCS file: /cvs/src/src/gdb/configure.host,v retrieving revision 1.51 retrieving revision 1.51.8.1 diff -c -r1.51 -r1.51.8.1 *** gdb/configure.host 9 Apr 2003 16:19:51 -0000 1.51 --- gdb/configure.host 28 May 2003 16:51:20 -0000 1.51.8.1 *************** *** 120,125 **** --- 120,127 ---- 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 ;; Index: gdb/configure.tgt =================================================================== RCS file: /cvs/src/src/gdb/configure.tgt,v retrieving revision 1.104 retrieving revision 1.104.2.1 diff -c -r1.104 -r1.104.2.1 *** gdb/configure.tgt 25 May 2003 18:50:54 -0000 1.104 --- gdb/configure.tgt 28 May 2003 16:51:21 -0000 1.104.2.1 *************** *** 194,199 **** --- 194,200 ---- 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 Index: gdb/config/powerpc/nm-ppc64-linux.h =================================================================== RCS file: gdb/config/powerpc/nm-ppc64-linux.h diff -N gdb/config/powerpc/nm-ppc64-linux.h *** /dev/null 1 Jan 1970 00:00:00 -0000 --- gdb/config/powerpc/nm-ppc64-linux.h 28 May 2003 18:54:06 -0000 1.1.2.1 *************** *** 0 **** --- 1,26 ---- + /* 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 * + + #endif /* NM_PPC64_LINUX_H */ Index: gdb/config/powerpc/ppc64-linux.mh =================================================================== RCS file: gdb/config/powerpc/ppc64-linux.mh diff -N gdb/config/powerpc/ppc64-linux.mh *** /dev/null 1 Jan 1970 00:00:00 -0000 --- gdb/config/powerpc/ppc64-linux.mh 28 May 2003 18:54:06 -0000 1.1.2.1 *************** *** 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