This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Ping: [PATCH] Accept i786 variant in gdb
- From: Kelley Cook <kcook34 at ford dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 13 Jun 2003 08:41:08 -0400
- Subject: Ping: [PATCH] Accept i786 variant in gdb
- Hop-count: 1
- References: <3ED4D297.1070100@ford.com>
- Reply-to: Kelley Cook <KelleyCook at wideopenwest dot com>
Hi,
I'm just pinging this patch from two weeks ago.
In the meantime, the toplevel config.sub has been updated to include the
pentium4 -> i786 alias
I verified that the patch still applies against today's snapshot.
Verified with build on pentium4-pc-cygwin.
Kelley Cook wrote:
Hi,
The following mechanical patch allows the i786 (aka pentium4 pending a
config.sub patch) to be recognized by gdb.
A similar patch has already been incorporated into the toplevel,
binutils and libiberty.
Kelley Cook
(gdb directory)
2003-05-28 Kelley Cook <kelleycook@wideopenwest.com>
* configure.host: Accept i[34567]86 variants.
* configure.tgt: Likewise.
* nlm/configure.in: Likewise.
(gdb/gdbserver directory)
2003-05-28 Kelley Cook <kelleycook@wideopenwest.com>
* configure.srv: Accept i[34567]86 variants.
diff -crp gdb.orig/configure.host gdb/configure.host
*** gdb.orig/configure.host Wed Apr 9 12:19:51 2003
--- gdb/configure.host Wed May 28 10:41:02 2003
*************** case "${host_cpu}" in
*** 13,19 ****
alpha*) gdb_host_cpu=alpha ;;
arm*) gdb_host_cpu=arm ;;
hppa*) gdb_host_cpu=pa ;;
! i[3456]86*) gdb_host_cpu=i386 ;;
m68*) gdb_host_cpu=m68k ;;
mips*) gdb_host_cpu=mips ;;
powerpc*) gdb_host_cpu=powerpc ;;
--- 13,19 ----
alpha*) gdb_host_cpu=alpha ;;
arm*) gdb_host_cpu=arm ;;
hppa*) gdb_host_cpu=pa ;;
! i[34567]86*) gdb_host_cpu=i386 ;;
m68*) gdb_host_cpu=m68k ;;
mips*) gdb_host_cpu=mips ;;
powerpc*) gdb_host_cpu=powerpc ;;
*************** hppa*-*-hpux11*) gdb_host=hpux11 ;;
*** 48,81 ****
hppa*-*-hpux*) gdb_host=hppahpux ;;
# OBSOLETE hppa*-*-osf*) gdb_host=hppaosf ;;
! i[3456]86-ncr-*) gdb_host=ncr3000 ;;
# OBSOLETE i[3456]86-sequent-bsd*) gdb_host=symmetry ;; # dynix
# OBSOLETE i[3456]86-sequent-sysv4*) gdb_host=ptx4 ;;
# OBSOLETE i[3456]86-sequent-sysv*) gdb_host=ptx ;;
! i[3456]86-*-bsd*) gdb_host=i386bsd ;;
! i[3456]86-*-dgux*) gdb_host=i386v4 ;;
! i[3456]86-*-freebsd*) gdb_host=fbsd ;;
! i[3456]86-*-netbsdelf*) gdb_host=nbsdelf ;;
! i[3456]86-*-netbsdaout*) gdb_host=nbsdaout ;;
! i[3456]86-*-netbsd*) gdb_host=nbsdaout ;;
! i[3456]86-*-go32*) gdb_host=go32 ;;
! i[3456]86-*-msdosdjgpp*) gdb_host=go32 ;;
! i[3456]86-*-linux*) gdb_host=linux ;;
! i[3456]86-*-lynxos*) gdb_host=i386lynx ;;
! i[3456]86-*-gnu*) gdb_host=i386gnu ;;
! i[3456]86-*-openbsd*) gdb_host=obsd ;;
! i[3456]86-*-sco3.2v5*) gdb_host=i386sco5 ;;
! i[3456]86-*-sco3.2v4*) gdb_host=i386sco4 ;;
! i[3456]86-*-sco*) gdb_host=i386sco ;;
! i[3456]86-*-solaris*) gdb_host=i386sol2 ;;
! i[3456]86-*-sysv4.2*) gdb_host=i386v42mp ;;
! i[3456]86-*-sysv4*) gdb_host=i386v4 ;;
! i[3456]86-*-sysv5*) gdb_host=i386v42mp ;;
! i[3456]86-*-unixware2*) gdb_host=i386v42mp ;;
! i[3456]86-*-unixware*) gdb_host=i386v4 ;;
! i[3456]86-*-sysv*) gdb_host=i386v ;;
! i[3456]86-*-isc*) gdb_host=i386v ;;
! i[3456]86-*-cygwin*) gdb_host=cygwin ;;
ia64-*-aix*) gdb_host=aix ;;
ia64-*-linux*) gdb_host=linux ;;
--- 48,81 ----
hppa*-*-hpux*) gdb_host=hppahpux ;;
# OBSOLETE hppa*-*-osf*) gdb_host=hppaosf ;;
! i[34567]86-ncr-*) gdb_host=ncr3000 ;;
# OBSOLETE i[3456]86-sequent-bsd*) gdb_host=symmetry ;; # dynix
# OBSOLETE i[3456]86-sequent-sysv4*) gdb_host=ptx4 ;;
# OBSOLETE i[3456]86-sequent-sysv*) gdb_host=ptx ;;
! i[34567]86-*-bsd*) gdb_host=i386bsd ;;
! i[34567]86-*-dgux*) gdb_host=i386v4 ;;
! i[34567]86-*-freebsd*) gdb_host=fbsd ;;
! i[34567]86-*-netbsdelf*) gdb_host=nbsdelf ;;
! i[34567]86-*-netbsdaout*) gdb_host=nbsdaout ;;
! i[34567]86-*-netbsd*) gdb_host=nbsdaout ;;
! i[34567]86-*-go32*) gdb_host=go32 ;;
! i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;;
! i[34567]86-*-linux*) gdb_host=linux ;;
! i[34567]86-*-lynxos*) gdb_host=i386lynx ;;
! i[34567]86-*-gnu*) gdb_host=i386gnu ;;
! i[34567]86-*-openbsd*) gdb_host=obsd ;;
! i[34567]86-*-sco3.2v5*) gdb_host=i386sco5 ;;
! i[34567]86-*-sco3.2v4*) gdb_host=i386sco4 ;;
! i[34567]86-*-sco*) gdb_host=i386sco ;;
! i[34567]86-*-solaris*) gdb_host=i386sol2 ;;
! i[34567]86-*-sysv4.2*) gdb_host=i386v42mp ;;
! i[34567]86-*-sysv4*) gdb_host=i386v4 ;;
! i[34567]86-*-sysv5*) gdb_host=i386v42mp ;;
! i[34567]86-*-unixware2*) gdb_host=i386v42mp ;;
! i[34567]86-*-unixware*) gdb_host=i386v4 ;;
! i[34567]86-*-sysv*) gdb_host=i386v ;;
! i[34567]86-*-isc*) gdb_host=i386v ;;
! i[34567]86-*-cygwin*) gdb_host=cygwin ;;
ia64-*-aix*) gdb_host=aix ;;
ia64-*-linux*) gdb_host=linux ;;
diff -crp gdb.orig/configure.tgt gdb/configure.tgt
*** gdb.orig/configure.tgt Wed May 28 10:05:19 2003
--- gdb/configure.tgt Wed May 28 10:42:38 2003
*************** alpha*) gdb_target_cpu=alpha ;;
*** 16,22 ****
arm*) gdb_target_cpu=arm ;;
avr*) gdb_target_cpu=avr ;;
hppa*) gdb_target_cpu=pa ;;
! i[3456]86*) gdb_target_cpu=i386 ;;
m68hc11*|m6811*) gdb_target_cpu=m68hc11 ;;
m68*) gdb_target_cpu=m68k ;;
mips*) gdb_target_cpu=mips ;;
--- 16,22 ----
arm*) gdb_target_cpu=arm ;;
avr*) gdb_target_cpu=avr ;;
hppa*) gdb_target_cpu=pa ;;
! i[34567]86*) gdb_target_cpu=i386 ;;
m68hc11*|m6811*) gdb_target_cpu=m68hc11 ;;
m68*) gdb_target_cpu=m68k ;;
mips*) gdb_target_cpu=mips ;;
*************** hppa*-*-*) gdb_target=hppa ;;
*** 85,111 ****
# OBSOLETE i[3456]86-sequent-bsd*) gdb_target=symmetry ;;
# OBSOLETE i[3456]86-sequent-sysv4*) gdb_target=ptx4 ;;
# OBSOLETE i[3456]86-sequent-sysv*) gdb_target=ptx ;;
! i[3456]86-ncr-*) gdb_target=ncr3000 ;;
! i[3456]86-*-bsd*) gdb_target=i386bsd ;;
! i[3456]86-*-netbsd*) gdb_target=nbsd ;;
! i[3456]86-*-openbsd*) gdb_target=obsd ;;
! i[3456]86-*-go32*) gdb_target=i386aout ;;
! i[3456]86-*-msdosdjgpp*) gdb_target=go32 ;;
! i[3456]86-*-nto*) gdb_target=nto ;;
! i[3456]86-*-lynxos*) gdb_target=i386lynx ;;
! i[3456]86-*-solaris*) gdb_target=i386sol2 ;;
! i[3456]86-*-sco*) gdb_target=i386v ;;
! i[3456]86-*-sysv*) gdb_target=i386v ;;
! i[3456]86-*-linux*) gdb_target=linux
build_gdbserver=yes
;;
! i[3456]86-*-isc*) gdb_target=i386v ;;
! i[3456]86-*-gnu*) gdb_target=i386gnu ;;
! i[3456]86-*-netware*) gdb_target=i386nw
configdirs="${configdirs} nlm" ;;
! i[3456]86-*-cygwin*) gdb_target=cygwin ;;
! i[3456]86-*-vxworks*) gdb_target=vxworks ;;
! i[3456]86-*-*) gdb_target=embed ;;
ia64-*-aix*) gdb_target=aix ;;
ia64-*-linux*) gdb_target=linux
--- 85,111 ----
# OBSOLETE i[3456]86-sequent-bsd*) gdb_target=symmetry ;;
# OBSOLETE i[3456]86-sequent-sysv4*) gdb_target=ptx4 ;;
# OBSOLETE i[3456]86-sequent-sysv*) gdb_target=ptx ;;
! i[34567]86-ncr-*) gdb_target=ncr3000 ;;
! i[34567]86-*-bsd*) gdb_target=i386bsd ;;
! i[34567]86-*-netbsd*) gdb_target=nbsd ;;
! i[34567]86-*-openbsd*) gdb_target=obsd ;;
! i[34567]86-*-go32*) gdb_target=i386aout ;;
! i[34567]86-*-msdosdjgpp*) gdb_target=go32 ;;
! i[34567]86-*-nto*) gdb_target=nto ;;
! i[34567]86-*-lynxos*) gdb_target=i386lynx ;;
! i[34567]86-*-solaris*) gdb_target=i386sol2 ;;
! i[34567]86-*-sco*) gdb_target=i386v ;;
! i[34567]86-*-sysv*) gdb_target=i386v ;;
! i[34567]86-*-linux*) gdb_target=linux
build_gdbserver=yes
;;
! i[34567]86-*-isc*) gdb_target=i386v ;;
! i[34567]86-*-gnu*) gdb_target=i386gnu ;;
! i[34567]86-*-netware*) gdb_target=i386nw
configdirs="${configdirs} nlm" ;;
! i[34567]86-*-cygwin*) gdb_target=cygwin ;;
! i[34567]86-*-vxworks*) gdb_target=vxworks ;;
! i[34567]86-*-*) gdb_target=embed ;;
ia64-*-aix*) gdb_target=aix ;;
ia64-*-linux*) gdb_target=linux
diff -crp gdb.orig/gdbserver/configure.srv gdb/gdbserver/configure.srv
*** gdb.orig/gdbserver/configure.srv Tue Jun 11 13:32:39 2002
--- gdb/gdbserver/configure.srv Wed May 28 10:43:06 2003
*************** case "${target}" in
*** 23,29 ****
srv_linux_usrregs=yes
srv_linux_thread_db=yes
;;
! i[3456]86-*-linux*) srv_regobj=reg-i386-linux.o
srv_tgtobj="linux-low.o linux-i386-low.o i387-fp.o"
srv_linux_usrregs=yes
srv_linux_regsets=yes
--- 23,29 ----
srv_linux_usrregs=yes
srv_linux_thread_db=yes
;;
! i[34567]86-*-linux*) srv_regobj=reg-i386-linux.o
srv_tgtobj="linux-low.o linux-i386-low.o i387-fp.o"
srv_linux_usrregs=yes
srv_linux_regsets=yes
diff -crp gdb.orig/nlm/configure.in gdb/nlm/configure.in
*** gdb.orig/nlm/configure.in Thu Apr 15 21:34:12 1999
--- gdb/nlm/configure.in Wed May 28 10:42:51 2003
*************** case "${target_cpu}" in
*** 15,21 ****
alpha) gdb_target_cpu=alpha ;;
c[12]) gdb_target_cpu=convex ;;
hppa*) gdb_target_cpu=pa ;;
! i[3456]86) gdb_target_cpu=i386 ;;
m68*) gdb_target_cpu=m68k ;;
np1) gdb_target_cpu=gould ;;
pn) gdb_target_cpu=gould ;;
--- 15,21 ----
alpha) gdb_target_cpu=alpha ;;
c[12]) gdb_target_cpu=convex ;;
hppa*) gdb_target_cpu=pa ;;
! i[34567]86) gdb_target_cpu=i386 ;;
m68*) gdb_target_cpu=m68k ;;
np1) gdb_target_cpu=gould ;;
pn) gdb_target_cpu=gould ;;