aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/rs6000-tdep.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 20f2a2d..d11535d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-01 Andreas Schwab <schwab@suse.de>
+
+ * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
+ gdbarch instead of current_gdbarch.
+
2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
* varobj.c (varobj_create): Keep varobj value
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index 507b22f..6e17167 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -2390,7 +2390,7 @@ rs6000_convert_from_func_ptr_addr (struct gdbarch *gdbarch,
return addr;
/* ADDR is in the data space, so it's a special function pointer. */
- return read_memory_addr (addr, gdbarch_tdep (current_gdbarch)->wordsize);
+ return read_memory_addr (addr, gdbarch_tdep (gdbarch)->wordsize);
}