This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[rfc] [14/17] Get rid of current_gdbarch in dummy-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: Thu, 11 Oct 2007 10:54:17 +0200
- Subject: [rfc] [14/17] Get rid of current_gdbarch in dummy-frame.c
Hi,
this patch gets rid of some of the current_gdbarch's in dummy-frame.c
Thanks a lot. Is this ok to commit?
ChangeLog:
* dummy-frame.c (deprecated_pc_in_call_dummy): Use get_regcache_arch to
get at the current architecture by regcache.
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
diff -urpN src/gdb/dummy-frame.c dev/gdb/dummy-frame.c
--- src/gdb/dummy-frame.c 2007-08-23 20:08:28.000000000 +0200
+++ dev/gdb/dummy-frame.c 2007-10-11 10:10:12.000000000 +0200
@@ -74,7 +74,8 @@ deprecated_pc_in_call_dummy (CORE_ADDR p
{
if ((pc >= dummyframe->id.code_addr)
&& (pc <= dummyframe->id.code_addr
- + gdbarch_decr_pc_after_break (current_gdbarch)))
+ + gdbarch_decr_pc_after_break
+ (get_regcache_arch (dummyframe->regcache))))
return 1;
}
return 0;