[commit] remove obsolete code in tm-hppa.h

Joel Brobecker brobecker@gnat.com
Tue Apr 22 18:31:00 GMT 2003


Following up a message from Andrew, I am removing some code that was
only used by the hppa-pro target which is now obsolete. This gets
rid of the C++-ism that I shouldn't have introduced.

2003-04-22  J. Brobecker  <brobecker@gnat.com>

        * config/pa/tm-hppa.h: Remove obsolete code, was used by
        the hppa-pro target only.

-- 
Joel
-------------- next part --------------
Index: config/pa/tm-hppa.h
===================================================================
RCS file: /cvs/src/src/gdb/config/pa/tm-hppa.h,v
retrieving revision 1.47
retrieving revision 1.48
diff -c -3 -p -r1.47 -r1.48
*** config/pa/tm-hppa.h	22 Apr 2003 02:44:27 -0000	1.47
--- config/pa/tm-hppa.h	22 Apr 2003 18:27:47 -0000	1.48
*************** extern void hppa_frame_init_saved_regs (
*** 189,196 ****
  
  #define INSTRUCTION_SIZE 4
  
- //OBSOLETE #ifndef PA_LEVEL_0
- 
  /* Non-level zero PA's have space registers (but they don't always have
     floating-point, do they????  */
  
--- 189,194 ----
*************** extern void hppa_frame_init_saved_regs (
*** 273,315 ****
                      0x00151820, 0xe6c00002, 0x08000240, 0x08000240}
  
  #define REG_PARM_STACK_SPACE 16
- 
- //OBSOLETE #else /* defined PA_LEVEL_0 */
- //OBSOLETE 
- //OBSOLETE /* FIXME: brobecker 2002-12-26.  PA_LEVEL_0 is only defined for the
- //OBSOLETE    hppa-pro target, which should be obsoleted soon.  The following
- //OBSOLETE    section will therefore not be included in the multiarch conversion.  */
- //OBSOLETE /* This is the call dummy for a level 0 PA.  Level 0's don't have space
- //OBSOLETE    registers (or floating point?), so we skip all that inter-space call stuff,
- //OBSOLETE    and avoid touching the fp regs.
- //OBSOLETE 
- //OBSOLETE    call_dummy
- //OBSOLETE 
- //OBSOLETE    ldw -36(%sp), %arg0
- //OBSOLETE    ldw -40(%sp), %arg1
- //OBSOLETE    ldw -44(%sp), %arg2
- //OBSOLETE    ldw -48(%sp), %arg3
- //OBSOLETE    ldil 0, %r31                 ; FUNC_LDIL_OFFSET must point here
- //OBSOLETE    ldo 0(%r31), %r31            ; FUNC_LDO_OFFSET must point here
- //OBSOLETE    ble 0(%sr0, %r31)
- //OBSOLETE    copy %r31, %r2
- //OBSOLETE    break 4, 8 
- //OBSOLETE    nop                          ; restore_pc_queue expects these
- //OBSOLETE    bv,n 0(%r22)                 ; instructions to be here...
- //OBSOLETE    nop
- //OBSOLETE  */
- //OBSOLETE 
- //OBSOLETE /* Define offsets into the call dummy for the target function address */
- //OBSOLETE #define FUNC_LDIL_OFFSET (INSTRUCTION_SIZE * 4)
- //OBSOLETE #define FUNC_LDO_OFFSET (INSTRUCTION_SIZE * 5)
- //OBSOLETE 
- //OBSOLETE #define CALL_DUMMY {0x4bda3fb9, 0x4bd93fb1, 0x4bd83fa9, 0x4bd73fa1,\
- //OBSOLETE 		    0x23e00000, 0x37ff0000, 0xe7e00000, 0x081f0242,\
- //OBSOLETE 		    0x00010004, 0x08000240, 0xeac0c002, 0x08000240}
- //OBSOLETE 
- //OBSOLETE #define CALL_DUMMY_LENGTH (INSTRUCTION_SIZE * 12)
- //OBSOLETE 
- //OBSOLETE #endif /* defined PA_LEVEL_0 */
  
  /* If we've reached a trap instruction within the call dummy, then
     we'll consider that to mean that we've reached the call dummy's
--- 271,276 ----


More information about the Gdb-patches mailing list