This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Deprecate VALUE_RETURNED_FROM_STACK


This macro is now redundant. Instead, per an earlier patch, GDB always uses the previously saved struct return address.

committed,
Andrew
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.

Index: infcall.c
===================================================================
RCS file: /cvs/src/src/gdb/infcall.c,v
retrieving revision 1.29
diff -u -r1.29 infcall.c
--- infcall.c	14 Sep 2003 16:32:13 -0000	1.29
+++ infcall.c	28 Sep 2003 16:10:52 -0000
@@ -1076,7 +1076,7 @@
      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: infcmd.c
===================================================================
RCS file: /cvs/src/src/gdb/infcmd.c,v
retrieving revision 1.91
diff -u -r1.91 infcmd.c
--- infcmd.c	21 Sep 2003 01:26:44 -0000	1.91
+++ infcmd.c	28 Sep 2003 16:10:53 -0000
@@ -1084,7 +1084,7 @@
       /* 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));
Index: config/pa/tm-hppa.h
===================================================================
RCS file: /cvs/src/src/gdb/config/pa/tm-hppa.h,v
retrieving revision 1.58
diff -u -r1.58 tm-hppa.h
--- config/pa/tm-hppa.h	27 Sep 2003 15:51:03 -0000	1.58
+++ config/pa/tm-hppa.h	28 Sep 2003 16:10:56 -0000
@@ -121,7 +121,10 @@
    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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]