[patch] multi-arch SAVE_DUMMY_FRAME_TOS()

Andrew Cagney ac131313@cygnus.com
Sun May 14 22:40:00 GMT 2000


FYI,

	Andrew
Mon May 15 15:31:30 2000  Andrew Cagney  <cagney@b1.cygnus.com>

	* valops.c (hand_function_call): Replace #ifdef
 	SAVE_DUMMY_FRAME_TOS with if SAVE_DUMMY_FRAME_TOS_P.

	* gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Add.
	* gdbarch.h, gdbarch.c: Regenerate.

Index: gdbarch.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.sh,v
retrieving revision 1.21
diff -p -r1.21 gdbarch.sh
*** gdbarch.sh	2000/05/11 11:49:21	1.21
--- gdbarch.sh	2000/05/15 05:34:00
*************** f:2:FRAME_NUM_ARGS:int:frame_num_args:st
*** 326,331 ****
--- 326,332 ----
  #
  F:2:STACK_ALIGN:CORE_ADDR:stack_align:CORE_ADDR sp:sp::0:0
  F:2:REG_STRUCT_HAS_ADDR:int:reg_struct_has_addr:int gcc_p, struct type *type:gcc_p, type::0:0
+ F:2:SAVE_DUMMY_FRAME_TOS:void:save_dummy_frame_tos:CORE_ADDR sp:sp::0:0
  EOF
    grep -v '^#'
  }
Index: valops.c
===================================================================
RCS file: /cvs/src/src/gdb/valops.c,v
retrieving revision 1.12
diff -p -r1.12 valops.c
*** valops.c	2000/04/22 06:44:39	1.12
--- valops.c	2000/05/15 05:34:09
*************** You must use a pointer to function type 
*** 1678,1686 ****
       wouldn't happen.  (See store_inferior_registers in sparc-nat.c.)  */
    write_sp (sp);
  
! #ifdef SAVE_DUMMY_FRAME_TOS
!   SAVE_DUMMY_FRAME_TOS (sp);
! #endif
  
    {
      char retbuf[REGISTER_BYTES];
--- 1678,1685 ----
       wouldn't happen.  (See store_inferior_registers in sparc-nat.c.)  */
    write_sp (sp);
  
!   if (SAVE_DUMMY_FRAME_TOS_P ())
!     SAVE_DUMMY_FRAME_TOS (sp);
  
    {
      char retbuf[REGISTER_BYTES];


More information about the Gdb-patches mailing list