This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]