This is an archive of the discontinued LLVM Phabricator instance.

Reduce code duplication in ProcessGDBRemote
ClosedPublic

Authored by labath on Apr 6 2016, 3:10 AM.

Details

Summary

SetThreadStopInfo was checking for a breakpoint at the current PC several times. This merges the
identical code into a separate function. I've left one breakpoint check alone, as it was doing
more complicated stuff, and it did not see a way to merge that without making the interface
complicated. NFC.

Diff Detail

Repository
rL LLVM

Event Timeline

labath updated this revision to Diff 52773.Apr 6 2016, 3:10 AM
labath retitled this revision from to Reduce code duplication in ProcessGDBRemote.
labath updated this object.
labath added a reviewer: clayborg.
labath added a subscriber: lldb-commits.
clayborg accepted this revision.Apr 6 2016, 9:37 AM
clayborg edited edge metadata.
This revision is now accepted and ready to land.Apr 6 2016, 9:37 AM
This revision was automatically updated to reflect the committed changes.
chying added a subscriber: chying.Apr 6 2016, 11:12 AM

TestRegisters.py and TestDebugBreak.py are broken after this change. Could you take a look?
http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-cmake/builds/13090