aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/config/pa/tm-hppa.h5
-rw-r--r--gdb/infcall.c2
-rw-r--r--gdb/infcmd.c2
4 files changed, 13 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 540f279..45ada99 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2003-09-28 Andrew Cagney <cagney@redhat.com>
+
+ * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
+ Rename VALUE_RETURNED_FROM_STACK.
+ * infcmd.c (print_return_value): Update.
+ * infcall.c (call_function_by_hand): Update.
+
2003-09-28 Mark Kettenis <kettenis@gnu.org>
* i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
diff --git a/gdb/config/pa/tm-hppa.h b/gdb/config/pa/tm-hppa.h
index 8a34c23..c6504ab 100644
--- a/gdb/config/pa/tm-hppa.h
+++ b/gdb/config/pa/tm-hppa.h
@@ -121,7 +121,10 @@ extern int hppa_instruction_nullified (void);
told the callee to put it, rather than have the callee tell us. */
struct value *hppa_value_returned_from_stack (struct type *valtype,
CORE_ADDR addr);
-#define VALUE_RETURNED_FROM_STACK(valtype,addr) \
+/* FIXME: cagney/2003-09-27: This method should now be redundant.
+ Instead, when "struct return convention", the inferior function
+ call code always saves and uses the struct return's stack address. */
+#define DEPRECATED_VALUE_RETURNED_FROM_STACK(valtype,addr) \
hppa_value_returned_from_stack (valtype, addr)
extern void hppa_frame_init_saved_regs (struct frame_info *);
diff --git a/gdb/infcall.c b/gdb/infcall.c
index 926eaf3..4adc4ea 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -1076,7 +1076,7 @@ the function call).", name);
address of the returned structure. Usually this will be
overwritten by the callee. I don't know about other
architectures, so I defined this macro */
-#ifdef VALUE_RETURNED_FROM_STACK
+#ifdef DEPRECATED_VALUE_RETURNED_FROM_STACK
if (struct_return)
{
do_cleanups (retbuf_cleanup);
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 555d772..4c74894 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -1084,7 +1084,7 @@ print_return_value (int structure_return, struct type *value_type)
/* We cannot determine the contents of the structure because
it is on the stack, and we don't know where, since we did not
initiate the call, as opposed to the call_function_by_hand case */
-#ifdef VALUE_RETURNED_FROM_STACK
+#ifdef DEPRECATED_VALUE_RETURNED_FROM_STACK
value = 0;
ui_out_text (uiout, "Value returned has type: ");
ui_out_field_string (uiout, "return-type", TYPE_NAME (value_type));