diff options
author | Jim Ingham <jingham@apple.com> | 2010-06-16 02:00:15 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2010-06-16 02:00:15 +0000 |
commit | 1b54c88cc4f8582222644d65dfd61703206430ef (patch) | |
tree | 8f720e2946e32ece13de194e4ccfafffa21d9b3f /lldb/source/Breakpoint/Breakpoint.cpp | |
parent | babff2ce5644a5f2af3a9cac323c1a97f39a90a1 (diff) | |
download | bcm5719-llvm-1b54c88cc4f8582222644d65dfd61703206430ef.tar.gz bcm5719-llvm-1b54c88cc4f8582222644d65dfd61703206430ef.zip |
Add a "thread specification" class that specifies thread specific breakpoints by name, index, queue or TID.
Push this through all the breakpoint management code. Allow this to be set when the breakpoint is created.
Fix the Process classes so that a breakpoint hit that is not for a particular thread is not reported as a
breakpoint hit event for that thread.
Added a "breakpoint configure" command to allow you to reset any of the thread
specific options (or the ignore count.)
llvm-svn: 106078
Diffstat (limited to 'lldb/source/Breakpoint/Breakpoint.cpp')
-rw-r--r-- | lldb/source/Breakpoint/Breakpoint.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/source/Breakpoint/Breakpoint.cpp b/lldb/source/Breakpoint/Breakpoint.cpp index c475cf0f0d7..b3576b6a5da 100644 --- a/lldb/source/Breakpoint/Breakpoint.cpp +++ b/lldb/source/Breakpoint/Breakpoint.cpp @@ -24,6 +24,7 @@ #include "lldb/Core/StreamString.h" #include "lldb/Symbol/SymbolContext.h" #include "lldb/Target/Target.h" +#include "lldb/Target/ThreadSpec.h" #include "lldb/lldb-private-log.h" using namespace lldb; @@ -166,13 +167,16 @@ Breakpoint::GetIgnoreCount () const void Breakpoint::SetThreadID (lldb::tid_t thread_id) { - m_options.SetThreadID(thread_id); + m_options.GetThreadSpec()->SetTID(thread_id); } lldb::tid_t Breakpoint::GetThreadID () { - return m_options.GetThreadID(); + if (m_options.GetThreadSpec() == NULL) + return LLDB_INVALID_THREAD_ID; + else + return m_options.GetThreadSpec()->GetTID(); } // This function is used when "baton" doesn't need to be freed |