summaryrefslogtreecommitdiff
path: root/gdb/values.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-10-01 18:48:12 +0000
committerAndrew Cagney <cagney@redhat.com>2003-10-01 18:48:12 +0000
commit749a09550fe4fcd3724a320305a7ab8ca48e4f98 (patch)
treee53922e519185b2ec1afbecf817a566dfaa47eb9 /gdb/values.c
parent7d9c919f9609c260e953ae8e301dc549ba791cbe (diff)
downloadgdb-749a09550fe4fcd3724a320305a7ab8ca48e4f98.tar.gz
2003-10-01 Andrew Cagney <cagney@redhat.com>
* infcall.c (call_function_by_hand): When STRUCT_RETURN, always use STRUCT_ADDR. When not using "struct return convention", pass "0" to "value_being_returned". Add FIXMEs. * infcmd.c (print_return_value): Pass an explicit 0/1 to value_being_returned. Add comments. * values.c (value_being_returned): Add fixme. * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME. (hppa_value_returned_from_stack): Add FIXME.
Diffstat (limited to 'gdb/values.c')
-rw-r--r--gdb/values.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/values.c b/gdb/values.c
index 52f70a1cb02..3d3238324c7 100644
--- a/gdb/values.c
+++ b/gdb/values.c
@@ -1216,6 +1216,12 @@ value_from_double (struct type *type, DOUBLEST num)
0 when it is using the value returning conventions (this often
means returning pointer to where structure is vs. returning value). */
+/* FIXME: cagney/2003-09-27: Should move the "struct return
+ convention" code to the only call site in print_return_value that
+ needs it. This function can then be renamed to
+ "register_value_being_returned" and with the "struct_return"
+ parameter dropped. */
+
struct value *
value_being_returned (struct type *valtype, struct regcache *retbuf,
int struct_return)