diff options
| author | Pavel Labath <labath@google.com> | 2017-01-25 11:19:45 +0000 |
|---|---|---|
| committer | Pavel Labath <labath@google.com> | 2017-01-25 11:19:45 +0000 |
| commit | 8abd34f0155a162a37c4dd692b65604ccbcb14d1 (patch) | |
| tree | 4a0b27a35b000c23a6d020cdcf18612eb6df0221 /lldb/source/Plugins/Process/Linux/NativeThreadLinux.h | |
| parent | 2d0c5b02970da62dd10baab1d197535f0d3c16ac (diff) | |
| download | llvm-8abd34f0155a162a37c4dd692b65604ccbcb14d1.tar.gz llvm-8abd34f0155a162a37c4dd692b65604ccbcb14d1.tar.bz2 llvm-8abd34f0155a162a37c4dd692b65604ccbcb14d1.zip | |
NPL: Compartmentalize arm64 single step workaround better
The main motivation for me doing this is being able to build an arm
android lldb-server against api level 9 headers, but it seems like a
good cleanup nonetheless.
The entirety of the cpu_set_t dance now resides in SingleStepCheck.cpp,
which is only built on arm64.
llvm-svn: 293046
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeThreadLinux.h')
| -rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeThreadLinux.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h index f170bb1e8508..5c4bbc46400f 100644 --- a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h +++ b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h @@ -10,11 +10,10 @@ #ifndef liblldb_NativeThreadLinux_H_ #define liblldb_NativeThreadLinux_H_ +#include "SingleStepCheck.h" #include "lldb/Host/common/NativeThreadProtocol.h" #include "lldb/lldb-private-forward.h" -#include <sched.h> - #include <map> #include <memory> #include <string> @@ -94,10 +93,6 @@ private: void SetStopped(); - inline void MaybePrepareSingleStepWorkaround(); - - inline void MaybeCleanupSingleStepWorkaround(); - // --------------------------------------------------------------------- // Member Variables // --------------------------------------------------------------------- @@ -107,7 +102,7 @@ private: std::string m_stop_description; using WatchpointIndexMap = std::map<lldb::addr_t, uint32_t>; WatchpointIndexMap m_watchpoint_index_map; - cpu_set_t m_original_cpu_set; // For single-step workaround. + llvm::Optional<SingleStepWorkaround> m_step_workaround; }; typedef std::shared_ptr<NativeThreadLinux> NativeThreadLinuxSP; |
