aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-tdep.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2007-04-01 18:24:59 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2007-04-01 18:24:59 +0000
commit7f68ac277bc7bb2c01b9adf972ca2397413bc555 (patch)
tree13a36e5250c51111fbc1bdca316d53be0c92ae27 /gdb/rs6000-tdep.c
parente55dccf02d210cedb1d3fbf8a490bfc1b009d32f (diff)
downloadgdb-7f68ac277bc7bb2c01b9adf972ca2397413bc555.zip
gdb-7f68ac277bc7bb2c01b9adf972ca2397413bc555.tar.gz
gdb-7f68ac277bc7bb2c01b9adf972ca2397413bc555.tar.bz2
* rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
gdbarch instead of current_gdbarch.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r--gdb/rs6000-tdep.c2
1 files changed, 1 insertions, 1 deletions
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);
}