Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [ppc64-linux]: Add basic native configury
@ 2003-05-28 19:05 Jim Blandy
  2003-06-11  0:30 ` Kevin Buettner
  0 siblings, 1 reply; 2+ messages in thread
From: Jim Blandy @ 2003-05-28 19:05 UTC (permalink / raw)
  To: gdb-patches


2003-05-28  Jim Blandy  <jimb@redhat.com>

	* 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ppc64-linux]: Add basic native configury
  2003-05-28 19:05 [ppc64-linux]: Add basic native configury Jim Blandy
@ 2003-06-11  0:30 ` Kevin Buettner
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Buettner @ 2003-06-11  0:30 UTC (permalink / raw)
  To: Jim Blandy, gdb-patches

On May 28,  2:14pm, Jim Blandy wrote:

> 2003-05-28  Jim Blandy  <jimb@redhat.com>
> 
> 	* 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.

Okay.

Kevin


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-11  0:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-28 19:05 [ppc64-linux]: Add basic native configury Jim Blandy
2003-06-11  0:30 ` Kevin Buettner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox