Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 370772
b: refs/heads/master
c: 517b731
h: refs/heads/master
v: v3
  • Loading branch information
Michael Neuling authored and Michael Ellerman committed Apr 18, 2013
1 parent d1ee486 commit 21a4e7b
Show file tree
Hide file tree
Showing 4 changed files with 5 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: a6a058e52a0ce62de84496c9d4b133f2afc61f27
refs/heads/master: 517b7314770c9247ed77bc0591dbeb362603a371
1 change: 1 addition & 0 deletions trunk/Documentation/powerpc/ptrace.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ features will have bits indicating whether there is support for:
#define PPC_DEBUG_FEATURE_INSN_BP_MASK 0x2
#define PPC_DEBUG_FEATURE_DATA_BP_RANGE 0x4
#define PPC_DEBUG_FEATURE_DATA_BP_MASK 0x8
#define PPC_DEBUG_FEATURE_DATA_BP_DAWR 0x10

2. PTRACE_SETHWDEBUG

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/powerpc/include/uapi/asm/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ struct ppc_debug_info {
#define PPC_DEBUG_FEATURE_INSN_BP_MASK 0x0000000000000002
#define PPC_DEBUG_FEATURE_DATA_BP_RANGE 0x0000000000000004
#define PPC_DEBUG_FEATURE_DATA_BP_MASK 0x0000000000000008
#define PPC_DEBUG_FEATURE_DATA_BP_DAWR 0x0000000000000010

#ifndef __ASSEMBLY__

Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/powerpc/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1644,6 +1644,8 @@ long arch_ptrace(struct task_struct *child, long request,
dbginfo.sizeof_condition = 0;
#ifdef CONFIG_HAVE_HW_BREAKPOINT
dbginfo.features = PPC_DEBUG_FEATURE_DATA_BP_RANGE;
if (cpu_has_feature(CPU_FTR_DAWR))
dbginfo.features |= PPC_DEBUG_FEATURE_DATA_BP_DAWR;
#else
dbginfo.features = 0;
#endif /* CONFIG_HAVE_HW_BREAKPOINT */
Expand Down

0 comments on commit 21a4e7b

Please sign in to comment.