aboutsummaryrefslogtreecommitdiff
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
commit64f395bf19e16d115a17e91e62070032ba0553c5 (patch)
tree94c60160a0a874a55126701d2dab314e4c8b0b34 /gdb/values.c
parentb7ca9213c770d9252c4059a9f302da229371b86d (diff)
downloadgdb-64f395bf19e16d115a17e91e62070032ba0553c5.zip
gdb-64f395bf19e16d115a17e91e62070032ba0553c5.tar.gz
gdb-64f395bf19e16d115a17e91e62070032ba0553c5.tar.bz2
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 52f70a1..3d32383 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)