This is the mail archive of the frysk@sourceware.org mailing list for the frysk project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi,
Since fhpd is complaining rather loudly about not supporting watchpoints
in Power, I decided to add such support. :-)
I'd like to ask your opinion, especially regarding two
methods I had to add to frysk.sys.Ptrace and
frysk.proc.live.LinuxPtraceTask: setDebugReg and getDebugReg. They are
necessary because on the PowerPC architecture, debug registers are a
priviledged resource, and userland need to access them via
PTRACE_SET_DEBUGREG and PTRACE_GET_DEBUGREG. What do you think, are
these changes ok?
Now regarding why the patch doesn't work: in order to verify if the process stopped because of the hardware watchpoint, I need to examine the siginfo structure which comes with the SIGTRAP. This information is not available to Frysk yet, so I'd like your opinion on the following approach:
If my understanding is correct, this would make the siginfo available to
LinuxPtraceTaskState.Running.handleStoppedEvent,
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |