| Juan Cespedes | 5bfb061 | 2002-03-31 20:01:28 +0200 | [diff] [blame] | 1 | #define BREAKPOINT_VALUE { 0x7f, 0xe0, 0x00, 0x08 } |
| Juan Cespedes | f1bfe20 | 2002-03-27 00:22:23 +0100 | [diff] [blame] | 2 | #define BREAKPOINT_LENGTH 4 |
| 3 | #define DECR_PC_AFTER_BREAK 0 |
| Juan Cespedes | d914a20 | 2004-11-10 00:15:33 +0100 | [diff] [blame] | 4 | |
| 5 | #define LT_ELFCLASS ELFCLASS32 |
| 6 | #define LT_ELF_MACHINE EM_PPC |
| Petr Machata | b3f8fef | 2006-11-30 14:45:07 +0100 | [diff] [blame^] | 7 | |
| Paul Gilliam | 76c61f1 | 2006-06-14 06:55:21 +0200 | [diff] [blame] | 8 | #ifdef __powerpc64__ // Says 'ltrace' is 64 bits, says nothing about target. |
| Ian Wienand | 9a2ad35 | 2006-02-20 22:44:45 +0100 | [diff] [blame] | 9 | #define LT_ELFCLASS2 ELFCLASS64 |
| 10 | #define LT_ELF_MACHINE2 EM_PPC64 |
| Petr Machata | b3f8fef | 2006-11-30 14:45:07 +0100 | [diff] [blame^] | 11 | #define ARCH_SUPPORTS_OPD |
| Petr Machata | 7003fee | 2006-07-18 13:06:26 +0200 | [diff] [blame] | 12 | #endif |
| Ian Wienand | 9a2ad35 | 2006-02-20 22:44:45 +0100 | [diff] [blame] | 13 | |
| Paul Gilliam | be32077 | 2006-04-24 22:06:23 +0200 | [diff] [blame] | 14 | #define PLT_REINITALISATION_BP "_start" |
| Ian Wienand | 9a2ad35 | 2006-02-20 22:44:45 +0100 | [diff] [blame] | 15 | |
| Paul Gilliam | 76c61f1 | 2006-06-14 06:55:21 +0200 | [diff] [blame] | 16 | #define PPC_NOP { 0x60, 0x00, 0x00, 0x00 } |
| 17 | #define PPC_NOP_LENGTH 4 |
| 18 | |
| 19 | #if (PPC_NOP_LENGTH != BREAKPOINT_LENGTH) |
| 20 | #error "Length of the breakpoint value not equal to the length of a nop instruction" |
| 21 | #endif |