diff options
-rw-r--r-- | gdb/infcall.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c index acaaf0c..e09904f 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -476,12 +476,7 @@ get_call_return_value (struct call_return_meta_info *ri) push_thread_stack_temporary (thr, retval); } else - { - retval = allocate_value (ri->value_type); - read_value_memory (retval, 0, 1, ri->struct_addr, - value_contents_raw (retval).data (), - ri->value_type->length ()); - } + retval = value_at_non_lval (ri->value_type, ri->struct_addr); } else { |