diff options
author | Tristan Gingold <gingold@adacore.com> | 2009-07-03 12:06:36 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2009-07-03 12:06:36 +0000 |
commit | 5cd226f27555deecd8cb96019e0e915c7c7c2a3c (patch) | |
tree | a67d86fe25c6c31f36d5463127163a2ae5752570 /gdb/amd64-darwin-tdep.h | |
parent | 27505b5d0fc279055b9d27c5f45b199192422f16 (diff) | |
download | gdb-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/amd64-darwin-tdep.h')
-rw-r--r-- | gdb/amd64-darwin-tdep.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gdb/amd64-darwin-tdep.h b/gdb/amd64-darwin-tdep.h new file mode 100644 index 0000000..c3a4bea --- /dev/null +++ b/gdb/amd64-darwin-tdep.h @@ -0,0 +1,28 @@ +/* Target-dependent code for Darwin x86-64. + + Copyright (C) 2009 Free Software Foundation, Inc. + + This file is part of GDB. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#ifndef __AMD64_DARWIN_TDEP_H__ +#define __AMD64_DARWIN_TDEP_H__ + +/* Mapping between the general-purpose registers in Darwin x86-64 thread + state and GDB's register cache layout. + Indexed by amd64_regnum. */ +extern int amd64_darwin_thread_state_reg_offset[]; +extern const int amd64_darwin_thread_state_num_regs; + +#endif /* __AMD64_DARWIN_TDEP_H__ */ |