aboutsummaryrefslogtreecommitdiff
path: root/gdb/cris-tdep.c
diff options
context:
space:
mode:
authorRicard Wanderlof <ricard@sourceware.org>2013-09-06 08:37:17 +0000
committerRicard Wanderlof <ricard@sourceware.org>2013-09-06 08:37:17 +0000
commit8eb3d7b6ca8ba08fba66a25ffe1e26a571187c55 (patch)
tree295294c81083c765d0eec4a2733d41d59dcd1ef3 /gdb/cris-tdep.c
parent1581d8a7b47a9c0d600d575bb91aa3e135669906 (diff)
Add support for threaded debugging for CRISv32.
2013-09-06 Ricard Wanderlof <ricardw@axis.com> * cris-tdep.c (cris_gdbarch_init): Add call to get_gdbarch_fetch_tls_load_module_address. gdbserver * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro. (ps_get_thread_area): New function.
Diffstat (limited to 'gdb/cris-tdep.c')
-rw-r--r--gdb/cris-tdep.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c
index 1b0e3cdec0..ef2746d7d1 100644
--- a/gdb/cris-tdep.c
+++ b/gdb/cris-tdep.c
@@ -4137,6 +4137,11 @@ cris_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
set_gdbarch_single_step_through_delay
(gdbarch, crisv32_single_step_through_delay);
+ /* FIXME: Ricard W/2013-09-03: Linux-specific stuff like this
+ should really go in (a new) cris-linux-tdep.c. */
+ set_gdbarch_fetch_tls_load_module_address (gdbarch,
+ svr4_fetch_objfile_link_map);
+
break;
default: