summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2016-04-06 16:49:13 +0000
committerPavel Labath <labath@google.com>2016-04-06 16:49:13 +0000
commit97a67572d65a6f26d209eb2b366814eda37e4917 (patch)
treedae3635c917919d64729e754228d57406a734828 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
parent6849f8f15f4fd874d0a7de4aaac65b1ad374912c (diff)
downloadbcm5719-llvm-97a67572d65a6f26d209eb2b366814eda37e4917.tar.gz
bcm5719-llvm-97a67572d65a6f26d209eb2b366814eda37e4917.zip
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
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
index b67eb49e5e6..a361ae31857 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
@@ -481,6 +481,9 @@ private:
lldb::user_id_t break_id,
lldb::user_id_t break_loc_id);
+ bool
+ SetThreadStopReasonIfAtBreakpoint(Thread &thread);
+
DISALLOW_COPY_AND_ASSIGN (ProcessGDBRemote);
};
OpenPOWER on IntegriCloud