This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 07/17] Cris 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:15 -0300
- Subject: [PATCH 07/17] Cris support
- References: <1372664545-3947-1-git-send-email-sergiodj at redhat dot com>
Cris target support. Trivial, since it shares the signal numbers with
x86.
2013-07-01 Sergio Durigan Junior <sergiodj@redhat.com>
* cris-tdep.c: Include linux-tdep.h.
(cris_gdbarch_init): Set gdbarch_gdb_signal_to_target to
linux_gdb_signal_to_target.
---
gdb/cris-tdep.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c
index 03041e4..1d78ded 100644
--- a/gdb/cris-tdep.c
+++ b/gdb/cris-tdep.c
@@ -44,6 +44,7 @@
#include "solib-svr4.h"
#include "gdb_string.h"
#include "dis-asm.h"
+#include "linux-tdep.h"
enum cris_num_regs
{
@@ -4178,7 +4179,9 @@ cris_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
set_solib_svr4_fetch_link_map_offsets
(gdbarch, svr4_ilp32_fetch_link_map_offsets);
-
+
+ set_gdbarch_gdb_signal_to_target (gdbarch, linux_gdb_signal_to_target);
+
/* FIXME: cagney/2003-08-27: It should be possible to select a CRIS
disassembler, even when there is no BFD. Does something like
"gdb; target remote; disassmeble *0x123" work? */
--
1.7.11.7