This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 07/17] Cris support


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]