[lldb-dev] [PATCH][Linux] compilation fails on linux after revision 196787
Xavier de Gaye
xdegaye at gmail.com
Mon Dec 9 13:54:34 PST 2013
The following patch fixes this.
Xavier
diff --git a/tools/lldb/source/Plugins/Process/Linux/LinuxThread.cpp
b/tools/lldb/source/Plugins/Process/Linux/LinuxThread.cpp
--- a/tools/lldb/source/Plugins/Process/Linux/LinuxThread.cpp
+++ b/tools/lldb/source/Plugins/Process/Linux/LinuxThread.cpp
@@ -12,6 +12,10 @@
// Other libraries and framework includes
// Project includes
#include "LinuxThread.h"
+#include "lldb/Core/State.h"
+#include "ProcessPOSIX.h"
+#include "ProcessMonitor.h"
+#include "ProcessPOSIXLog.h"
using namespace lldb;
using namespace lldb_private;
diff --git a/tools/lldb/source/Plugins/Process/Linux/LinuxThread.h
b/tools/lldb/source/Plugins/Process/Linux/LinuxThread.h
--- a/tools/lldb/source/Plugins/Process/Linux/LinuxThread.h
+++ b/tools/lldb/source/Plugins/Process/Linux/LinuxThread.h
@@ -33,7 +33,7 @@
// POSIXThread overrides
virtual bool
- LinuxThread::Resume();
+ Resume();
virtual void
RefreshStateAfterStop();
diff --git a/tools/lldb/source/Plugins/Process/Linux/ProcessLinux.cpp
b/tools/lldb/source/Plugins/Process/Linux/ProcessLinux.cpp
--- a/tools/lldb/source/Plugins/Process/Linux/ProcessLinux.cpp
+++ b/tools/lldb/source/Plugins/Process/Linux/ProcessLinux.cpp
@@ -182,7 +182,7 @@
uint32_t thread_count = m_thread_list.GetSize(false);
for (uint32_t i = 0; i < thread_count; ++i)
{
- POSIXThread *thread = static_cast<POSIXThread*>(
+ LinuxThread *thread = static_cast<LinuxThread*>(
m_thread_list.GetThreadAtIndex(i, false).get());
did_resume = thread->Resume() || did_resume;
}
diff --git a/tools/lldb/source/Plugins/Process/Linux/ProcessLinux.h
b/tools/lldb/source/Plugins/Process/Linux/ProcessLinux.h
--- a/tools/lldb/source/Plugins/Process/Linux/ProcessLinux.h
+++ b/tools/lldb/source/Plugins/Process/Linux/ProcessLinux.h
@@ -60,6 +60,9 @@
virtual bool
UpdateThreadList(lldb_private::ThreadList &old_thread_list,
lldb_private::ThreadList &new_thread_list);
+ virtual lldb_private::Error
+ DoResume();
+
//------------------------------------------------------------------
// PluginInterface protocol
//------------------------------------------------------------------
More information about the lldb-dev
mailing list