arch.h revision 76c61f15d7989bf7adffed2e46a44c34a80bd927
1#define BREAKPOINT_VALUE { 0x7f, 0xe0, 0x00, 0x08 } 2#define BREAKPOINT_LENGTH 4 3#define DECR_PC_AFTER_BREAK 0 4 5#define LT_ELFCLASS ELFCLASS32 6#define LT_ELF_MACHINE EM_PPC 7#ifdef __powerpc64__ // Says 'ltrace' is 64 bits, says nothing about target. 8#define LT_ELFCLASS2 ELFCLASS64 9#define LT_ELF_MACHINE2 EM_PPC64 10 11#define PLT_REINITALISATION_BP "_start" 12 13#define PPC_NOP { 0x60, 0x00, 0x00, 0x00 } 14#define PPC_NOP_LENGTH 4 15 16#if (PPC_NOP_LENGTH != BREAKPOINT_LENGTH) 17#error "Length of the breakpoint value not equal to the length of a nop instruction" 18#endif 19 20 21#endif 22