FreeBSD hardware watchpoint implementation

Programming / Debugging / LLDB - Ed Maste [freebsd.org] - 19 February 2014 12:34 UTC

Implement x86_64 debug register read/write in support of hardware watchpoints. Hoist LinuxThread::TraceNotify code back into POSIXThread::TraceNotify()

Patch by John Wolfe.

We still need to rework this later to avoid the #ifdef FreeBSD.

llvm-reviews.chandlerc.com/D2572 llvm.org/pr16706

22aa525 FreeBSD hardware watchpoint implementation
source/Plugins/Process/FreeBSD/ProcessMonitor.cpp | 111 +++++++++++++++++++-
source/Plugins/Process/FreeBSD/ProcessMonitor.h | 17 +++
source/Plugins/Process/Linux/LinuxThread.cpp | 21 ----
source/Plugins/Process/Linux/LinuxThread.h | 4 -
source/Plugins/Process/POSIX/POSIXThread.cpp | 26 ++++-
.../Process/POSIX/RegisterContextFreeBSD_i386.cpp | 14 ++-
.../POSIX/RegisterContextFreeBSD_x86_64.cpp | 15 ++-
.../Plugins/Process/POSIX/RegisterContextPOSIX.h | 4 +
.../RegisterContextPOSIXProcessMonitor_x86.cpp | 16 +++
.../concurrent_events/TestConcurrentEvents.py | 18 ----
.../hello_watchpoint/TestMyFirstWatchpoint.py | 1 -
.../TestWatchpointMultipleThreads.py | 2 -
.../watchpoint_commands/TestWatchpointCommands.py | 5 -
.../command/TestWatchpointCommandLLDB.py | 2 -
.../command/TestWatchpointCommandPython.py | 1 -
.../condition/TestWatchpointConditionCmd.py | 1 -
.../watchpoint_events/TestWatchpointEvents.py | 1 -
test/python_api/watchpoint/TestSetWatchpoint.py | 1 -
.../watchpoint/TestWatchpointIgnoreCount.py | 1 -
test/python_api/watchpoint/TestWatchpointIter.py | 1 -
.../condition/TestWatchpointConditionAPI.py | 1 -
.../watchlocation/TestSetWatchlocation.py | 1 -
.../watchlocation/TestTargetWatchAddress.py | 1 -
23 files changed, 195 insertions(+), 70 deletions(-)

Upstream: github.com


  • Share