This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[rfc] [3/9] Multi-target support: Some configure.tgt cleanup
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 26 Oct 2007 03:16:16 +0200 (CEST)
- Subject: [rfc] [3/9] Multi-target support: Some configure.tgt cleanup
Hello,
this patch ensures that in the main case statement in configure.tgt,
each .mt file is referenced by exactly one case. To achieve this,
in several instances multiple case labels refering to the same .mt
file are merged into in a single case. On the other hand, the special
case for freebsd that matches multiple .mt files (one each for three
different targets) is expanded into multiple cases.
As additional cleanups, the obsolete build_rdi_share variable is
removed; and all remaining variables are documented in the comment
near the top of the file.
This patch is cosmetic only and should not change the behaviour
on any target.
Bye,
Ulrich
ChangeLog:
* configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
(arm*-*-*): Do not set obsolete build_rdi_share variable.
(*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
(alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
(i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
(sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
(x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
(xscale-*-*): Merge into arm*-*-* case.
(fido-*-elf*): Merge into m68*-*-elf* case.
(m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
m68*-*-uclinux*): Merge cases.
(powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
(sh-*-coff*, sh-*-elf*): Merge into sh* case.
diff -urNp gdb-orig/gdb/configure.tgt gdb-head/gdb/configure.tgt
--- gdb-orig/gdb/configure.tgt 2007-10-24 00:41:27.415656662 +0200
+++ gdb-head/gdb/configure.tgt 2007-10-24 00:34:41.748295214 +0200
@@ -4,6 +4,8 @@
# This file sets the following shell variables:
# gdb_target_cpu generic name of CPU
# gdb_target name of GDB target definition to use
+# gdb_osabi default OS ABI to use with target
+# build_gdbserver set to "yes" if gdbserver supports target
case $target in
d10v-*-* | \
@@ -58,19 +60,15 @@ esac
case "${target}" in
-x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
- gdb_target=fbsd64
- ;;
-*-*-freebsd* | *-*-kfreebsd*-gnu)
- gdb_target=fbsd
- ;;
-
alpha*-*-osf*)
gdb_target=alpha-osf1
;;
alpha*-*-linux*)
gdb_target=alpha-linux
;;
+alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
+ gdb_target=fbsd
+ ;;
alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
gdb_target=nbsd
;;
@@ -100,13 +98,8 @@ arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
arm*-*-openbsd*)
gdb_target=obsd
;;
-arm*-*-* | thumb*-*-* | strongarm*-*-*)
- gdb_target=embed
- build_rdi_share=yes
- ;;
-xscale-*-*)
+arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*)
gdb_target=embed
- build_rdi_share=yes
;;
avr-*-*)
@@ -117,10 +110,6 @@ cris*)
gdb_target=cris
;;
-fido-*-elf*)
- gdb_target=monitor
- ;;
-
frv-*-*)
gdb_target=frv
;;
@@ -142,6 +131,9 @@ hppa*-*-*)
gdb_target=hppa
;;
+i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
+ gdb_target=fbsd
+ ;;
i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
gdb_target=nbsd
;;
@@ -204,16 +196,8 @@ m68hc11*-*-*|m6811*-*-*)
gdb_target=m68hc11
;;
-m68*-*-aout*)
- gdb_target=monitor
- ;;
-m68*-*-coff*)
- gdb_target=monitor
- ;;
-m68*-*-elf*)
- gdb_target=monitor
- ;;
-m68*-*-rtems*)
+m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \
+fido-*-elf*)
gdb_target=monitor
;;
m68*-*-linux*)
@@ -226,9 +210,6 @@ m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
m68*-*-openbsd*)
gdb_target=obsd
;;
-m68*-*-uclinux*)
- gdb_target=monitor
- ;;
m88*-*-openbsd*)
gdb_target=obsd
@@ -275,11 +256,7 @@ powerpc-*-openbsd*)
powerpc-*-aix* | rs6000-*-*)
gdb_target=aix
;;
-powerpc-*-linux*)
- gdb_target=linux
- build_gdbserver=yes
- ;;
-powerpc64-*-linux*)
+powerpc-*-linux* | powerpc64-*-linux*)
gdb_target=linux
build_gdbserver=yes
;;
@@ -300,12 +277,6 @@ score-*-*)
gdb_target=embed
;;
-sh-*-coff*)
- gdb_target=embed
- ;;
-sh-*-elf*)
- gdb_target=embed
- ;;
# FIXME should that be sh*-*-linux*, perhaps?
sh-*-linux*)
gdb_target=linux
@@ -330,6 +301,9 @@ sparc-*-linux*)
sparc64-*-linux*)
gdb_target=linux64
;;
+sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
+ gdb_target=fbsd
+ ;;
sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
gdb_target=nbsd
;;
@@ -385,6 +359,9 @@ x86_64-*-linux*)
gdb_target=linux64
build_gdbserver=yes
;;
+x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
+ gdb_target=fbsd64
+ ;;
x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
gdb_target=nbsd64
;;
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com