diff options
author | Ricard Wanderlof <ricard@sourceware.org> | 2013-09-06 08:37:17 +0000 |
---|---|---|
committer | Ricard Wanderlof <ricard@sourceware.org> | 2013-09-06 08:37:17 +0000 |
commit | 8eb3d7b6ca8ba08fba66a25ffe1e26a571187c55 (patch) | |
tree | 295294c81083c765d0eec4a2733d41d59dcd1ef3 /gdb/cris-tdep.c | |
parent | 1581d8a7b47a9c0d600d575bb91aa3e135669906 (diff) | |
download | gdb-8eb3d7b6ca8ba08fba66a25ffe1e26a571187c55.zip gdb-8eb3d7b6ca8ba08fba66a25ffe1e26a571187c55.tar.gz gdb-8eb3d7b6ca8ba08fba66a25ffe1e26a571187c55.tar.bz2 |
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.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c index 1b0e3cd..ef2746d 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: |