From: Ulrich Weigand Date: Tue, 9 Oct 2007 18:15:04 +0000 (+0000) Subject: 2007-10-09 Markus Deuling X-Git-Tag: sid-snapshot-20071101~351 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4f91178beb5f73b71c52ba7e563c188f65fa071;p=external%2Fbinutils.git 2007-10-09 Markus Deuling * arch-utils.c (legacy_return_value): Replace current_gdbarch by gdbarch. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2b3359a..e393480 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2007-10-09 Markus Deuling + * arch-utils.c (legacy_return_value): Replace current_gdbarch by + gdbarch. + +2007-10-09 Markus Deuling + * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current architecture by frame. (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1) diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index b9e9151..a21e997 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)