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]

Re: patch to split embedded and linux sh targets



Ok, approved.
But we must add a line to the configure.tgt file to handle
sh-*-hms* as well.

Can you do that, JT?

Thanks
Elena

J.T. Conklin writes:
 > I submit the enclosed patch for a approval.  The current sh target,
 > which was once a embedded only target has been made gnu/linux-specific
 > by the inclusion of shared library support.  
 > 
 > This patch creates a embedded target (sh-*-coff*, sh-*-elf*) by moving
 > the linux bits to its own configuration (sh-*-linux*).  I haven't
 > changed the linux config other than by renaming sh.mt to linux.mt,
 > although I believe that support for the SH3 ROM monitor, the e7000
 > ICE, and perhaps the SH simulator can be removed.
 > 
 >         --jtc
 > 
 > 2001-01-15  J.T. Conklin  <jtc@redback.com>
 > 
 > 	* configure/sh/embed.mt: New file.
 > 	* configure/sh/linux.mt: New file.
 > 	* configure/sh/sh.mt: Removed.
 > 	* configure.tgt (sh-*-coff*, sh-*-elf*, sh-*-linux): New targets.
 > 	(sh-*-*): Removed.
 > 
 > Index: configure.tgt
 > ===================================================================
 > RCS file: /cvs/src/src/gdb/configure.tgt,v
 > retrieving revision 1.16
 > diff -c -r1.16 configure.tgt
 > *** configure.tgt	2000/12/14 20:15:45	1.16
 > --- configure.tgt	2001/01/16 02:01:57
 > ***************
 > *** 263,269 ****
 >   rs6000-*-*)		gdb_target=rs6000 ;;
 >   
 >   sh*-*-pe)		gdb_target=wince ;;
 > ! sh-*-*)			gdb_target=sh ;;
 >   
 >   sparc-*-aout*)		gdb_target=sparc-em ;;
 >   sparc-*-coff*)		gdb_target=sparc-em ;;
 > --- 263,271 ----
 >   rs6000-*-*)		gdb_target=rs6000 ;;
 >   
 >   sh*-*-pe)		gdb_target=wince ;;
 > ! sh-*-coff*)		gdb_target=embed ;;
 > ! sh-*-elf*)		gdb_target=embed ;;
 > ! sh-*-linux*)		gdb_target=linux ;;
 >   
 >   sparc-*-aout*)		gdb_target=sparc-em ;;
 >   sparc-*-coff*)		gdb_target=sparc-em ;;
 > Index: config/sh/embed.mt
 > ===================================================================
 > RCS file: embed.mt
 > diff -N embed.mt
 > *** /dev/null	Tue May  5 13:32:27 1998
 > --- embed.mt	Mon Jan 15 18:01:57 2001
 > ***************
 > *** 0 ****
 > --- 1,6 ----
 > + # Target: Embedded Hitachi Super-H with ICE and simulator
 > + TDEPFILES= sh-tdep.o monitor.o sh3-rom.o remote-e7000.o ser-e7kpc.o dsrec.o 
 > + TM_FILE= tm-sh.h
 > + 
 > + SIM_OBS = remote-sim.o
 > + SIM = ../sim/sh/libsim.a
 > Index: config/sh/linux.mt
 > ===================================================================
 > RCS file: linux.mt
 > diff -N linux.mt
 > *** /dev/null	Tue May  5 13:32:27 1998
 > --- linux.mt	Mon Jan 15 18:01:57 2001
 > ***************
 > *** 0 ****
 > --- 1,6 ----
 > + # Target: Hitachi Super-H running GNU/Linux
 > + TDEPFILES= sh-tdep.o monitor.o sh3-rom.o remote-e7000.o ser-e7kpc.o dsrec.o solib.o solib-svr4.o
 > + TM_FILE= tm-linux.h
 > + 
 > + SIM_OBS = remote-sim.o
 > + SIM = ../sim/sh/libsim.a
 > Index: config/sh/sh.mt
 > ===================================================================
 > RCS file: sh.mt
 > diff -N sh.mt
 > *** /sourceware/cvs-tmp/cvsiq6IWP	Mon Jan 15 18:01:58 2001
 > --- /dev/null	Tue May  5 13:32:27 1998
 > ***************
 > *** 1,6 ****
 > - # Target: Hitachi Super-H with ICE and simulator
 > - TDEPFILES= sh-tdep.o monitor.o sh3-rom.o remote-e7000.o ser-e7kpc.o dsrec.o solib.o solib-svr4.o
 > - TM_FILE= tm-linux.h
 > - 
 > - SIM_OBS = remote-sim.o
 > - SIM = ../sim/sh/libsim.a
 > --- 0 ----
 > 
 > 
 > -- 
 > J.T. Conklin
 > RedBack Networks
 > 

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