From 97a67572d65a6f26d209eb2b366814eda37e4917 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Wed, 6 Apr 2016 16:49:13 +0000 Subject: 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.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h') 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); }; -- cgit v1.2.3