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] [06/20] Get rid of current_gdbarch in arm-tdep.c


Hi,

this patch gets rid of some of the current_gdbarch's in arm-tdep.c

Is this ok to commit?

ChangeLog:


* arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.



-- Markus Deuling GNU Toolchain for Linux on Cell BE deuling@de.ibm.com



diff -urpN src/gdb/arm-tdep.c dev/gdb/arm-tdep.c
--- src/gdb/arm-tdep.c	2007-10-15 21:45:30.000000000 +0200
+++ dev/gdb/arm-tdep.c	2007-10-30 06:15:37.000000000 +0100
@@ -1719,7 +1719,7 @@ arm_get_next_pc (struct frame_info *fram
 	  nextpc = BranchDest (pc, this_instr);
 	  nextpc |= bit (this_instr, 24) << 1;
 
-	  nextpc = gdbarch_addr_bits_remove (current_gdbarch, nextpc);
+	  nextpc = gdbarch_addr_bits_remove (gdbarch, nextpc);
 	  if (nextpc == pc)
 	    error (_("Infinite loop detected"));
 	  break;


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