This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] Take III: New target am33-linux (mn10300)


Sorry this is dragging on.  I'm nursing code I did not write,
that was written a long time ago, before a lot of interfaces
changed.  Some of the new interfaces I'm not familiar with myself.

Let's simplify this.  Here is the new target, *without* corefile
support.  This will get the infrastructure into place, including
shared libraries, and then I can rework and submit the corefile
part separately.  Then I won't accidentally overlook the makefile
fragment or something next time.



2005-06-27  Michael Snyder  <msnyder@redhat.com>

	* mn10300-linux-tdep.c: New file.
	* Makefile.in: Add rule for mn10300-linux-tdep.o.
	* configure.tgt: Add rule for am33 / mn10300-linux.
	* mn10300-tdep.h: Add E_FPCR_REGNUM, E_FS0_REGNUM, etc..


Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.167
diff -p -r1.167 configure.tgt
*** configure.tgt	28 May 2005 22:09:03 -0000	1.167
--- configure.tgt	27 Jun 2005 19:01:55 -0000
***************
*** 11,16 ****
--- 11,17 ----
  case "${target_cpu}" in
  
  alpha*)			gdb_target_cpu=alpha ;;
+ am33_2.0*)              gdb_target_cpu=mn10300 ;;
  arm*)			gdb_target_cpu=arm ;;
  avr*)			gdb_target_cpu=avr ;;
  hppa*)			gdb_target_cpu=pa ;;
*************** alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu
*** 47,52 ****
--- 48,56 ----
  alpha*-*-openbsd*)	gdb_target=nbsd ;;
  alpha*-*-*)		gdb_target=alpha ;;
  
+ # mn10300 / am33 liunux
+ am33_2.0*-*-linux*)	gdb_target=linux ;;
+ 
  arm*-wince-pe)		gdb_target=wince ;;
  arm*-*-linux*)		gdb_target=linux
  			build_gdbserver=yes
Index: mn10300-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mn10300-tdep.c,v
retrieving revision 1.122
diff -p -r1.122 mn10300-tdep.c
*** mn10300-tdep.c	18 Apr 2005 23:14:33 -0000	1.122
--- mn10300-tdep.c	27 Jun 2005 19:01:55 -0000
***************
*** 1,7 ****
  /* Target-dependent code for the Matsushita MN10300 for GDB, the GNU debugger.
  
!    Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free
!    Software Foundation, Inc.
  
     This file is part of GDB.
  
--- 1,7 ----
  /* Target-dependent code for the Matsushita MN10300 for GDB, the GNU debugger.
  
!    Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
!    Free Software Foundation, Inc.
  
     This file is part of GDB.
  
Index: mn10300-tdep.h
===================================================================
RCS file: /cvs/src/src/gdb/mn10300-tdep.h,v
retrieving revision 1.3
diff -p -r1.3 mn10300-tdep.h
*** mn10300-tdep.h	18 Apr 2005 23:14:33 -0000	1.3
--- mn10300-tdep.h	27 Jun 2005 19:01:55 -0000
***************
*** 1,7 ****
  /* Target-dependent interface for Matsushita MN10300 for GDB, the GNU debugger.
  
!    Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free
!    Software Foundation, Inc.
  
     This file is part of GDB.
  
--- 1,7 ----
  /* Target-dependent interface for Matsushita MN10300 for GDB, the GNU debugger.
  
!    Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
!    Free Software Foundation, Inc.
  
     This file is part of GDB.
  
Index: config/mn10300/linux.mt
===================================================================
RCS file: config/mn10300/linux.mt
diff -N config/mn10300/linux.mt
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- config/mn10300/linux.mt	27 Jun 2005 19:01:55 -0000
***************
*** 0 ****
--- 1,2 ----
+ # Target: Matsushita mn10300 (AM33) running Linux
+ TDEPFILES= mn10300-tdep.o solib.o solib-svr4.o

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]