mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-03 07:21:58 +00:00
* vax-tdep.c (vax_return_value): Implement
RETURN_VALUE_ABI_RETURNS_ADDRESS.
This commit is contained in:
parent
caed1a4580
commit
e548314585
@ -1,3 +1,8 @@
|
||||
2004-05-18 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* vax-tdep.c (vax_return_value): Implement
|
||||
RETURN_VALUE_ABI_RETURNS_ADDRESS.
|
||||
|
||||
2004-05-17 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* vax-tdep.c (vax_return_value): Fix typo.
|
||||
|
@ -212,7 +212,21 @@ vax_return_value (struct gdbarch *gdbarch, struct type *type,
|
||||
if (TYPE_CODE (type) == TYPE_CODE_STRUCT
|
||||
|| TYPE_CODE (type) == TYPE_CODE_UNION
|
||||
|| TYPE_CODE (type) == TYPE_CODE_ARRAY)
|
||||
return RETURN_VALUE_STRUCT_CONVENTION;
|
||||
{
|
||||
/* The default on VAX is to return structures in static memory.
|
||||
Consequently a function must return the address where we can
|
||||
find the return value. */
|
||||
|
||||
if (readbuf)
|
||||
{
|
||||
ULONGEST addr;
|
||||
|
||||
regcache_raw_read_unsigned (regcache, VAX_R0_REGNUM, &addr);
|
||||
read_memory (addr, readbuf, len);
|
||||
}
|
||||
|
||||
return RETURN_VALUE_ABI_RETURNS_ADDRESS;
|
||||
}
|
||||
|
||||
if (readbuf)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user