mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 09:31:59 +08:00
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
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
#include "lldb/Core/ModuleList.h"
|
||||
#include "lldb/Breakpoint/BreakpointLocation.h"
|
||||
#include "lldb/Breakpoint/BreakpointLocationList.h"
|
||||
#include "lldb/Target/Thread.h"
|
||||
#include "lldb/Target/ThreadSpec.h"
|
||||
|
||||
using namespace lldb;
|
||||
using namespace lldb_private;
|
||||
@@ -145,6 +147,22 @@ BreakpointLocationCollection::ShouldStop (StoppointCallbackContext *context)
|
||||
return shouldStop;
|
||||
}
|
||||
|
||||
bool
|
||||
BreakpointLocationCollection::ValidForThisThread (Thread *thread)
|
||||
{
|
||||
collection::iterator pos,
|
||||
begin = m_break_loc_collection.begin(),
|
||||
end = m_break_loc_collection.end();
|
||||
|
||||
for (pos = begin; pos != end; ++pos)
|
||||
{
|
||||
if ((*pos)->ValidForThisThread (thread))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
BreakpointLocationCollection::GetDescription (Stream *s, lldb::DescriptionLevel level)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user