summaryrefslogtreecommitdiff
path: root/gdb/arch-utils.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-10-09 18:15:04 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-10-09 18:15:04 +0000
commitf06d71f1d2eabb58f87325a7754b5b2aef4fe67b (patch)
tree73618937b7388a457dd62b1ff492b7f073ac0dc2 /gdb/arch-utils.c
parent1d5e9a844be9e940dcaea0a117ae207a994ed468 (diff)
downloadgdb-f06d71f1d2eabb58f87325a7754b5b2aef4fe67b.tar.gz
2007-10-09 Markus Deuling <deuling@de.ibm.com>
* arch-utils.c (legacy_return_value): Replace current_gdbarch by gdbarch.
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r--gdb/arch-utils.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index b9e9151a1a4..a21e997400b 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -53,7 +53,7 @@ legacy_return_value (struct gdbarch *gdbarch, struct type *valtype,
|| TYPE_CODE (valtype) == TYPE_CODE_UNION
|| TYPE_CODE (valtype) == TYPE_CODE_ARRAY)
&& gdbarch_deprecated_use_struct_convention
- (current_gdbarch, 0, valtype));
+ (gdbarch, 0, valtype));
if (writebuf != NULL)
{
@@ -63,14 +63,13 @@ legacy_return_value (struct gdbarch *gdbarch, struct type *valtype,
structures. Should not be called with such types. */
gdb_assert (TYPE_CODE (valtype) != TYPE_CODE_STRUCT
&& TYPE_CODE (valtype) != TYPE_CODE_UNION);
- gdbarch_store_return_value (current_gdbarch, valtype, regcache, writebuf);
+ gdbarch_store_return_value (gdbarch, valtype, regcache, writebuf);
}
if (readbuf != NULL)
{
gdb_assert (!struct_return);
- gdbarch_extract_return_value (current_gdbarch,
- valtype, regcache, readbuf);
+ gdbarch_extract_return_value (gdbarch, valtype, regcache, readbuf);
}
if (struct_return)