diff options
| author | Pavel Labath <labath@google.com> | 2017-02-16 18:12:04 +0000 |
|---|---|---|
| committer | Pavel Labath <labath@google.com> | 2017-02-16 18:12:04 +0000 |
| commit | 7278496ccf9390e10ce962636ef7270fb4007709 (patch) | |
| tree | efbea67a9df008ebceb6820d587b02a14c3c3977 /lldb/source/Plugins/Process/Linux/NativeThreadLinux.h | |
| parent | 72ba21091659db390550ec1597dccccfd4955941 (diff) | |
| download | llvm-7278496ccf9390e10ce962636ef7270fb4007709.tar.gz llvm-7278496ccf9390e10ce962636ef7270fb4007709.tar.bz2 llvm-7278496ccf9390e10ce962636ef7270fb4007709.zip | |
NPL: Fix single step workaround
While refactoring the code in r293046 I made a very basic error -
relying on destructor side-effects of a copyable object. Fix that and
make the object non-copyable.
This fixes the tests on the platforms that need this workaround, but
unfortunately we don't have a way to make a more platform-agnostic test
right now.
llvm-svn: 295345
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeThreadLinux.h')
| -rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeThreadLinux.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h index 5c4bbc46400f..cc03a1fbb621 100644 --- a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h +++ b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h @@ -102,7 +102,7 @@ private: std::string m_stop_description; using WatchpointIndexMap = std::map<lldb::addr_t, uint32_t>; WatchpointIndexMap m_watchpoint_index_map; - llvm::Optional<SingleStepWorkaround> m_step_workaround; + std::unique_ptr<SingleStepWorkaround> m_step_workaround; }; typedef std::shared_ptr<NativeThreadLinux> NativeThreadLinuxSP; |
