Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1831
b: refs/heads/master
c: c5c3a6d
h: refs/heads/master
i:
  1829: 27e5a1b
  1827: 054bdc2
  1823: a6d4211
v: v3
  • Loading branch information
Bodo Stroesser authored and Linus Torvalds committed Jun 5, 2005
1 parent 9c358bd commit 82f12ef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 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: 778959db97c7ed8eed4025916916b17a4629ce3d
refs/heads/master: c5c3a6d8fe923b8780b9cd10e72344b8cf8518b5
7 changes: 7 additions & 0 deletions trunk/arch/s390/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,13 @@ syscall_trace(struct pt_regs *regs, int entryexit)
ptrace_notify(SIGTRAP | ((current->ptrace & PT_TRACESYSGOOD)
? 0x80 : 0));

/*
* If the debuffer has set an invalid system call number,
* we prepare to skip the system call restart handling.
*/
if (!entryexit && regs->gprs[2] >= NR_syscalls)
regs->trap = -1;

/*
* this isn't the same as continuing with a signal, but it will do
* for normal use. strace only continues with a signal if the
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-s390/user.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#define _S390_USER_H

#include <asm/page.h>
#include <linux/ptrace.h>
#include <asm/ptrace.h>
/* Core file format: The core file is written in such a way that gdb
can understand it and provide useful information to the user (under
linux we use the 'trad-core' bfd). There are quite a number of
Expand Down

0 comments on commit 82f12ef

Please sign in to comment.