Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8560
b: refs/heads/master
c: a94d308
h: refs/heads/master
v: v3
  • Loading branch information
Anton Blanchard authored and Paul Mackerras committed Sep 12, 2005
1 parent 4dc1b6d commit 3babfab
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: df09ce4a15bac7b05356b2f00fbb600c5890b1f3
refs/heads/master: a94d308513bdb2b926b45c11d7ce7fac6d6ca865
8 changes: 8 additions & 0 deletions trunk/include/asm-powerpc/siginfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,12 @@

#include <asm-generic/siginfo.h>

/*
* SIGTRAP si_codes
*/
#define TRAP_BRANCH (__SI_FAULT|3) /* process taken branch trap */
#define TRAP_HWBKPT (__SI_FAULT|4) /* hardware breakpoint or watchpoint */
#undef NSIGTRAP
#define NSIGTRAP 4

#endif /* _ASM_POWERPC_SIGINFO_H */
7 changes: 7 additions & 0 deletions trunk/include/asm-ppc/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,11 @@ do { \
#define PTRACE_GETEVRREGS 20
#define PTRACE_SETEVRREGS 21

/*
* Get or set a debug register. The first 16 are DABR registers and the
* second 16 are IABR registers.
*/
#define PTRACE_GET_DEBUGREG 25
#define PTRACE_SET_DEBUGREG 26

#endif
7 changes: 7 additions & 0 deletions trunk/include/asm-ppc64/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,13 @@ extern unsigned long profile_pc(struct pt_regs *regs);
#define PTRACE_SETEVRREGS 21
#endif

/*
* Get or set a debug register. The first 16 are DABR registers and the
* second 16 are IABR registers.
*/
#define PTRACE_GET_DEBUGREG 25
#define PTRACE_SET_DEBUGREG 26

/* Additional PTRACE requests implemented on PowerPC. */
#define PPC_PTRACE_GETREGS 0x99 /* Get GPRs 0 - 31 */
#define PPC_PTRACE_SETREGS 0x98 /* Set GPRs 0 - 31 */
Expand Down

0 comments on commit 3babfab

Please sign in to comment.