diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2007-04-01 18:24:59 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2007-04-01 18:24:59 +0000 |
commit | 7f68ac277bc7bb2c01b9adf972ca2397413bc555 (patch) | |
tree | 13a36e5250c51111fbc1bdca316d53be0c92ae27 | |
parent | e55dccf02d210cedb1d3fbf8a490bfc1b009d32f (diff) | |
download | gdb-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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/rs6000-tdep.c | 2 |
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); } |