From 7f68ac277bc7bb2c01b9adf972ca2397413bc555 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 1 Apr 2007 18:24:59 +0000 Subject: * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter gdbarch instead of current_gdbarch. --- gdb/ChangeLog | 5 +++++ gdb/rs6000-tdep.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + + * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter + gdbarch instead of current_gdbarch. + 2007-04-01 Vladimir Prus * 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); } -- cgit v1.1