diff options
author | David Daney <ddaney@avtrex.com> | 2008-09-23 03:11:26 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-10-11 11:18:57 -0400 |
commit | 0926bf953ee79b8f139741b442e5a18520f81705 (patch) | |
tree | 5e2cbdb2060ec9324866e6a072d1d7666849445c /arch/mips/kernel/ptrace32.c | |
parent | 2c708cbaa6031b73be6b992adb3ec1811f91cdb1 (diff) |
MIPS: Ptrace support for HARDWARE_WATCHPOINTS
This is the final part of the watch register patch. Here we hook up
ptrace so that the user space debugger (gdb), can set and read the
registers.
Signed-off-by: David Daney <ddaney@avtrex.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/ptrace32.c')
-rw-r--r-- | arch/mips/kernel/ptrace32.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/mips/kernel/ptrace32.c b/arch/mips/kernel/ptrace32.c index cac56a8c8679..e45105e3ef00 100644 --- a/arch/mips/kernel/ptrace32.c +++ b/arch/mips/kernel/ptrace32.c | |||
@@ -387,6 +387,16 @@ long compat_arch_ptrace(struct task_struct *child, compat_long_t request, | |||
387 | (unsigned long __user *) (unsigned long) data); | 387 | (unsigned long __user *) (unsigned long) data); |
388 | break; | 388 | break; |
389 | 389 | ||
390 | case PTRACE_GET_WATCH_REGS: | ||
391 | ret = ptrace_get_watch_regs(child, | ||
392 | (struct pt_watch_regs __user *) (unsigned long) addr); | ||
393 | break; | ||
394 | |||
395 | case PTRACE_SET_WATCH_REGS: | ||
396 | ret = ptrace_set_watch_regs(child, | ||
397 | (struct pt_watch_regs __user *) (unsigned long) addr); | ||
398 | break; | ||
399 | |||
390 | default: | 400 | default: |
391 | ret = ptrace_request(child, request, addr, data); | 401 | ret = ptrace_request(child, request, addr, data); |
392 | break; | 402 | break; |