On Fri, Mar 25, 2011 at 1:40 PM, Ulrich Weigand Ulrich.Weigand@de.ibm.com wrote:
Dave Martin dave.martin@linaro.org wrote:
I was indeed thinking that it might be a good idea to take this opportunity to migrate to using regsets; though for simplicity, I'll probably avoid this for the first iteration.
Will this have any impact on the ptrace interface?
Well, once you support regsets, the PTRACE_GETREGSET/PTRACE_SETREGSET commands will start working. However, on platforms that already had commands to access registers, platform-specific code will of course need to continue to support those.
Ah, right -- I wondered if there was something like this, but initially I'd just been looking at the ptrace man page; I guess it's rather too out-of-date for this.
See e.g. arch/powerpc/kernel/ptrace.c, which by now implements all of its legacy ptrace register commands in terms of regset functions.
OK, I'll take a look -- thanks.
---Dave