Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182597
b: refs/heads/master
c: c6a0dd7
h: refs/heads/master
i:
  182595: 3099918
v: v3
  • Loading branch information
Suresh Siddha authored and H. Peter Anvin committed Feb 23, 2010
1 parent cb1792b commit 86e94da
Show file tree
Hide file tree
Showing 3 changed files with 7 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: 5e6dbc260704ce4d22fc9664f517f0bb6748feaa
refs/heads/master: c6a0dd7ec6fb2d4927979ed4dc562fc5c122d826
5 changes: 5 additions & 0 deletions trunk/include/linux/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
/*
* Generic ptrace interface that exports the architecture specific regsets
* using the corresponding NT_* types (which are also used in the core dump).
* Please note that the NT_PRSTATUS note type in a core dump contains a full
* 'struct elf_prstatus'. But the user_regset for NT_PRSTATUS contains just the
* elf_gregset_t that is the pr_reg field of 'struct elf_prstatus'. For all the
* other user_regset flavors, the user_regset layout and the ELF core dump note
* payload are exactly the same layout.
*
* This interface usage is as follows:
* struct iovec iov = { buf, len};
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ static int ptrace_regset(struct task_struct *task, int req, unsigned int type,
int regset_no;

if (!regset || (kiov->iov_len % regset->size) != 0)
return -EIO;
return -EINVAL;

regset_no = regset - view->regsets;
kiov->iov_len = min(kiov->iov_len,
Expand Down

0 comments on commit 86e94da

Please sign in to comment.