Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113764
b: refs/heads/master
c: d3ab3a6
h: refs/heads/master
v: v3
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Oct 9, 2008
1 parent bb72b70 commit 1d12584
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dabaad5b90dec6909c984d95330f6f41c325f9a8
refs/heads/master: d3ab3a62f57f3aaeed5a7e2ef136937ffd16448a
30 changes: 12 additions & 18 deletions trunk/arch/blackfin/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)

/* when I and D space are separate, this will have to be fixed. */
case PTRACE_POKEDATA:
printk(KERN_NOTICE "ptrace: PTRACE_PEEKDATA\n");
pr_debug("ptrace: PTRACE_PEEKDATA\n");
/* fall through */
case PTRACE_POKETEXT: /* write the word at location addr. */
{
Expand Down Expand Up @@ -351,7 +351,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
{ /* restart after signal. */
long tmp;

pr_debug("ptrace_cont\n");
pr_debug("ptrace: syscall/cont\n");

ret = -EIO;
if (!valid_signal(data))
Expand All @@ -365,7 +365,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
/* make sure the single step bit is not set. */
tmp = get_reg(child, PT_SYSCFG) & ~(TRACE_BITS);
put_reg(child, PT_SYSCFG, tmp);
pr_debug("before wake_up_process\n");
pr_debug("ptrace: before wake_up_process\n");
wake_up_process(child);
ret = 0;
break;
Expand Down Expand Up @@ -394,7 +394,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
{ /* set the trap flag. */
long tmp;

pr_debug("single step\n");
pr_debug("ptrace: single step\n");
ret = -EIO;
if (!valid_signal(data))
break;
Expand All @@ -411,21 +411,16 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
}

case PTRACE_GETREGS:
{

/* Get all gp regs from the child. */
ret = ptrace_getregs(child, datap);
break;
}
/* Get all gp regs from the child. */
ret = ptrace_getregs(child, datap);
break;

case PTRACE_SETREGS:
{
printk(KERN_NOTICE
"ptrace: SETREGS: **** NOT IMPLEMENTED ***\n");
/* Set all gp regs in the child. */
ret = 0;
break;
}
printk(KERN_WARNING "ptrace: SETREGS: **** NOT IMPLEMENTED ***\n");
/* Set all gp regs in the child. */
ret = 0;
break;

default:
ret = ptrace_request(child, request, addr, data);
break;
Expand All @@ -436,7 +431,6 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)

asmlinkage void syscall_trace(void)
{

if (!test_thread_flag(TIF_SYSCALL_TRACE))
return;

Expand Down

0 comments on commit 1d12584

Please sign in to comment.