From f669bd59d3cb69f76ad8d41e338c46ab81f614df Mon Sep 17 00:00:00 2001 From: ricard Date: Fri, 6 Sep 2013 08:37:16 +0000 Subject: Add support for threaded debugging for CRISv32. 2013-09-06 Ricard Wanderlof * 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. --- gdb/cris-tdep.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/cris-tdep.c') diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c index 1b0e3cdec07..ef2746d7d1f 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: -- cgit v1.2.1