This is an archive of the discontinued LLVM Phabricator instance.

Fix LLGS to enable read type watchpoints
AbandonedPublic

Authored by omjavaid on Aug 10 2015, 5:34 AM.

Details

Summary

LLGS was forcing lldb to use only write or read+write type watchpoints.

This patch fixes this behavior to enable read, write and read+write types of watchpoints.

Note: On x86_64 read watchpoints still dont work and they are disabled by NativeRegisterContextLinux_x86. We ll need to revisit this later because all three types of watchpoints should also work on x86.

Diff Detail

Event Timeline

omjavaid updated this revision to Diff 31658.Aug 10 2015, 5:34 AM
omjavaid retitled this revision from to Fix LLGS to enable read type watchpoints.
omjavaid updated this object.
omjavaid added reviewers: tberghammer, clayborg.
omjavaid added a subscriber: lldb-commits.
tberghammer accepted this revision.Aug 10 2015, 6:33 AM
tberghammer edited edge metadata.

LGTM

source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
2230

(nit): Please initialize to 0

This revision is now accepted and ready to land.Aug 10 2015, 6:33 AM
clayborg requested changes to this revision.Aug 10 2015, 10:02 AM
clayborg edited edge metadata.

Init "watch_flags" to zero and this is good to go.

source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
2230

Yes, init to zero please.

This revision now requires changes to proceed.Aug 10 2015, 10:02 AM
omjavaid abandoned this revision.Feb 9 2016, 1:07 AM