This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[rfc]: Replace current_gdbarch in sentinel-frame.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: Fri, 15 Feb 2008 10:24:25 +0100
- Subject: [rfc]: Replace current_gdbarch in sentinel-frame.c
Hi,
this is a trivial replacement of current_gdbarch in sentinel-frame.c. Tested on x86.
Ok to commit?
ChangeLog:
* sentinel-frame.c (sentinel_frame_prev_register): Use get_frame_arch
to get at the current architecture.
Regards,
Markus
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
diff -urpN src/gdb/sentinel-frame.c dev/gdb/sentinel-frame.c
--- src/gdb/sentinel-frame.c 2008-01-01 23:53:12.000000000 +0100
+++ dev/gdb/sentinel-frame.c 2008-02-15 10:07:36.000000000 +0100
@@ -54,7 +54,7 @@ sentinel_frame_prev_register (struct fra
onto the corresponding hardware register. */
*optimized = 0;
*lvalp = lval_register;
- *addrp = register_offset_hack (current_gdbarch, regnum);
+ *addrp = register_offset_hack (get_frame_arch (next_frame), regnum);
*realnum = regnum;
/* If needed, find and return the value of the register. */