* config/pa/tm-hppa.h: Delete some unused macros. Move some
[deliverable/binutils-gdb.git] / gdb / config / pa / tm-hppa.h
index 38e7e4d18c58ac99903de9c75161e3db25f74896..afc87fa48a5b5e21f990b813ca9d5557deaf83b4 100644 (file)
@@ -45,27 +45,10 @@ struct value;
 struct type;
 struct inferior_status;
 
-/* By default assume we don't have to worry about software floating point.  */
-#ifndef SOFT_FLOAT
-#define SOFT_FLOAT 0
-#endif
-
-/* Get at various relevent fields of an instruction word. */
-
-#define MASK_5 0x1f
-#define MASK_11 0x7ff
-#define MASK_14 0x3fff
-#define MASK_21 0x1fffff
-
-/* This macro gets bit fields using HP's numbering (MSB = 0) */
-#ifndef GET_FIELD
-#define GET_FIELD(X, FROM, TO) \
-  ((X) >> (31 - (TO)) & ((1 << ((TO) - (FROM) + 1)) - 1))
-#endif
-
 /* Sequence of bytes for breakpoint instruction.  */
 
-#define BREAKPOINT {0x00, 0x01, 0x00, 0x04}
+const unsigned char *hppa_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr);
+#define BREAKPOINT_FROM_PC(PCPTR,LENPTR) hppa_breakpoint_from_pc ((PCPTR), (LENPTR))
 #define BREAKPOINT32 0x10004
 
 extern int hppa_pc_requires_run_before_use (CORE_ADDR pc);
@@ -125,27 +108,6 @@ extern int hppa_pc_requires_run_before_use (CORE_ADDR pc);
 #define ARG2_REGNUM 24         /* The third argument of a callee. */
 #define ARG3_REGNUM 23         /* The fourth argument of a callee. */
 
-/*
- * Processor Status Word Masks
- */
-
-#define PSW_T   0x01000000     /* Taken Branch Trap Enable */
-#define PSW_H   0x00800000     /* Higher-Privilege Transfer Trap Enable */
-#define PSW_L   0x00400000     /* Lower-Privilege Transfer Trap Enable */
-#define PSW_N   0x00200000     /* PC Queue Front Instruction Nullified */
-#define PSW_X   0x00100000     /* Data Memory Break Disable */
-#define PSW_B   0x00080000     /* Taken Branch in Previous Cycle */
-#define PSW_C   0x00040000     /* Code Address Translation Enable */
-#define PSW_V   0x00020000     /* Divide Step Correction */
-#define PSW_M   0x00010000     /* High-Priority Machine Check Disable */
-#define PSW_CB  0x0000ff00     /* Carry/Borrow Bits */
-#define PSW_R   0x00000010     /* Recovery Counter Enable */
-#define PSW_Q   0x00000008     /* Interruption State Collection Enable */
-#define PSW_P   0x00000004     /* Protection ID Validation Enable */
-#define PSW_D   0x00000002     /* Data Address Translation Enable */
-#define PSW_I   0x00000001     /* External, Power Failure, Low-Priority */
-                               /* Machine Check Interruption Enable */
-
 /* When fetching register values from an inferior or a core file,
    clean them up using this macro.  BUF is a char pointer to
    the raw value of the register in the registers[] array.  */
@@ -189,11 +151,6 @@ extern void hppa_frame_init_saved_regs (struct frame_info *);
 
 #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????  */
-
 /* This sequence of words is the instructions
 
    ; Call stack frame has already been built by gdb. Since we could be calling 
@@ -256,14 +213,6 @@ extern void hppa_frame_init_saved_regs (struct frame_info *);
    avoid the kernel bug.  The second NOP is needed to keep the call
    dummy 8 byte aligned.  */
 
-/* Define offsets into the call dummy for the target function address */
-#define FUNC_LDIL_OFFSET (INSTRUCTION_SIZE * 9)
-#define FUNC_LDO_OFFSET (INSTRUCTION_SIZE * 10)
-
-/* Define offsets into the call dummy for the _sr4export address */
-#define SR4EXPORT_LDIL_OFFSET (INSTRUCTION_SIZE * 12)
-#define SR4EXPORT_LDO_OFFSET (INSTRUCTION_SIZE * 13)
-
 #define CALL_DUMMY {0x4BDA3FB9, 0x4BD93FB1, 0x4BD83FA9, 0x4BD73FA1,\
                     0x37C13FB9, 0x24201004, 0x2C391005, 0x24311006,\
                     0x2C291007, 0x22C00000, 0x36D60000, 0x02C010A4,\
@@ -274,43 +223,6 @@ extern void hppa_frame_init_saved_regs (struct frame_info *);
 
 #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
    end after its successful completion. */
@@ -318,20 +230,20 @@ extern void hppa_frame_init_saved_regs (struct frame_info *);
   (DEPRECATED_PC_IN_CALL_DUMMY((pc), (sp), (frame_address)) && \
    (read_memory_integer((pc), 4) == BREAKPOINT32))
 
-/*
- * Insert the specified number of args and function address
- * into a call sequence of the above form stored at DUMMYNAME.
- *
- * On the hppa we need to call the stack dummy through $$dyncall.
- * Therefore our version of FIX_CALL_DUMMY takes an extra argument,
- * real_pc, which is the location where gdb should start up the
- * inferior to do the function call.
- */
+/* Insert the specified number of args and function address into a
+   call sequence of the above form stored at DUMMYNAME.
+
+   On the hppa we need to call the stack dummy through $$dyncall.
+   Therefore our version of DEPRECATED_FIX_CALL_DUMMY takes an extra
+   argument, real_pc, which is the location where gdb should start up
+   the inferior to do the function call.  */
 
 /* FIXME: brobecker 2002-12-26.  This macro is going to cause us some
-   problems before we can go to multiarch partial as it has been diverted
-   on HPUX to return the value of the PC!  */
-#define FIX_CALL_DUMMY hppa_fix_call_dummy
+   problems before we can go to multiarch partial as it has been
+   diverted on HPUX to return the value of the PC!  */
+/* NOTE: cagney/2003-05-03: This has been replaced by push_dummy_code.
+   Hopefully that has all the parameters HP/UX needs.  */
+#define DEPRECATED_FIX_CALL_DUMMY hppa_fix_call_dummy
 extern CORE_ADDR hppa_fix_call_dummy (char *, CORE_ADDR, CORE_ADDR, int,
                                      struct value **, struct type *, int);
 
@@ -395,25 +307,6 @@ struct unwind_table_entry
    "converts" them into normal unwind entries using some of the reserved
    fields to store the stub type.  */
 
-struct stub_unwind_entry
-  {
-    /* The offset within the executable for the associated stub.  */
-    unsigned stub_offset;
-
-    /* The type of stub this unwind entry describes.  */
-    char type;
-
-    /* Unknown.  Not needed by GDB at this time.  */
-    char prs_info;
-
-    /* Length (in instructions) of the associated stub.  */
-    short stub_length;
-  };
-
-/* Sizes (in bytes) of the native unwind entries.  */
-#define UNWIND_ENTRY_SIZE 16
-#define STUB_UNWIND_ENTRY_SIZE 8
-
 /* The gaps represent linker stubs used in MPE and space for future
    expansion.  */
 enum unwind_stub_types
This page took 0.025484 seconds and 4 git commands to generate.