Commit ba0d4740 authored by Peter Griffin's avatar Peter Griffin Committed by Paul Mundt

sh: Add ptrace support for NOMMU debugging

Signed-off-by: default avatarPeter Griffin <pgriffin@mpc-data.co.uk>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent e73173db
...@@ -334,6 +334,14 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) ...@@ -334,6 +334,14 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
[(addr - (long)&dummy->fpu) >> 2]; [(addr - (long)&dummy->fpu) >> 2];
} else if (addr == (long) &dummy->u_fpvalid) } else if (addr == (long) &dummy->u_fpvalid)
tmp = !!tsk_used_math(child); tmp = !!tsk_used_math(child);
else if (addr == PT_TEXT_ADDR)
tmp = child->mm->start_code;
else if (addr == PT_DATA_ADDR)
tmp = child->mm->start_data;
else if (addr == PT_TEXT_END_ADDR)
tmp = child->mm->end_code;
else if (addr == PT_TEXT_LEN)
tmp = child->mm->end_code - child->mm->start_code;
else else
tmp = 0; tmp = 0;
ret = put_user(tmp, datap); ret = put_user(tmp, datap);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment