This is the mail archive of the gdb-patches@sourceware.cygnus.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]

Add x86 embed target makefile frag


I submitted this change some time ago as part of my remote breakpoint
extension (which is still in process, I'm addressing the deficiencies,
playing with alternatives, etc. as I get free time).  This change got
put on the back burner at the same time, since at the time I couldn't
think of a strong reason to change the target makefile fragment
without the rest.

I unexpectedly ran into this again when I went to add support for a
Redback specific crash dump format.  

While adding corelow.o to TDEPFILES to i386aout.mt and/or i386v.mt is
an option for us, it wouldn't be for someone who also uses an old SysV
host because the symbols within would be multiply defined.  I'll admit
that this is a somewhat contrived example.  But the nature of embedded
systems is that there is a high likelyhood of proprietary changes that
will never be folded into the master GDB sources (not because they are
valuable trade secrets, but rather they are simply not useful nor
interesting outside the company that developed them).  As such, it is
important for easily modified embedded target configs to exist.


	--jtc

1999-08-05  J.T. Conklin  <jtc@redback.com>

	* configure.tgt (i[3456]86-*-{aout,coff,elf}): Use embed.mt
	* config/i386/embed.mt: New file.

Index: gdb/gdb/configure.tgt
diff -c gdb/gdb/configure.tgt:1.1.1.6 gdb/gdb/configure.tgt:1.7
*** gdb/gdb/configure.tgt:1.1.1.6	Tue Jul 20 14:36:56 1999
--- gdb/gdb/configure.tgt	Thu Aug  5 17:30:11 1999
***************
*** 75,83 ****
  i[3456]86-sequent-sysv4*) gdb_target=ptx4 ;;
  i[3456]86-sequent-sysv*) gdb_target=ptx ;;
  i[3456]86-ncr-*)	gdb_target=ncr3000 ;;
! i[3456]86-*-aout*)	gdb_target=i386aout ;;
! i[3456]86-*-coff*)	gdb_target=i386v ;;
! i[3456]86-*-elf*)	gdb_target=i386v ;;
  i[3456]86-*-aix*)	gdb_target=i386aix ;;
  i[3456]86-*-bsd*)	gdb_target=i386bsd ;;
  i[3456]86-*-freebsd*)	gdb_target=fbsd ;;
--- 75,83 ----
  i[3456]86-sequent-sysv4*) gdb_target=ptx4 ;;
  i[3456]86-sequent-sysv*) gdb_target=ptx ;;
  i[3456]86-ncr-*)	gdb_target=ncr3000 ;;
! i[3456]86-*-aout*)	gdb_target=embed ;;
! i[3456]86-*-coff*)	gdb_target=embed ;;
! i[3456]86-*-elf*)	gdb_target=embed ;;
  i[3456]86-*-aix*)	gdb_target=i386aix ;;
  i[3456]86-*-bsd*)	gdb_target=i386bsd ;;
  i[3456]86-*-freebsd*)	gdb_target=fbsd ;;
Index: gdb/gdb/config/i386/embed.mt
diff -c /dev/null gdb/gdb/config/i386/embed.mt:1.1
*** /dev/null	Thu Aug  5 18:29:19 1999
--- gdb/gdb/config/i386/embed.mt	Thu Aug  5 17:29:17 1999
***************
*** 0 ****
--- 1,3 ----
+ # Target: Embedded Intel 386 
+ TDEPFILES= i386-tdep.o i387-tdep.o
+ TM_FILE= tm-i386v.h


-- 
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]