[commit] change the hppa_push_dummy_frame() profile...

Joel Brobecker brobecker@gnat.com
Tue Mar 18 19:01:00 GMT 2003


... to conform to the push_dummy_frame gdbarch method.
Checked in as a mechanical change, per the multiarch pass.
tested by recompiling GDB on hpux 11.00.

2003-03-18  J. Brobecker  <brobecker@gnat.com>

        Continuing work to convert the hppa targets to multiarch partial.
        * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
        parameter. Reformat comment.
        * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
        (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
        to match new profile.

-- 
Joel
-------------- next part --------------
Index: hppa-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/hppa-tdep.c,v
retrieving revision 1.57
diff -c -3 -p -r1.57 hppa-tdep.c
*** hppa-tdep.c	18 Mar 2003 18:26:40 -0000	1.57
--- hppa-tdep.c	18 Mar 2003 18:48:02 -0000
*************** CORE_ADDR hppa_frame_saved_pc (struct fr
*** 165,171 ****
  CORE_ADDR hppa_frame_args_address (struct frame_info *fi);
  CORE_ADDR hppa_frame_locals_address (struct frame_info *fi);
  int hppa_frame_num_args (struct frame_info *frame);
! void hppa_push_dummy_frame (struct inferior_status *inf_status);
  void hppa_pop_frame (void);
  CORE_ADDR hppa_fix_call_dummy (char *dummy, CORE_ADDR pc, CORE_ADDR fun,
                                 int nargs, struct value **args,
--- 165,171 ----
  CORE_ADDR hppa_frame_args_address (struct frame_info *fi);
  CORE_ADDR hppa_frame_locals_address (struct frame_info *fi);
  int hppa_frame_num_args (struct frame_info *frame);
! void hppa_push_dummy_frame (void);
  void hppa_pop_frame (void);
  CORE_ADDR hppa_fix_call_dummy (char *dummy, CORE_ADDR pc, CORE_ADDR fun,
                                 int nargs, struct value **args,
*************** hppa_frame_chain_valid (CORE_ADDR chain,
*** 1426,1439 ****
    return 0;
  }
  
! /*
!    These functions deal with saving and restoring register state
!    around a function call in the inferior. They keep the stack
!    double-word aligned; eventually, on an hp700, the stack will have
!    to be aligned to a 64-byte boundary. */
  
  void
! hppa_push_dummy_frame (struct inferior_status *inf_status)
  {
    CORE_ADDR sp, pc, pcspace;
    register int regnum;
--- 1426,1438 ----
    return 0;
  }
  
! /* These functions deal with saving and restoring register state
!    around a function call in the inferior.  They keep the stack
!    double-word aligned;  eventually, on an hp700, the stack will have
!    to be aligned to a 64-byte boundary.  */
  
  void
! hppa_push_dummy_frame (void)
  {
    CORE_ADDR sp, pc, pcspace;
    register int regnum;
Index: config/pa/tm-hppa.h
===================================================================
RCS file: /cvs/src/src/gdb/config/pa/tm-hppa.h,v
retrieving revision 1.36
diff -c -3 -p -r1.36 tm-hppa.h
*** config/pa/tm-hppa.h	13 Mar 2003 21:45:42 -0000	1.36
--- config/pa/tm-hppa.h	18 Mar 2003 18:48:03 -0000
*************** extern void hppa_frame_find_saved_regs (
*** 452,464 ****
  
  /* Push an empty stack frame, to record the current PC, etc. */
  
! /* FIXME: brobecker 2002-12-26.  This macro definition takes advantage
!    of the fact that DEPRECATED_PUSH_DUMMY_FRAME is called within a
!    function where a variable inf_status of type struct inferior_status
!    * is defined.  Ugh!  Until this is fixed, we will not be able to
!    move to multiarch partial.  */
! #define DEPRECATED_PUSH_DUMMY_FRAME hppa_push_dummy_frame (inf_status)
! extern void hppa_push_dummy_frame (struct inferior_status *);
  
  /* Discard from the stack the innermost frame, 
     restoring all saved registers.  */
--- 452,459 ----
  
  /* Push an empty stack frame, to record the current PC, etc. */
  
! #define DEPRECATED_PUSH_DUMMY_FRAME hppa_push_dummy_frame ()
! extern void hppa_push_dummy_frame (void);
  
  /* Discard from the stack the innermost frame, 
     restoring all saved registers.  */


More information about the Gdb-patches mailing list