Use value_at_non_lval in get_call_return_value
authorTom Tromey <tromey@adacore.com>
Wed, 7 Sep 2022 20:01:13 +0000 (14:01 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 3 Jan 2023 15:45:01 +0000 (08:45 -0700)
commit3360bae61faee3b57e4defa33cd7387be5c0dea8
tree93b121dd0d88dcda698c2fb65f8ffd6704c62165
parent911627e7b1bc682a18ac5a976eb33cd87d73578f
Use value_at_non_lval in get_call_return_value

get_call_return_value can handle RETURN_VALUE_STRUCT_CONVENTION,
because the call is completely managed by gdb.  However, it does not
handle variably-sized types correctly.  The simplest way to fix this
is to use value_at_non_lval, which does type resolution.
gdb/infcall.c