mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
x86: ptrace_request peekdata/pokedata
This makes ptrace_request handle {PEEK,POKE}{TEXT,DATA} directly. Every arch_ptrace that could call generic_ptrace_peekdata already has a default case calling ptrace_request, so this keeps things simpler for the arch code. Signed-off-by: Roland McGrath <roland@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
5bde4d1817
commit
16c3e389e7
1 changed files with 7 additions and 0 deletions
|
@ -426,6 +426,13 @@ int ptrace_request(struct task_struct *child, long request,
|
||||||
int ret = -EIO;
|
int ret = -EIO;
|
||||||
|
|
||||||
switch (request) {
|
switch (request) {
|
||||||
|
case PTRACE_PEEKTEXT:
|
||||||
|
case PTRACE_PEEKDATA:
|
||||||
|
return generic_ptrace_peekdata(child, addr, data);
|
||||||
|
case PTRACE_POKETEXT:
|
||||||
|
case PTRACE_POKEDATA:
|
||||||
|
return generic_ptrace_pokedata(child, addr, data);
|
||||||
|
|
||||||
#ifdef PTRACE_OLDSETOPTIONS
|
#ifdef PTRACE_OLDSETOPTIONS
|
||||||
case PTRACE_OLDSETOPTIONS:
|
case PTRACE_OLDSETOPTIONS:
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue