Reduce code duplication in ProcessGDBRemote
authorPavel Labath <labath@google.com>
Wed, 6 Apr 2016 16:49:13 +0000 (16:49 +0000)
committerPavel Labath <labath@google.com>
Wed, 6 Apr 2016 16:49:13 +0000 (16:49 +0000)
commit97a67572d65a6f26d209eb2b366814eda37e4917
treedae3635c917919d64729e754228d57406a734828
parent6849f8f15f4fd874d0a7de4aaac65b1ad374912c
Reduce code duplication in ProcessGDBRemote

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.

Reviewers: clayborg

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D18819

llvm-svn: 265560
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h