This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[rfc] [12/20] Get rid of current_gdbarch in frv-linux-tdep.c
- From: Markus Deuling <deuling at de dot ibm dot com>
- To: GDB Patches <gdb-patches at sourceware dot org>
- Cc: Ulrich Weigand <uweigand at de dot ibm dot com>
- Date: Tue, 30 Oct 2007 10:54:48 +0100
- Subject: [rfc] [12/20] Get rid of current_gdbarch in frv-linux-tdep.c
Hi,
this patch gets rid of some of the current_gdbarch's in frv-linux-tdep.c
Is this ok to commit?
ChangeLog:
* frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
to get at the current architecture by frame_info.
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
diff -urpN src/gdb/frv-linux-tdep.c dev2/gdb/frv-linux-tdep.c
--- src/gdb/frv-linux-tdep.c 2007-08-23 20:08:31.000000000 +0200
+++ dev2/gdb/frv-linux-tdep.c 2007-10-30 07:34:13.000000000 +0100
@@ -256,7 +256,7 @@ static struct trad_frame_cache *
frv_linux_sigtramp_frame_cache (struct frame_info *next_frame, void **this_cache)
{
struct trad_frame_cache *cache;
- struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
+ struct gdbarch_tdep *tdep = gdbarch_tdep (get_frame_arch (next_frame));
CORE_ADDR addr;
char buf[4];
int regnum;