mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
Moved lldb::user_id_t values to be 64 bit. This was going to be needed for
process IDs, and thread IDs, but was mainly needed for for the UserID's for Types so that DWARF with debug map can work flawlessly. With DWARF in .o files the type ID was the DIE offset in the DWARF for the .o file which is not unique across all .o files, so now the SymbolFileDWARFDebugMap class will make the .o file index part (the high 32 bits) of the unique type identifier so it can uniquely identify the types. llvm-svn: 142534
This commit is contained in:
@@ -65,7 +65,7 @@ Thread::Thread (Process &process, lldb::tid_t tid) :
|
||||
{
|
||||
LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_OBJECT));
|
||||
if (log)
|
||||
log->Printf ("%p Thread::Thread(tid = 0x%4.4x)", this, GetID());
|
||||
log->Printf ("%p Thread::Thread(tid = 0x%4.4llx)", this, GetID());
|
||||
|
||||
QueueFundamentalPlan(true);
|
||||
UpdateInstanceName();
|
||||
@@ -76,7 +76,7 @@ Thread::~Thread()
|
||||
{
|
||||
LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_OBJECT));
|
||||
if (log)
|
||||
log->Printf ("%p Thread::~Thread(tid = 0x%4.4x)", this, GetID());
|
||||
log->Printf ("%p Thread::~Thread(tid = 0x%4.4llx)", this, GetID());
|
||||
/// If you hit this assert, it means your derived class forgot to call DoDestroy in its destructor.
|
||||
assert (m_destroy_called);
|
||||
}
|
||||
@@ -373,7 +373,7 @@ Thread::ShouldReportStop (Event* event_ptr)
|
||||
if (thread_state == eStateSuspended || thread_state == eStateInvalid)
|
||||
{
|
||||
if (log)
|
||||
log->Printf ("Thread::ShouldReportStop() tid = 0x%4.4x: returning vote %i (state was suspended or invalid)\n", GetID(), eVoteNoOpinion);
|
||||
log->Printf ("Thread::ShouldReportStop() tid = 0x%4.4llx: returning vote %i (state was suspended or invalid)\n", GetID(), eVoteNoOpinion);
|
||||
return eVoteNoOpinion;
|
||||
}
|
||||
|
||||
@@ -381,13 +381,13 @@ Thread::ShouldReportStop (Event* event_ptr)
|
||||
{
|
||||
// Don't use GetCompletedPlan here, since that suppresses private plans.
|
||||
if (log)
|
||||
log->Printf ("Thread::ShouldReportStop() tid = 0x%4.4x: returning vote for complete stack's back plan\n", GetID());
|
||||
log->Printf ("Thread::ShouldReportStop() tid = 0x%4.4llx: returning vote for complete stack's back plan\n", GetID());
|
||||
return m_completed_plan_stack.back()->ShouldReportStop (event_ptr);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (log)
|
||||
log->Printf ("Thread::ShouldReportStop() tid = 0x%4.4x: returning vote for current plan\n", GetID());
|
||||
log->Printf ("Thread::ShouldReportStop() tid = 0x%4.4llx: returning vote for current plan\n", GetID());
|
||||
return GetCurrentPlan()->ShouldReportStop (event_ptr);
|
||||
}
|
||||
}
|
||||
@@ -408,7 +408,7 @@ Thread::ShouldReportRun (Event* event_ptr)
|
||||
{
|
||||
// Don't use GetCompletedPlan here, since that suppresses private plans.
|
||||
if (log)
|
||||
log->Printf ("Current Plan for thread %d (0x%4.4x): %s being asked whether we should report run.",
|
||||
log->Printf ("Current Plan for thread %d (0x%4.4llx): %s being asked whether we should report run.",
|
||||
GetIndexID(),
|
||||
GetID(),
|
||||
m_completed_plan_stack.back()->GetName());
|
||||
@@ -418,7 +418,7 @@ Thread::ShouldReportRun (Event* event_ptr)
|
||||
else
|
||||
{
|
||||
if (log)
|
||||
log->Printf ("Current Plan for thread %d (0x%4.4x): %s being asked whether we should report run.",
|
||||
log->Printf ("Current Plan for thread %d (0x%4.4llx): %s being asked whether we should report run.",
|
||||
GetIndexID(),
|
||||
GetID(),
|
||||
GetCurrentPlan()->GetName());
|
||||
@@ -453,7 +453,7 @@ Thread::PushPlan (ThreadPlanSP &thread_plan_sp)
|
||||
{
|
||||
StreamString s;
|
||||
thread_plan_sp->GetDescription (&s, lldb::eDescriptionLevelFull);
|
||||
log->Printf("Pushing plan: \"%s\", tid = 0x%4.4x.",
|
||||
log->Printf("Pushing plan: \"%s\", tid = 0x%4.4llx.",
|
||||
s.GetData(),
|
||||
thread_plan_sp->GetThread().GetID());
|
||||
}
|
||||
@@ -472,7 +472,7 @@ Thread::PopPlan ()
|
||||
ThreadPlanSP &plan = m_plan_stack.back();
|
||||
if (log)
|
||||
{
|
||||
log->Printf("Popping plan: \"%s\", tid = 0x%4.4x.", plan->GetName(), plan->GetThread().GetID());
|
||||
log->Printf("Popping plan: \"%s\", tid = 0x%4.4llx.", plan->GetName(), plan->GetThread().GetID());
|
||||
}
|
||||
m_completed_plan_stack.push_back (plan);
|
||||
plan->WillPop();
|
||||
@@ -614,7 +614,7 @@ Thread::DiscardThreadPlansUpToPlan (lldb::ThreadPlanSP &up_to_plan_sp)
|
||||
LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_STEP));
|
||||
if (log)
|
||||
{
|
||||
log->Printf("Discarding thread plans for thread tid = 0x%4.4x, up to %p", GetID(), up_to_plan_sp.get());
|
||||
log->Printf("Discarding thread plans for thread tid = 0x%4.4llx, up to %p", GetID(), up_to_plan_sp.get());
|
||||
}
|
||||
|
||||
int stack_size = m_plan_stack.size();
|
||||
@@ -655,7 +655,7 @@ Thread::DiscardThreadPlans(bool force)
|
||||
LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_STEP));
|
||||
if (log)
|
||||
{
|
||||
log->Printf("Discarding thread plans for thread (tid = 0x%4.4x, force %d)", GetID(), force);
|
||||
log->Printf("Discarding thread plans for thread (tid = 0x%4.4llx, force %d)", GetID(), force);
|
||||
}
|
||||
|
||||
if (force)
|
||||
@@ -864,7 +864,7 @@ Thread::DumpThreadPlans (lldb_private::Stream *s) const
|
||||
uint32_t stack_size = m_plan_stack.size();
|
||||
int i;
|
||||
s->Indent();
|
||||
s->Printf ("Plan Stack for thread #%u: tid = 0x%4.4x, stack_size = %d\n", GetIndexID(), GetID(), stack_size);
|
||||
s->Printf ("Plan Stack for thread #%u: tid = 0x%4.4llx, stack_size = %d\n", GetIndexID(), GetID(), stack_size);
|
||||
for (i = stack_size - 1; i >= 0; i--)
|
||||
{
|
||||
s->IndentMore();
|
||||
|
||||
Reference in New Issue
Block a user