Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Take III: New target am33-linux (mn10300)
@ 2005-06-27 19:10 Michael Snyder
       [not found] ` <200506272228.j5RMSrhh006123@elgar.sibelius.xs4all.nl>
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Snyder @ 2005-06-27 19:10 UTC (permalink / raw)
  To: GDB Patches, Mark Kettenis, drow

[-- Attachment #1: Type: text/plain, Size: 487 bytes --]

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.




[-- Attachment #2: stage1 --]
[-- Type: text/plain, Size: 3097 bytes --]

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

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

* Re: [RFA] Take III: New target am33-linux (mn10300)
       [not found]     ` <200506272238.j5RMcFZx029619@elgar.sibelius.xs4all.nl>
@ 2005-06-27 22:45       ` Michael Snyder
  2005-06-27 22:52         ` Mark Kettenis
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Snyder @ 2005-06-27 22:45 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: GDB Patches

Mark Kettenis wrote:
>    Date: Mon, 27 Jun 2005 15:32:03 -0700
>    From: Michael Snyder <msnyder@redhat.com>
> 
>    Mark Kettenis wrote:
>    >    Date: Mon, 27 Jun 2005 12:10:14 -0700
>    >    From: Michael Snyder <msnyder@redhat.com>
>    > 
>    >    Sorry this is dragging on.
>    > 
>    > Dragging on it is... you forgot to add the new mn10300-linux-tdep.c
>    > file :-(
> 
>    No, I took it out on purpose, Mark, so that everything *else*
>    could be accepted and checked in.  The patch builds as-is,
>    without the linux-tdep file.
> 
> Ah, then the patch looks ok to me if you don't mention
> mn10300-linux-tdep.c in your ChangeLog entry ;-).

Oops!  Amended changelog entry:

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

	* config/mn10300/linux.mt: New file.
	* configure.tgt: Add rule for am33 / mn10300-linux.
	* mn10300-tdep.c, mn10300-tdep.h: Bump copyright year.





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

* Re: [RFA] Take III: New target am33-linux (mn10300)
  2005-06-27 22:45       ` Michael Snyder
@ 2005-06-27 22:52         ` Mark Kettenis
  2005-06-28  0:18           ` Michael Snyder
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Kettenis @ 2005-06-27 22:52 UTC (permalink / raw)
  To: msnyder; +Cc: gdb-patches

   Date: Mon, 27 Jun 2005 15:45:00 -0700
   From: Michael Snyder <msnyder@redhat.com>

   Mark Kettenis wrote:
   >    Date: Mon, 27 Jun 2005 15:32:03 -0700
   >    From: Michael Snyder <msnyder@redhat.com>
   > 
   >    Mark Kettenis wrote:
   >    >    Date: Mon, 27 Jun 2005 12:10:14 -0700
   >    >    From: Michael Snyder <msnyder@redhat.com>
   >    > 
   >    >    Sorry this is dragging on.
   >    > 
   >    > Dragging on it is... you forgot to add the new mn10300-linux-tdep.c
   >    > file :-(
   > 
   >    No, I took it out on purpose, Mark, so that everything *else*
   >    could be accepted and checked in.  The patch builds as-is,
   >    without the linux-tdep file.
   > 
   > Ah, then the patch looks ok to me if you don't mention
   > mn10300-linux-tdep.c in your ChangeLog entry ;-).

   Oops!  Amended changelog entry:

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

	   * config/mn10300/linux.mt: New file.
	   * configure.tgt: Add rule for am33 / mn10300-linux.
	   * mn10300-tdep.c, mn10300-tdep.h: Bump copyright year.

Go ahead!

Mark


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

* Re: [RFA] Take III: New target am33-linux (mn10300)
  2005-06-27 22:52         ` Mark Kettenis
@ 2005-06-28  0:18           ` Michael Snyder
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Snyder @ 2005-06-28  0:18 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: gdb-patches

Mark Kettenis wrote:
>    Date: Mon, 27 Jun 2005 15:45:00 -0700
>    From: Michael Snyder <msnyder@redhat.com>
> 
>    Mark Kettenis wrote:
>    >    Date: Mon, 27 Jun 2005 15:32:03 -0700
>    >    From: Michael Snyder <msnyder@redhat.com>
>    > 
>    >    Mark Kettenis wrote:
>    >    >    Date: Mon, 27 Jun 2005 12:10:14 -0700
>    >    >    From: Michael Snyder <msnyder@redhat.com>
>    >    > 
>    >    >    Sorry this is dragging on.
>    >    > 
>    >    > Dragging on it is... you forgot to add the new mn10300-linux-tdep.c
>    >    > file :-(
>    > 
>    >    No, I took it out on purpose, Mark, so that everything *else*
>    >    could be accepted and checked in.  The patch builds as-is,
>    >    without the linux-tdep file.
>    > 
>    > Ah, then the patch looks ok to me if you don't mention
>    > mn10300-linux-tdep.c in your ChangeLog entry ;-).
> 
>    Oops!  Amended changelog entry:
> 
>    2005-06-27  Michael Snyder  <msnyder@redhat.com>
> 
> 	   * config/mn10300/linux.mt: New file.
> 	   * configure.tgt: Add rule for am33 / mn10300-linux.
> 	   * mn10300-tdep.c, mn10300-tdep.h: Bump copyright year.
> 
> Go ahead!

Thanks.  Done.


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

end of thread, other threads:[~2005-06-28  0:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-27 19:10 [RFA] Take III: New target am33-linux (mn10300) Michael Snyder
     [not found] ` <200506272228.j5RMSrhh006123@elgar.sibelius.xs4all.nl>
     [not found]   ` <42C07E63.1050501@redhat.com>
     [not found]     ` <200506272238.j5RMcFZx029619@elgar.sibelius.xs4all.nl>
2005-06-27 22:45       ` Michael Snyder
2005-06-27 22:52         ` Mark Kettenis
2005-06-28  0:18           ` Michael Snyder

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