diff options
Diffstat (limited to 'arch/microblaze/kernel/ptrace.c')
-rw-r--r-- | arch/microblaze/kernel/ptrace.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/arch/microblaze/kernel/ptrace.c b/arch/microblaze/kernel/ptrace.c index 4b3ac32754de..8c21d8b3cb0c 100644 --- a/arch/microblaze/kernel/ptrace.c +++ b/arch/microblaze/kernel/ptrace.c | |||
@@ -78,26 +78,6 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
78 | unsigned long copied; | 78 | unsigned long copied; |
79 | 79 | ||
80 | switch (request) { | 80 | switch (request) { |
81 | case PTRACE_PEEKTEXT: /* read word at location addr. */ | ||
82 | case PTRACE_PEEKDATA: | ||
83 | pr_debug("PEEKTEXT/PEEKDATA at %08lX\n", addr); | ||
84 | copied = access_process_vm(child, addr, &val, sizeof(val), 0); | ||
85 | rval = -EIO; | ||
86 | if (copied != sizeof(val)) | ||
87 | break; | ||
88 | rval = put_user(val, (unsigned long *)data); | ||
89 | break; | ||
90 | |||
91 | case PTRACE_POKETEXT: /* write the word at location addr. */ | ||
92 | case PTRACE_POKEDATA: | ||
93 | pr_debug("POKETEXT/POKEDATA to %08lX\n", addr); | ||
94 | rval = 0; | ||
95 | if (access_process_vm(child, addr, &data, sizeof(data), 1) | ||
96 | == sizeof(data)) | ||
97 | break; | ||
98 | rval = -EIO; | ||
99 | break; | ||
100 | |||
101 | /* Read/write the word at location ADDR in the registers. */ | 81 | /* Read/write the word at location ADDR in the registers. */ |
102 | case PTRACE_PEEKUSR: | 82 | case PTRACE_PEEKUSR: |
103 | case PTRACE_POKEUSR: | 83 | case PTRACE_POKEUSR: |
@@ -167,13 +147,8 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
167 | wake_up_process(child); | 147 | wake_up_process(child); |
168 | break; | 148 | break; |
169 | 149 | ||
170 | case PTRACE_DETACH: /* detach a process that was attached. */ | ||
171 | pr_debug("PTRACE_DETACH\n"); | ||
172 | rval = ptrace_detach(child, data); | ||
173 | break; | ||
174 | default: | 150 | default: |
175 | /* rval = ptrace_request(child, request, addr, data); noMMU */ | 151 | rval = ptrace_request(child, request, addr, data); |
176 | rval = -EIO; | ||
177 | } | 152 | } |
178 | return rval; | 153 | return rval; |
179 | } | 154 | } |