aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.tgt
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2009-07-03 12:06:36 +0000
committerTristan Gingold <gingold@adacore.com>2009-07-03 12:06:36 +0000
commit5cd226f27555deecd8cb96019e0e915c7c7c2a3c (patch)
treea67d86fe25c6c31f36d5463127163a2ae5752570 /gdb/configure.tgt
parent27505b5d0fc279055b9d27c5f45b199192422f16 (diff)
downloadgdb-5cd226f27555deecd8cb96019e0e915c7c7c2a3c.zip
gdb-5cd226f27555deecd8cb96019e0e915c7c7c2a3c.tar.gz
gdb-5cd226f27555deecd8cb96019e0e915c7c7c2a3c.tar.bz2
2009-06-29 Tristan Gingold <gingold@adacore.com>
* i386-darwin-tdep.c (amd64_darwin_thread_state_reg_offset) (amd64_darwin_thread_state_num_regs) (amd64_darwin_sigcontext_addr, x86_darwin_init_abi_64): Moved to amd64-darwin-tdep.c (_initialize_i386_darwin_tdep): Remove 64 bits parts. (darwin_dwarf_signal_frame_p): Make public. * amd64-darwin-tdep.c: New file with most chunks from i386-darwin-tdep.c * i386-darwin-tdep.h: Add a prototype for darwin_dwarf_signal_frame_p. (amd64_darwin_thread_state_reg_offset) (amd64_darwin_thread_state_num_regs): Moved to amd64-darwin-tdep.h * amd64-darwin-tdep.h: New file. * i386-darwin-nat.c: Only includes amd64-nat.h and amd64-darwin-tdep.h if BFD64 is defined. (i386_darwin_fetch_inferior_registers): Add #ifdef BFD64/#endif around 64 bits parts. (i386_darwin_store_inferior_registers): Ditto. (darwin_set_sstep): Ditto. (darwin_complete_target): Ditto. (amd64_darwin_sstep_at_sigreturn): Ditto. * configure.tgt: Create a separate entry for x86_64-*-darwin. Add 64 bits support for i386-*-darwin if --enable-64-bit-bfd. * Makefile.in (ALLDEPFILES): Add amd64-darwin-tdep.c, darwin-nat.c, i386-darwin-tdep.c i386-darwin-nat.c (ALL_64_TARGET_OBS): Add amd64-darwin-tdep.o
Diffstat (limited to 'gdb/configure.tgt')
-rw-r--r--gdb/configure.tgt15
1 files changed, 13 insertions, 2 deletions
diff --git a/gdb/configure.tgt b/gdb/configure.tgt
index b704842..c76e316 100644
--- a/gdb/configure.tgt
+++ b/gdb/configure.tgt
@@ -151,10 +151,14 @@ hppa*-*-*)
gdb_target_obs="hppa-tdep.o"
;;
-i[34567]86-*-darwin* | x86_64-*-darwin*)
+i[34567]86-*-darwin*)
# Target: Darwin/i386
- gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
+ gdb_target_obs="i386-tdep.o i387-tdep.o \
i386-darwin-tdep.o solib.o solib-darwin.o"
+ if test "x$enable_64_bit_bfd" = "xyes"; then
+ # Target: GNU/Linux x86-64
+ gdb_target_obs="amd64-tdep.o amd64-darwin-tdep.o ${gdb_target_obs}"
+ fi
;;
i[34567]86-*-dicos*)
# Target: DICOS/i386
@@ -524,6 +528,13 @@ vax-*-*)
gdb_target_obs="vax-tdep.o"
;;
+x86_64-*-darwin*)
+ # Target: Darwin/x86-64
+ gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
+ i386-darwin-tdep.o amd64-darwin-tdep.o \
+ solib.o solib-darwin.o"
+ ;;
+
x86_64-*-dicos*)
# Target: DICOS/x86-64
gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \