Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95340
b: refs/heads/master
c: 613e1de
h: refs/heads/master
v: v3
  • Loading branch information
Martin Schwidefsky committed Apr 30, 2008
1 parent 9bb3274 commit 71526f7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 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: 17f345808563d2f425b2b15d60c4a5b00112e9eb
refs/heads/master: 613e1def6b52c399a8b72a5e11bc2e57d2546fb8
20 changes: 0 additions & 20 deletions trunk/arch/s390/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -607,8 +607,6 @@ do_ptrace_emu31(struct task_struct *child, long request, long addr, long data)
}
#endif

#define PT32_IEEE_IP 0x13c

static int
do_ptrace(struct task_struct *child, long request, long addr, long data)
{
Expand All @@ -617,24 +615,6 @@ do_ptrace(struct task_struct *child, long request, long addr, long data)
if (request == PTRACE_ATTACH)
return ptrace_attach(child);

/*
* Special cases to get/store the ieee instructions pointer.
*/
if (child == current) {
if (request == PTRACE_PEEKUSR && addr == PT_IEEE_IP)
return peek_user(child, addr, data);
if (request == PTRACE_POKEUSR && addr == PT_IEEE_IP)
return poke_user(child, addr, data);
#ifdef CONFIG_COMPAT
if (request == PTRACE_PEEKUSR &&
addr == PT32_IEEE_IP && test_thread_flag(TIF_31BIT))
return peek_user_emu31(child, addr, data);
if (request == PTRACE_POKEUSR &&
addr == PT32_IEEE_IP && test_thread_flag(TIF_31BIT))
return poke_user_emu31(child, addr, data);
#endif
}

ret = ptrace_check_attach(child, request == PTRACE_KILL);
if (ret < 0)
return ret;
Expand Down

0 comments on commit 71526f7

Please sign in to comment.