This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 04/17] x86_64 support
- From: Sergio Durigan Junior <sergiodj at redhat dot com>
- To: GDB Patches <gdb-patches at sourceware dot org>
- Cc: Sergio Durigan Junior <sergiodj at redhat dot com>
- Date: Mon, 1 Jul 2013 04:42:12 -0300
- Subject: [PATCH 04/17] x86_64 support
- References: <1372664545-3947-1-git-send-email-sergiodj at redhat dot com>
This patch simply adds support for x86_64 targets. In this particular
case, we just have to set linux_gdb_signal_to_target as the default
gdbarch method.
2013-07-01 Sergio Durigan Junior <sergiodj@redhat.com>
* amd64-linux-tdep.c (amd64_linux_init_abi_common): Set
gdbarch_gdb_signal_to_target as linux_gdb_signal_to_target.
---
gdb/amd64-linux-tdep.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c
index 88c291d..cf999ec 100644
--- a/gdb/amd64-linux-tdep.c
+++ b/gdb/amd64-linux-tdep.c
@@ -1326,6 +1326,11 @@ amd64_linux_init_abi_common(struct gdbarch_info info, struct gdbarch *gdbarch)
set_gdbarch_get_syscall_number (gdbarch,
amd64_linux_get_syscall_number);
+ /* Convert the internal GDB signal representation to the
+ target's. */
+ set_gdbarch_gdb_signal_to_target (gdbarch,
+ linux_gdb_signal_to_target);
+
/* Enable TLS support. */
set_gdbarch_fetch_tls_load_module_address (gdbarch,
svr4_fetch_objfile_link_map);
--
1.7.11.7