diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-04-02 09:28:10 +0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-04-10 07:56:35 +0200 |
commit | 1759e58ed2684b7a01cbb96864f23d18884f42ba (patch) | |
tree | e9c876d47c36093c3eb74456cbeb6b2f8cd69dbf /arch/sparc64 | |
parent | [SELINUX] Fix build after ipsec decap state changes. (diff) | |
download | linux-1759e58ed2684b7a01cbb96864f23d18884f42ba.tar.xz linux-1759e58ed2684b7a01cbb96864f23d18884f42ba.zip |
[SPARC64]: Add dummy PTRACE_PEEKUSR for gdb.
GDB uses a PTRACE_PEEKUSR call with offset 0 to see
if a thread is alive, so provide a success return for
this particular special case.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64')
-rw-r--r-- | arch/sparc64/kernel/ptrace.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/ptrace.c b/arch/sparc64/kernel/ptrace.c index eb93e9c52846..c910af5e2538 100644 --- a/arch/sparc64/kernel/ptrace.c +++ b/arch/sparc64/kernel/ptrace.c @@ -244,6 +244,13 @@ asmlinkage void do_ptrace(struct pt_regs *regs) } switch(request) { + case PTRACE_PEEKUSR: + if (addr != 0) + pt_error_return(regs, EIO); + else + pt_succ_return(regs, 0); + goto out_tsk; + case PTRACE_PEEKTEXT: /* read word at location addr. */ case PTRACE_PEEKDATA: { unsigned long tmp64; |