2003-09-28 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Sun, 28 Sep 2003 16:12:50 +0000 (16:12 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 28 Sep 2003 16:12:50 +0000 (16:12 +0000)
* 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.

gdb/ChangeLog
gdb/config/pa/tm-hppa.h
gdb/infcall.c
gdb/infcmd.c

index 540f279bd3d706fb6446c7d0dcbfccdd78c8764b..45ada991c3e13e2f92c05cd976cef32df50b66f1 100644 (file)
@@ -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
index 8a34c233d9a3a90d188e3a013a3de0b4b7048b3a..c6504abf3471c35e0d7a1452c756fe36b1dd8724 100644 (file)
@@ -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 *);
index 926eaf324c9c5e7de700a633eaafd63a7cb4692d..4adc4ea4789cac2123263e66370b6018a8356603 100644 (file)
@@ -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);
index 555d7727deaeee78417a39e44ad30bb5c0a3c2b2..4c74894da6eaafb0d7c61631159e11c816ee817f 100644 (file)
@@ -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));
This page took 0.033996 seconds and 4 git commands to generate.