[Lldb-commits] [lldb] r154693 - in /lldb/branches/lldb-platform-work/source/Plugins/Process: FreeBSD/ProcessFreeBSD.cpp POSIX/ProcessPOSIX.cpp POSIX/ProcessPOSIX.h
Johnny Chen
johnny.chen at apple.com
Fri Apr 13 12:33:31 PDT 2012
Author: johnny
Date: Fri Apr 13 14:33:31 2012
New Revision: 154693
URL: http://llvm.org/viewvc/llvm-project?rev=154693&view=rev
Log:
Fix bad merge (r154609) pointed out by Viktor Kutuzov <vkutuzov at accesssoftek.com>, thanks!
Modified:
lldb/branches/lldb-platform-work/source/Plugins/Process/FreeBSD/ProcessFreeBSD.cpp
lldb/branches/lldb-platform-work/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
lldb/branches/lldb-platform-work/source/Plugins/Process/POSIX/ProcessPOSIX.h
Modified: lldb/branches/lldb-platform-work/source/Plugins/Process/FreeBSD/ProcessFreeBSD.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/lldb-platform-work/source/Plugins/Process/FreeBSD/ProcessFreeBSD.cpp?rev=154693&r1=154692&r2=154693&view=diff
==============================================================================
--- lldb/branches/lldb-platform-work/source/Plugins/Process/FreeBSD/ProcessFreeBSD.cpp (original)
+++ lldb/branches/lldb-platform-work/source/Plugins/Process/FreeBSD/ProcessFreeBSD.cpp Fri Apr 13 14:33:31 2012
@@ -138,6 +138,7 @@
if (log && log->GetMask().Test(POSIX_LOG_VERBOSE))
log->Printf ("ProcessFreeBSD::%s() (pid = %i)", __FUNCTION__, GetID());
+ bool has_updated = false;
const tid_t tid = Host::GetCurrentThreadID();
const lldb::pid_t pid = GetID();
// Update the process thread list with this new thread.
@@ -147,6 +148,7 @@
if (!thread_sp) {
ProcessSP me = this->shared_from_this();
thread_sp.reset(new POSIXThread(me, pid));
+ has_updated = true;
}
if (log && log->GetMask().Test(POSIX_LOG_VERBOSE))
@@ -154,5 +156,5 @@
new_thread_list.AddThread(thread_sp);
- return new_thread_list.GetSize(false) > 0;
+ return has_updated; // the list has been updated
}
Modified: lldb/branches/lldb-platform-work/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/lldb-platform-work/source/Plugins/Process/POSIX/ProcessPOSIX.cpp?rev=154693&r1=154692&r2=154693&view=diff
==============================================================================
--- lldb/branches/lldb-platform-work/source/Plugins/Process/POSIX/ProcessPOSIX.cpp (original)
+++ lldb/branches/lldb-platform-work/source/Plugins/Process/POSIX/ProcessPOSIX.cpp Fri Apr 13 14:33:31 2012
@@ -482,13 +482,6 @@
return DisableSoftwareBreakpoint(bp_site);
}
-uint32_t
-ProcessPOSIX::UpdateThreadListIfNeeded()
-{
- // Do not allow recursive updates.
- return m_thread_list.GetSize(false);
-}
-
bool
ProcessPOSIX::UpdateThreadList(ThreadList &old_thread_list, ThreadList &new_thread_list)
{
@@ -496,6 +489,7 @@
if (log && log->GetMask().Test(POSIX_LOG_VERBOSE))
log->Printf ("ProcessPOSIX::%s() (pid = %i)", __FUNCTION__, GetID());
+ bool has_updated = false;
// Update the process thread list with this new thread.
// FIXME: We should be using tid, not pid.
assert(m_monitor);
@@ -503,13 +497,14 @@
if (!thread_sp) {
ProcessSP me = this->shared_from_this();
thread_sp.reset(new POSIXThread(me, GetID()));
+ has_updated = true;
}
if (log && log->GetMask().Test(POSIX_LOG_VERBOSE))
log->Printf ("ProcessPOSIX::%s() updated pid = %i", __FUNCTION__, GetID());
new_thread_list.AddThread(thread_sp);
- return new_thread_list.GetSize(false) > 0;
+ return has_updated; // the list has been updated
}
ByteOrder
Modified: lldb/branches/lldb-platform-work/source/Plugins/Process/POSIX/ProcessPOSIX.h
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/lldb-platform-work/source/Plugins/Process/POSIX/ProcessPOSIX.h?rev=154693&r1=154692&r2=154693&view=diff
==============================================================================
--- lldb/branches/lldb-platform-work/source/Plugins/Process/POSIX/ProcessPOSIX.h (original)
+++ lldb/branches/lldb-platform-work/source/Plugins/Process/POSIX/ProcessPOSIX.h Fri Apr 13 14:33:31 2012
@@ -102,9 +102,6 @@
virtual lldb_private::Error
DisableBreakpoint(lldb_private::BreakpointSite *bp_site);
- virtual uint32_t
- UpdateThreadListIfNeeded();
-
virtual bool
UpdateThreadList(lldb_private::ThreadList &old_thread_list,
lldb_private::ThreadList &new_thread_list) = 0;
More information about the lldb-commits
mailing list