1999-04-16 09:35:26 +08:00
|
|
|
# Mappings from configurations to GDB target definitions. This is
|
|
|
|
# invoked from the autoconf generated configure script.
|
|
|
|
|
|
|
|
# This file sets the following shell variables:
|
|
|
|
# gdb_target_cpu generic name of CPU
|
|
|
|
# gdb_target name of GDB target definition to use
|
|
|
|
|
|
|
|
# Map target cpu into the config cpu subdirectory name.
|
|
|
|
# The default is $target_cpu.
|
|
|
|
|
|
|
|
case "${target_cpu}" in
|
|
|
|
|
|
|
|
alpha*) gdb_target_cpu=alpha ;;
|
1999-12-23 05:45:38 +08:00
|
|
|
arm*) gdb_target_cpu=arm ;;
|
2002-04-26 04:34:56 +08:00
|
|
|
avr*) gdb_target_cpu=avr ;;
|
1999-04-16 09:35:26 +08:00
|
|
|
hppa*) gdb_target_cpu=pa ;;
|
2003-06-14 01:49:52 +08:00
|
|
|
i[34567]86*) gdb_target_cpu=i386 ;;
|
2000-07-27 15:18:32 +08:00
|
|
|
m68hc11*|m6811*) gdb_target_cpu=m68hc11 ;;
|
1999-04-16 09:35:26 +08:00
|
|
|
m68*) gdb_target_cpu=m68k ;;
|
2004-05-25 05:00:09 +08:00
|
|
|
m88*) gdb_target_cpu=m88k ;;
|
1999-04-16 09:35:26 +08:00
|
|
|
mips*) gdb_target_cpu=mips ;;
|
|
|
|
powerpc*) gdb_target_cpu=powerpc ;;
|
|
|
|
sparc*) gdb_target_cpu=sparc ;;
|
|
|
|
thumb*) gdb_target_cpu=arm ;;
|
2001-06-16 03:23:45 +08:00
|
|
|
s390*) gdb_target_cpu=s390 ;;
|
2002-05-08 23:29:36 +08:00
|
|
|
sh*) gdb_target_cpu=sh ;;
|
1999-04-16 09:35:26 +08:00
|
|
|
strongarm*) gdb_target_cpu=arm ;;
|
2000-11-27 04:04:41 +08:00
|
|
|
xscale*) gdb_target_cpu=arm ;;
|
2002-01-20 17:10:27 +08:00
|
|
|
x86_64*) gdb_target_cpu=i386 ;;
|
1999-04-16 09:35:26 +08:00
|
|
|
*) gdb_target_cpu=$target_cpu ;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
# map target info into gdb names.
|
|
|
|
|
|
|
|
case "${target}" in
|
|
|
|
|
2004-08-13 06:29:56 +08:00
|
|
|
x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
|
|
|
|
gdb_target=fbsd64 ;;
|
|
|
|
*-*-freebsd* | *-*-kfreebsd*-gnu)
|
|
|
|
gdb_target=fbsd ;;
|
2002-10-20 13:37:33 +08:00
|
|
|
|
1999-04-16 09:35:26 +08:00
|
|
|
alpha*-*-osf*) gdb_target=alpha-osf1 ;;
|
|
|
|
alpha*-*-linux*) gdb_target=alpha-linux ;;
|
2004-08-13 06:29:56 +08:00
|
|
|
alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
|
|
|
|
gdb_target=nbsd ;;
|
2004-02-21 02:46:34 +08:00
|
|
|
alpha*-*-openbsd*) gdb_target=nbsd ;;
|
2002-08-18 12:00:47 +08:00
|
|
|
alpha*-*-*) gdb_target=alpha ;;
|
1999-04-16 09:35:26 +08:00
|
|
|
|
2000-02-24 11:31:45 +08:00
|
|
|
arm*-wince-pe) gdb_target=wince ;;
|
2002-02-14 13:31:46 +08:00
|
|
|
arm*-*-linux*) gdb_target=linux
|
|
|
|
build_gdbserver=yes
|
2000-04-21 05:13:19 +08:00
|
|
|
;;
|
2004-08-13 06:29:56 +08:00
|
|
|
arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
|
|
|
|
gdb_target=nbsd ;;
|
2003-05-05 21:57:21 +08:00
|
|
|
arm-*-nto*) gdb_target=nto ;;
|
1999-12-23 05:45:38 +08:00
|
|
|
arm*-*-* | thumb*-*-* | strongarm*-*-*)
|
|
|
|
gdb_target=embed
|
2005-01-20 06:04:37 +08:00
|
|
|
build_rdi_share=yes
|
2000-11-27 04:04:41 +08:00
|
|
|
;;
|
|
|
|
xscale-*-*) gdb_target=embed
|
2005-01-20 06:04:37 +08:00
|
|
|
build_rdi_share=yes
|
1999-08-17 03:57:19 +08:00
|
|
|
;;
|
1999-04-16 09:35:26 +08:00
|
|
|
|
2003-09-03 23:02:51 +08:00
|
|
|
avr-*-*) gdb_target=avr ;;
|
2002-04-26 04:34:56 +08:00
|
|
|
|
2001-07-16 16:52:41 +08:00
|
|
|
cris*) gdb_target=cris ;;
|
|
|
|
|
2004-11-01 22:44:58 +08:00
|
|
|
# OBSOLETE d10v-*-*) gdb_target=d10v ;;
|
1999-04-16 09:35:26 +08:00
|
|
|
|
2002-06-22 05:19:58 +08:00
|
|
|
frv-*-*) gdb_target=frv ;;
|
1999-07-20 07:30:11 +08:00
|
|
|
|
2005-02-12 18:38:52 +08:00
|
|
|
h8300-*-*) gdb_target=h8300 ;;
|
|
|
|
|
2000-06-13 23:21:27 +08:00
|
|
|
hppa*64*-*-hpux11*) gdb_target=hppa64 ;;
|
1999-04-16 09:35:26 +08:00
|
|
|
hppa*-*-hpux*) gdb_target=hppahpux ;;
|
|
|
|
hppa*-*-hiux*) gdb_target=hppahpux ;;
|
2004-04-29 11:36:50 +08:00
|
|
|
hppa*-*-linux*) gdb_target=linux ;;
|
2004-06-26 18:06:35 +08:00
|
|
|
hppa*-*-openbsd*) gdb_target=obsd ;;
|
2002-08-19 00:09:04 +08:00
|
|
|
hppa*-*-*) gdb_target=hppa ;;
|
1999-04-16 09:35:26 +08:00
|
|
|
|
2003-06-14 01:49:52 +08:00
|
|
|
i[34567]86-ncr-*) gdb_target=ncr3000 ;;
|
2004-01-27 12:10:38 +08:00
|
|
|
i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
|
|
|
|
gdb_target=nbsd ;;
|
2003-06-14 01:49:52 +08:00
|
|
|
i[34567]86-*-openbsd*) gdb_target=obsd ;;
|
|
|
|
i[34567]86-*-nto*) gdb_target=nto ;;
|
|
|
|
i[34567]86-*-lynxos*) gdb_target=i386lynx ;;
|
2004-11-02 05:05:56 +08:00
|
|
|
i[34567]86-*-solaris2.1[0-9]*) gdb_target=sol2-64 ;;
|
2003-06-14 01:49:52 +08:00
|
|
|
i[34567]86-*-solaris*) gdb_target=i386sol2 ;;
|
|
|
|
i[34567]86-*-linux*) gdb_target=linux
|
2002-02-14 13:31:46 +08:00
|
|
|
build_gdbserver=yes
|
|
|
|
;;
|
2003-06-14 01:49:52 +08:00
|
|
|
i[34567]86-*-gnu*) gdb_target=i386gnu ;;
|
2004-04-09 23:01:46 +08:00
|
|
|
i[34567]86-*-netware*) gdb_target=i386
|
2005-01-20 06:04:37 +08:00
|
|
|
build_nlm=yes
|
2005-01-08 00:22:33 +08:00
|
|
|
;;
|
2003-06-14 01:49:52 +08:00
|
|
|
i[34567]86-*-cygwin*) gdb_target=cygwin ;;
|
2004-04-09 23:01:46 +08:00
|
|
|
i[34567]86-*-*) gdb_target=i386 ;;
|
1999-04-27 02:34:20 +08:00
|
|
|
|
2002-02-14 13:31:46 +08:00
|
|
|
ia64-*-linux*) gdb_target=linux
|
|
|
|
build_gdbserver=yes
|
|
|
|
;;
|
2002-08-18 12:00:47 +08:00
|
|
|
ia64*-*-*) gdb_target=ia64 ;;
|
2000-03-21 13:26:31 +08:00
|
|
|
|
2005-03-08 16:59:47 +08:00
|
|
|
iq2000-*-*) gdb_target=iq2000 ;;
|
|
|
|
|
2004-10-01 15:29:34 +08:00
|
|
|
m32r*-*-linux*) gdb_target=linux ;;
|
|
|
|
m32r*-*-*) gdb_target=m32r ;;
|
1999-04-16 09:35:26 +08:00
|
|
|
|
2000-07-27 15:18:32 +08:00
|
|
|
m68hc11*-*-*|m6811*-*-*) gdb_target=m68hc11 ;;
|
|
|
|
|
1999-04-16 09:35:26 +08:00
|
|
|
m68*-cisco*-*) gdb_target=cisco ;;
|
|
|
|
m68*-tandem-*) gdb_target=st2000 ;;
|
|
|
|
m68*-*-aout*) gdb_target=monitor ;;
|
|
|
|
m68*-*-coff*) gdb_target=monitor ;;
|
|
|
|
m68*-*-elf*) gdb_target=monitor ;;
|
2005-03-19 02:59:17 +08:00
|
|
|
m68*-*-rtems*) gdb_target=monitor ;;
|
1999-04-16 09:35:26 +08:00
|
|
|
m68*-*-linux*) gdb_target=linux
|
2002-02-14 13:31:46 +08:00
|
|
|
build_gdbserver=yes
|
|
|
|
;;
|
2004-08-13 06:29:56 +08:00
|
|
|
m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
|
|
|
|
gdb_target=nbsd ;;
|
2004-05-01 07:28:52 +08:00
|
|
|
m68*-*-openbsd*) gdb_target=obsd ;;
|
1999-04-16 09:35:26 +08:00
|
|
|
m68*-*-os68k*) gdb_target=os68k ;;
|
2004-01-03 01:43:44 +08:00
|
|
|
m68*-*-uclinux*) gdb_target=monitor ;;
|
1999-04-16 09:35:26 +08:00
|
|
|
|
2004-05-25 05:00:09 +08:00
|
|
|
m88*-*-openbsd*) gdb_target=obsd ;;
|
|
|
|
|
2000-02-24 11:31:45 +08:00
|
|
|
mips*-*-pe) gdb_target=wince ;;
|
1999-04-16 09:35:26 +08:00
|
|
|
mips*-sgi-irix5*) gdb_target=irix5 ;;
|
2001-06-07 23:57:57 +08:00
|
|
|
mips*-sgi-irix6*) gdb_target=irix6 ;;
|
2002-02-14 13:31:46 +08:00
|
|
|
mips*-*-linux*) gdb_target=linux
|
|
|
|
build_gdbserver=yes
|
|
|
|
;;
|
2004-08-13 06:29:56 +08:00
|
|
|
mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
|
|
|
|
gdb_target=nbsd ;;
|
2004-10-23 20:14:02 +08:00
|
|
|
mips64*-*-openbsd*) gdb_target=obsd64 ;;
|
2002-08-18 12:14:02 +08:00
|
|
|
mips*-*-*) gdb_target=embed ;;
|
1999-04-16 09:35:26 +08:00
|
|
|
|
2004-12-11 10:02:01 +08:00
|
|
|
mn10300-*-*) gdb_target=mn10300 ;;
|
|
|
|
|
2004-08-13 06:29:56 +08:00
|
|
|
powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
|
|
|
|
gdb_target=nbsd ;;
|
2004-04-23 05:13:06 +08:00
|
|
|
powerpc-*-openbsd*) gdb_target=obsd ;;
|
1999-04-16 09:35:26 +08:00
|
|
|
powerpc-*-aix*) gdb_target=aix ;;
|
2002-02-14 13:31:46 +08:00
|
|
|
powerpc-*-linux*) gdb_target=linux
|
|
|
|
build_gdbserver=yes
|
|
|
|
;;
|
2003-06-13 07:30:39 +08:00
|
|
|
powerpc64-*-linux*) gdb_target=linux ;;
|
2002-08-08 23:37:29 +08:00
|
|
|
powerpc*-*-*) if test -f ../sim/ppc/Makefile; then
|
|
|
|
gdb_target=ppc-sim
|
|
|
|
else
|
|
|
|
gdb_target=ppc-eabi
|
|
|
|
fi ;;
|
1999-04-16 09:35:26 +08:00
|
|
|
|
2002-02-14 13:31:46 +08:00
|
|
|
rs6000-*-lynxos*) gdb_target=rs6000lynx ;;
|
1999-04-16 09:35:26 +08:00
|
|
|
rs6000-*-aix4*) gdb_target=aix4 ;;
|
|
|
|
rs6000-*-*) gdb_target=rs6000 ;;
|
|
|
|
|
2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
Committed by Jim Blandy <jimb@redhat.com>.
* config/s390/nm-linux.h: Update comments. Do not include "solib.h".
(KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
(FETCH_INFERIOR_REGISTERS): Define.
* config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
core-regset.o.
* config/s390/s390x.mt: Remove.
* config/s390/tm-s390.h: Remove.
* config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
(TARGET_ELF64): Remove.
(SKIP_TRAMPOLINE_CODE): Do not undefine.
* configure.tgt [s390-*-*, s390x-*-*]: Merge into single
s390*-*-* case; always set gdb_target to s390.
* regformats/reg-s390.dat: Remove control registers.
* regformats/reg-s390x.dat: Likewise.
* s390-tdep.h: New file.
* s390-nat.c: Do not include <asm/processor.h> or <value.h>.
Include "inferior.h" and "s390-tdep.h".
Remove private definition of offsetof.
(s390_register_u_addr): Remove.
(regmap_gregset, regmap_fpregset): Define.
(supply_gregset, fill_gregset): Reimplement.
(supply_fpregset, fill_fpregset): Likewise.
(s390_inferior_tid): New function.
(fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
(fetch_inferior_registers, store_inferior_registers): Likewise.
* s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
(struct gdbarch_tdep): Define.
(struct s390_register_info): Define.
(s390_register_info): New variable.
(s390_register_name): Reimplement.
(s390_register_type): New function.
(s390_register_raw_size, s390x_register_raw_size): Remove.
(s390_cannot_fetch_register): Remove.
(s390_register_byte): Remove.
(s390_register_virtual_type, s390x_register_virtual_type): Remove.
(s390_dwarf_regmap): New variable.
(s390_dwarf_reg_to_regnum): New function.
(s390_stab_reg_to_regnum): Remove.
(s390_pseudo_register_read, s390_pseudo_register_write): New functions.
(s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
(s390_convert_register_p): Likewise.
(s390_register_to_value, s390_value_to_register): Likewise.
(s390_register_reggroup_p): Likewise.
(s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
s390_gregset, s390x_gregset, s390_fpregset): New variables.
(s390_supply_regset, s390_regset_from_core_section): New functions.
(GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
(S390_FPR_SIZE): Likewise.
(S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
(S390_NUM_GPRS): Move here from tm-s390.h.
(S390_NUM_FPRS): Likewise.
(s390_in_function_epilogue_p): New function.
(s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
(s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
Replace S390_FP_REGNUM by S390_SP_REGNUM.
Remove calls to:
set_gdbarch_deprecated_max_register_raw_size,
set_gdbarch_deprecated_max_register_virtual_size,
set_gdbarch_deprecated_register_byte,
set_gdbarch_cannot_fetch_register,
set_gdbarch_cannot_store_register,
set_gdbarch_deprecated_register_size,
set_gdbarch_deprecated_register_raw_size,
set_gdbarch_deprecated_register_virtual_size,
set_gdbarch_deprecated_register_virtual_type,
set_gdbarch_deprecated_register_bytes.
Add calls to:
set_gdbarch_num_pseudo_regs,
set_gdbarch_register_type,
set_gdbarch_convert_register_p,
set_gdbarch_register_to_value,
set_gdbarch_value_to_register,
set_gdbarch_register_reggroup_p,
set_gdbarch_regset_from_core_section,
set_gdbarch_pseudo_register_read,
set_gdbarch_pseudo_register_write,
set_gdbarch_in_function_epilogue_p.
* Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
(s390_tdep_h): New variable.
2004-02-18 11:42:51 +08:00
|
|
|
s390*-*-*) gdb_target=s390
|
2002-03-01 00:58:15 +08:00
|
|
|
build_gdbserver=yes
|
|
|
|
;;
|
2001-06-16 03:23:45 +08:00
|
|
|
|
2000-02-24 11:31:45 +08:00
|
|
|
sh*-*-pe) gdb_target=wince ;;
|
2001-01-31 07:37:07 +08:00
|
|
|
sh-*-coff*) gdb_target=embed ;;
|
|
|
|
sh-*-elf*) gdb_target=embed ;;
|
2003-09-08 19:26:21 +08:00
|
|
|
# FIXME should that be sh*-*-linux*, perhaps?
|
2002-02-14 13:31:46 +08:00
|
|
|
sh-*-linux*) gdb_target=linux
|
|
|
|
build_gdbserver=yes
|
|
|
|
;;
|
2004-08-13 06:29:56 +08:00
|
|
|
sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
|
|
|
|
gdb_target=nbsd ;;
|
2003-05-05 21:57:21 +08:00
|
|
|
sh-*-nto*) gdb_target=nto ;;
|
2002-05-14 23:22:29 +08:00
|
|
|
sh*) gdb_target=embed ;;
|
1999-06-08 03:19:32 +08:00
|
|
|
|
1999-04-16 09:35:26 +08:00
|
|
|
sparc-*-linux*) gdb_target=linux ;;
|
* Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
(sparc_nat_h): New variable.
(sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
(tm-sun4os4.h): Remove dependency.
(sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
(sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
sparc-tdep.o): Update dependencies.
(sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
dependencies.
* configure.host: Remove existing sparc-*-lynxos*,
sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
triplets.
* configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
sparc64-*-solaris2* and sparc64-*-* triplets.
* sparc64-tdep.c: Update copyright year. Include "inferior.h",
"symtab.h" and "objfiles.h".
(BIAS): Remove define.
(X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
(X_DISP19): Remove macros.
(sparc_fetch_instruction): Remove function.
(struct gdbarch_tdep): Remove definition.
(SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
(sparc_breakpoint_from_pc): Remove function.
(struct sparc64_frame_cache): Remove definition.
(sparc64_alloc_frame_cache, sparc64_analyze_prologue,
sparc64_unwind_pc): Remove functions.
(sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
`struct sparc64_frame_cache. Call sparc_analyze_prologue instead
of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
(sparc64_frame_cache): Change return type to `struct
sparc_frame_cache *'. Simply call sparc_frame_cache.
(sparc64_frame_this_id, sparc64_frame_prev_register,
sparc64_frame_base_address): Use `struct sparc_frame_cache'
instead of `struct sparc64_frame_cache.
(sparc_unwind_dummy_id, sparc_extract_struct_value_address,
sparc_analyze_control_transfer, sparc_software_single_step,
sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
_initialize_sparc64_tdep): Remove functions.
(TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
(PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
macros.
(sparc64_supply_gregset, sparc64_collect_gregset,
sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
(sparc64_init_abi): New function.
* sparc64-tdep.h: Update copyright year. Fix typo in multiple
inclusion guard. Include "sparc-tdep.h".
(BIAS): Define.
(r_tstate_offset, r_fprs_offset): New defines.
(enum sparc_regnum): Remove defenition.
(enum sparc64_regnum): Reformat.
(sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
(sparc64_init_abi, sparc64_supply_gregset,
sparc64_collect_gregset, sparc64_supply_fpregset,
sparc64_collect_fpregset): New prototypes.
(sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
Add extern declarations.
(sparc64_sol2_init_abi): New prototype.
(sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
(sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
prototypes.
* sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
"sparnbsd-nat.h".
(sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
functions.
(_initialize_sparc64fbsd_nat): Remove initialization of
sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
* sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
"frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
(sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
(sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
(sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
(sparc64fbsd_r_y_offset): Remove variables.
(sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
Make static and const.
(sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
(sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
functions.
(sparc64fbsd_gregset): New variable.
(fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
and sparc64_supply_fpregset.
(sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
(sparc64fbsd_sigtramp_frame_this_id)
(sparc64fbsd_sigtramp_frame_prev_register): New functions.
(sparc64fbsd_sigtramp_frame_unwind): New variable.
(sparc64fbsd_sigtramp_frame_sniffer): New function.
(sparc64fbsd_init_abi): Set pc_in_sigtramp, append
sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
* sparcnbsd-tdep.c: Update copyright year. Include
"floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
"trad-frame.h" and "gdb_assert.h", don't include "target.h",
"value.h" and "sparcnbsd-tdep.h".
(REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
(REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
(REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
(REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
defines.
(sparcnbsd_gregset): New variable.
(sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
(sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
(sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
(sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
(sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
variables.
(sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
(sparc32nbsd_sigcontext_frame_this_id)
(sparc32nbsd_sigcontext_frame_prev_register): New functions.
(sparc32nbsd_sigcontext_frame_unwind): New variable.
(sparc32nbsd_sigtramp_frame_sniffer): New function.
(sparcnbsd_get_longjmp_target_32,
sparcnbsd_get_longjmp_target_64): Remove functions.
(sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
(sparcnbsd_init_abi_common, sparcnbsd_init_aout,
sparcnbsd_init_elf): Remove.
(sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
(sparcnbsd_elf_init_abi): New functions.
(_initialize_sparcnbsd_tdep): New prototype.
(_initialize_sparnbsd_tdep): Update.
* config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
corelow.o. Add sparc64-nat.o and sparc-nat.o.
* config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
* config/sparc/linux.mh: Update comment.
(XM_FILE, HOST_IPC): Remove variables.
(NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
sparc-linux-nat.o.
* config/sparc/linux.mt: Update comment.
(TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
* config/sparc/nbsd.mt: Reformat.
* config/sparc/nbsd64.mh: Update comment.
(NATDEPFILES): Add sparc-nat.o.
* config/sparc/nbsd64.mt: Update comment.
(TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
(TM_FILE): Set to tm-nbsd.h.
* config/sparc/nbsdelf.mh: Update comment.
(NATDEPFILES): Add sparc-nat.o.
(XM_FILE): Delete.
* config/sparc/nbsdaout.mh: Update comment.
(NATDEPFILES): Add sparc-nat.o
(XM_FILE): Delete.
* config/sparc/nm-linux.h: Update copyright year. Don't include
"config/nm-svr4.h" and "solib.h". Add protection against multiple
inclusion.
(KERNEL_U_SIZE): Remove define.
(kernel_u_size): Remove prototype.
(PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
* config/sparc/nm-nbsd.h: Update copyright. Don't include
"regcache.h".
(CHILD_PREPARE_TO_STORE): Remove define.
* config/sparc/nm-nbsdaout.h: Tweak some comments.
* sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
sparcnbsd-nat.c: Rewrite files.
* config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
* sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
sparcnbsd-tdep.h: Remove files.
* config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
* sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
* config/sparc/linux64.mh, config/sparc/linux64.mt,
config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
2004-01-03 18:08:45 +08:00
|
|
|
sparc64-*-linux*) gdb_target=linux64 ;;
|
2004-08-13 06:29:56 +08:00
|
|
|
sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
|
|
|
|
gdb_target=nbsd ;;
|
|
|
|
sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
|
|
|
|
gdb_target=nbsd64 ;;
|
2004-01-25 19:46:45 +08:00
|
|
|
sparc-*-openbsd*) gdb_target=obsd ;;
|
2004-09-29 04:25:59 +08:00
|
|
|
sparc64-*-openbsd*) gdb_target=obsd64 ;;
|
* Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
(sparc_nat_h): New variable.
(sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
(tm-sun4os4.h): Remove dependency.
(sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
(sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
sparc-tdep.o): Update dependencies.
(sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
dependencies.
* configure.host: Remove existing sparc-*-lynxos*,
sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
triplets.
* configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
sparc64-*-solaris2* and sparc64-*-* triplets.
* sparc64-tdep.c: Update copyright year. Include "inferior.h",
"symtab.h" and "objfiles.h".
(BIAS): Remove define.
(X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
(X_DISP19): Remove macros.
(sparc_fetch_instruction): Remove function.
(struct gdbarch_tdep): Remove definition.
(SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
(sparc_breakpoint_from_pc): Remove function.
(struct sparc64_frame_cache): Remove definition.
(sparc64_alloc_frame_cache, sparc64_analyze_prologue,
sparc64_unwind_pc): Remove functions.
(sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
`struct sparc64_frame_cache. Call sparc_analyze_prologue instead
of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
(sparc64_frame_cache): Change return type to `struct
sparc_frame_cache *'. Simply call sparc_frame_cache.
(sparc64_frame_this_id, sparc64_frame_prev_register,
sparc64_frame_base_address): Use `struct sparc_frame_cache'
instead of `struct sparc64_frame_cache.
(sparc_unwind_dummy_id, sparc_extract_struct_value_address,
sparc_analyze_control_transfer, sparc_software_single_step,
sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
_initialize_sparc64_tdep): Remove functions.
(TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
(PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
macros.
(sparc64_supply_gregset, sparc64_collect_gregset,
sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
(sparc64_init_abi): New function.
* sparc64-tdep.h: Update copyright year. Fix typo in multiple
inclusion guard. Include "sparc-tdep.h".
(BIAS): Define.
(r_tstate_offset, r_fprs_offset): New defines.
(enum sparc_regnum): Remove defenition.
(enum sparc64_regnum): Reformat.
(sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
(sparc64_init_abi, sparc64_supply_gregset,
sparc64_collect_gregset, sparc64_supply_fpregset,
sparc64_collect_fpregset): New prototypes.
(sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
Add extern declarations.
(sparc64_sol2_init_abi): New prototype.
(sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
(sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
prototypes.
* sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
"sparnbsd-nat.h".
(sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
functions.
(_initialize_sparc64fbsd_nat): Remove initialization of
sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
* sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
"frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
(sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
(sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
(sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
(sparc64fbsd_r_y_offset): Remove variables.
(sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
Make static and const.
(sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
(sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
functions.
(sparc64fbsd_gregset): New variable.
(fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
and sparc64_supply_fpregset.
(sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
(sparc64fbsd_sigtramp_frame_this_id)
(sparc64fbsd_sigtramp_frame_prev_register): New functions.
(sparc64fbsd_sigtramp_frame_unwind): New variable.
(sparc64fbsd_sigtramp_frame_sniffer): New function.
(sparc64fbsd_init_abi): Set pc_in_sigtramp, append
sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
* sparcnbsd-tdep.c: Update copyright year. Include
"floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
"trad-frame.h" and "gdb_assert.h", don't include "target.h",
"value.h" and "sparcnbsd-tdep.h".
(REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
(REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
(REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
(REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
defines.
(sparcnbsd_gregset): New variable.
(sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
(sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
(sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
(sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
(sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
variables.
(sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
(sparc32nbsd_sigcontext_frame_this_id)
(sparc32nbsd_sigcontext_frame_prev_register): New functions.
(sparc32nbsd_sigcontext_frame_unwind): New variable.
(sparc32nbsd_sigtramp_frame_sniffer): New function.
(sparcnbsd_get_longjmp_target_32,
sparcnbsd_get_longjmp_target_64): Remove functions.
(sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
(sparcnbsd_init_abi_common, sparcnbsd_init_aout,
sparcnbsd_init_elf): Remove.
(sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
(sparcnbsd_elf_init_abi): New functions.
(_initialize_sparcnbsd_tdep): New prototype.
(_initialize_sparnbsd_tdep): Update.
* config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
corelow.o. Add sparc64-nat.o and sparc-nat.o.
* config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
* config/sparc/linux.mh: Update comment.
(XM_FILE, HOST_IPC): Remove variables.
(NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
sparc-linux-nat.o.
* config/sparc/linux.mt: Update comment.
(TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
* config/sparc/nbsd.mt: Reformat.
* config/sparc/nbsd64.mh: Update comment.
(NATDEPFILES): Add sparc-nat.o.
* config/sparc/nbsd64.mt: Update comment.
(TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
(TM_FILE): Set to tm-nbsd.h.
* config/sparc/nbsdelf.mh: Update comment.
(NATDEPFILES): Add sparc-nat.o.
(XM_FILE): Delete.
* config/sparc/nbsdaout.mh: Update comment.
(NATDEPFILES): Add sparc-nat.o
(XM_FILE): Delete.
* config/sparc/nm-linux.h: Update copyright year. Don't include
"config/nm-svr4.h" and "solib.h". Add protection against multiple
inclusion.
(KERNEL_U_SIZE): Remove define.
(kernel_u_size): Remove prototype.
(PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
* config/sparc/nm-nbsd.h: Update copyright. Don't include
"regcache.h".
(CHILD_PREPARE_TO_STORE): Remove define.
* config/sparc/nm-nbsdaout.h: Tweak some comments.
* sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
sparcnbsd-nat.c: Rewrite files.
* config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
* sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
sparcnbsd-tdep.h: Remove files.
* config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
* sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
* config/sparc/linux64.mh, config/sparc/linux64.mt,
config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
2004-01-03 18:08:45 +08:00
|
|
|
sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
|
|
|
|
gdb_target=sol2
|
|
|
|
;;
|
|
|
|
sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
|
|
|
|
gdb_target=sol2-64
|
|
|
|
;;
|
|
|
|
sparc-*-*) gdb_target=sparc ;;
|
|
|
|
sparc64-*-*) gdb_target=sparc64 ;;
|
1999-04-16 09:35:26 +08:00
|
|
|
|
2001-12-13 21:34:41 +08:00
|
|
|
xstormy16-*-*) gdb_target=xstormy16 ;;
|
|
|
|
|
2004-08-13 06:29:56 +08:00
|
|
|
vax-*-netbsd* | vax-*-knetbsd*-gnu)
|
|
|
|
gdb_target=nbsd ;;
|
2004-04-15 02:02:44 +08:00
|
|
|
vax-*-openbsd*) gdb_target=nbsd ;;
|
1999-04-16 09:35:26 +08:00
|
|
|
vax-*-*) gdb_target=vax ;;
|
|
|
|
|
* amd64-tdep.h: Renamed from x86-64-tdep.h.
* amd64-tdep.c: Renamed from x86-64-tdep.c. Include
"amd64-tdep.h" instead of "x86-64-tdep.h".
* amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
* amd64-linux-tdep.h: Renamed from x86-64-linux.h.
* amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
"amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
and "x86-64-tdep.c".
* amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
"amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
and "x86-64-tdep.c".
* amd64bsd-nat.c: Update copyright year.
Include "amd64-tdep.h" instead of "x86-64-tdep.h".
* amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* amd64obsd-nat.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
* configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
* Makefile.in (amd64_linux_tdep_h): Renamed from
x86_64_linux_tdep_h.
(amd64_tdep_h): Renamed from x86_64_tdep_h.
(amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
(amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
(amd64obsd-tdep.o): Update dependencies.
(amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
dependencies.
(x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
dependencies.
(ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
amd64-linux-nat.c amd64-linux-tdep.c.
* config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
* config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
* config/i386/linux64.mt: Renamed from x86-64linux.mt.
(TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
amd64-tdep.o and amd64-linux-tdep.o.
(TM_FILE): Set to tm-linux64.h.
* config/i386/linux64.mh: Renamed from x86-64linux.mh.
(NAT_FILE): Set to nm-linux64.h.
(NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
* config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
amd64-tdep.o.
* config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
amd64-tdep.o.
* config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
amd64-tdep.o.
2004-02-26 04:45:31 +08:00
|
|
|
x86_64-*-linux*) gdb_target=linux64
|
2002-02-27 15:07:49 +08:00
|
|
|
build_gdbserver=yes
|
|
|
|
;;
|
2004-08-13 06:29:56 +08:00
|
|
|
x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
|
|
|
|
gdb_target=nbsd64 ;;
|
2004-09-29 04:25:59 +08:00
|
|
|
x86_64-*-openbsd*) gdb_target=obsd64 ;;
|
2002-01-20 17:10:27 +08:00
|
|
|
|
1999-04-16 09:35:26 +08:00
|
|
|
esac
|
1999-10-06 07:13:56 +08:00
|
|
|
|
2003-01-05 07:47:13 +08:00
|
|
|
# map target onto default OS ABI
|
|
|
|
|
|
|
|
case "${target}" in
|
|
|
|
*-*-linux*) gdb_osabi=GDB_OSABI_LINUX ;;
|
2003-05-05 21:57:21 +08:00
|
|
|
*-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;;
|
2004-09-29 04:39:17 +08:00
|
|
|
m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
|
2004-09-29 04:25:59 +08:00
|
|
|
*-*-openbsd*) gdb_osabi=GDB_OSABI_OPENBSD_ELF ;;
|
2003-02-06 07:04:16 +08:00
|
|
|
*-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;;
|
2004-08-13 06:29:56 +08:00
|
|
|
*-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below
|
|
|
|
*-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;;
|
2003-01-05 07:47:13 +08:00
|
|
|
esac
|