[lldb-dev] [PATCH][Linux] compilation fails on linux after revision 196787
Greg Clayton
gclayton at apple.com
Tue Dec 10 13:00:10 PST 2013
Looks good.
On Dec 9, 2013, at 1:54 PM, Xavier de Gaye <xdegaye at gmail.com> wrote:
> 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
> //------------------------------------------------------------------
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
More information about the lldb-dev
mailing list