summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.h
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2016-12-16 02:48:39 +0000
committerJason Molenda <jmolenda@apple.com>2016-12-16 02:48:39 +0000
commit3826727453b258ac8b6df655892497cbdd7dc5df (patch)
tree092e8993112a5d381a075e48cc205be46b6c3ab5 /lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.h
parent519de4b69205a17df69250e92423d8bd482bbf99 (diff)
downloadbcm5719-llvm-3826727453b258ac8b6df655892497cbdd7dc5df.tar.gz
bcm5719-llvm-3826727453b258ac8b6df655892497cbdd7dc5df.zip
Fix a bug when using a StructuredData darwin-log plugin
where we would insert a breakpoint into a system library but never remove it, so the second time we ran the binary there would be two breakpoints and the debugger would stop there. <rdar://problem/29654974> llvm-svn: 289913
Diffstat (limited to 'lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.h')
-rw-r--r--lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.h b/lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.h
index 91bd7a6a58c..7eaab127c3f 100644
--- a/lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.h
+++ b/lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.h
@@ -74,6 +74,8 @@ public:
void ModulesDidLoad(Process &process, ModuleList &module_list) override;
+ ~StructuredDataDarwinLog();
+
private:
// -------------------------------------------------------------------------
// Private constructors
@@ -129,6 +131,7 @@ private:
bool m_is_enabled;
std::mutex m_added_breakpoint_mutex;
bool m_added_breakpoint;
+ lldb::user_id_t m_breakpoint_id;
};
}
OpenPOWER on IntegriCloud