mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-11 11:23:35 +08:00
2007-10-09 Markus Deuling <deuling@de.ibm.com>
* arch-utils.c (legacy_return_value): Replace current_gdbarch by gdbarch.
This commit is contained in:
parent
b1bd0044b5
commit
d4f91178be
@ -1,3 +1,8 @@
|
|||||||
|
2007-10-09 Markus Deuling <deuling@de.ibm.com>
|
||||||
|
|
||||||
|
* arch-utils.c (legacy_return_value): Replace current_gdbarch by
|
||||||
|
gdbarch.
|
||||||
|
|
||||||
2007-10-09 Markus Deuling <deuling@de.ibm.com>
|
2007-10-09 Markus Deuling <deuling@de.ibm.com>
|
||||||
|
|
||||||
* frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
|
* frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
|
||||||
|
@ -53,7 +53,7 @@ legacy_return_value (struct gdbarch *gdbarch, struct type *valtype,
|
|||||||
|| TYPE_CODE (valtype) == TYPE_CODE_UNION
|
|| TYPE_CODE (valtype) == TYPE_CODE_UNION
|
||||||
|| TYPE_CODE (valtype) == TYPE_CODE_ARRAY)
|
|| TYPE_CODE (valtype) == TYPE_CODE_ARRAY)
|
||||||
&& gdbarch_deprecated_use_struct_convention
|
&& gdbarch_deprecated_use_struct_convention
|
||||||
(current_gdbarch, 0, valtype));
|
(gdbarch, 0, valtype));
|
||||||
|
|
||||||
if (writebuf != NULL)
|
if (writebuf != NULL)
|
||||||
{
|
{
|
||||||
@ -63,14 +63,13 @@ legacy_return_value (struct gdbarch *gdbarch, struct type *valtype,
|
|||||||
structures. Should not be called with such types. */
|
structures. Should not be called with such types. */
|
||||||
gdb_assert (TYPE_CODE (valtype) != TYPE_CODE_STRUCT
|
gdb_assert (TYPE_CODE (valtype) != TYPE_CODE_STRUCT
|
||||||
&& TYPE_CODE (valtype) != TYPE_CODE_UNION);
|
&& 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)
|
if (readbuf != NULL)
|
||||||
{
|
{
|
||||||
gdb_assert (!struct_return);
|
gdb_assert (!struct_return);
|
||||||
gdbarch_extract_return_value (current_gdbarch,
|
gdbarch_extract_return_value (gdbarch, valtype, regcache, readbuf);
|
||||||
valtype, regcache, readbuf);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (struct_return)
|
if (struct_return)
|
||||||
|
Loading…
Reference in New Issue
Block a user