This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[rfc] [06/20] Get rid of current_gdbarch in arm-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:22 +0100
- Subject: [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;