From 9ff63c35fb8980e34b12712ec588cc328c03c739 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 28 Sep 2003 16:12:50 +0000 Subject: [PATCH] 2003-09-28 Andrew Cagney * 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 | 7 +++++++ gdb/config/pa/tm-hppa.h | 5 ++++- gdb/infcall.c | 2 +- gdb/infcmd.c | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 540f279bd3d..45ada991c3e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2003-09-28 Andrew Cagney + + * 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 * 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 8a34c233d9a..c6504abf347 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 926eaf324c9..4adc4ea4789 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 555d7727dea..4c74894da6e 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)); -- 2.30.2