I looked how it is done in gdb, and found that this piece of code must be rewritten.
Details
Diff Detail
Event Timeline
Hey Paul,
I have just a few questions that all boil down to checking if we need a guard #ifdef around a particular pattern in the code above. (See code-inlined comments).
Aside from that, LGTM.
Tested:
Ubuntu 14.04 x86_64, clang-3.5-built lldb, all tests passed.
source/Plugins/Process/Linux/ProcessMonitor.cpp | ||
---|---|---|
581 | Do we need an analog of #ifdef PT_GETREGS (as the x86 side has) here? | |
621 | The x86 code is guarded by a #ifdef PT_GETFPREGS. Do we have/need an analog for that here? | |
690 | The x86-based call was guarded by an ifdef on the PT_SETREGS define. Do we need an analog here for PTRACE_SETREGSET? | |
730 | Do we need an analog of #ifdef PT_SETFPREGS here? |
All those PT_* ifdefs were related to ARM64, so I suppose they can be safely removed.
Ok - that sounds good. Would you like to pull those out and put it in this
patch, since they seem to be atomically related?
Ok - those were the changes I was looking for. Thanks for cleaning up those other #ifdefs, Paul. Testing now.
svn commit
Sending source/Plugins/Process/Linux/NativeProcessLinux.cpp
Sending source/Plugins/Process/Linux/ProcessMonitor.cpp
Transmitting file data ..
Committed revision 216185.
Do we need an analog of #ifdef PT_GETREGS (as the x86 side has) here?