diff options
author | Greg Clayton <gclayton@apple.com> | 2010-10-18 04:14:23 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2010-10-18 04:14:23 +0000 |
commit | 58d1c9a44f9c3a0b2813e2a63f912d3fe8ec3840 (patch) | |
tree | 2f60b8fbbfcf5e19a54376803d0d2d21ff5d3363 /lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp | |
parent | 5cd41c4b13aa8ce63a3e84f8caf668f01167f6f0 (diff) | |
download | bcm5719-llvm-58d1c9a44f9c3a0b2813e2a63f912d3fe8ec3840.tar.gz bcm5719-llvm-58d1c9a44f9c3a0b2813e2a63f912d3fe8ec3840.zip |
Still trying to get detach to work with debugserver. Got a bit closer,
but something is still killing our inferior.
Fixed an issue with darwin-debug where it wasn't passing all needed arguments
to the inferior.
Fixed a race condition with the attach to named process code.
llvm-svn: 116697
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp')
-rw-r--r-- | lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp b/lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp index b1ccc74f8e6..4f096b812de 100644 --- a/lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp +++ b/lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp @@ -429,4 +429,17 @@ MachThreadList::DisableHardwareWatchpoint (const DNBBreakpoint* wp) const return false; } +uint32_t +MachThreadList::GetThreadIndexForThreadStoppedWithSignal (const int signo) const +{ + uint32_t should_stop = false; + const uint32_t num_threads = m_threads.size(); + uint32_t idx = 0; + for (idx = 0; !should_stop && idx < num_threads; ++idx) + { + if (m_threads[idx]->GetStopException().SoftSignal () == signo) + return idx; + } + return UINT32_MAX; +} |