forked from OSchip/llvm-project
Fix log message for new invalidation checks in PlanValidAtAddress().
Thanks to Ed and Greg for catching the incorrect logging statements. llvm-svn: 196322
This commit is contained in:
parent
f4d34153f5
commit
135e55f8f3
|
@ -379,7 +379,19 @@ UnwindPlan::PlanValidAtAddress (Address addr)
|
|||
{
|
||||
Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_UNWIND));
|
||||
if (log)
|
||||
log->Printf ("Testing if UnwindPlan is valid at pc 0x%" PRIx64 ": No unwind rows - is invalid.");
|
||||
{
|
||||
StreamString s;
|
||||
if (addr.Dump (&s, NULL, Address::DumpStyleSectionNameOffset))
|
||||
{
|
||||
log->Printf ("UnwindPlan is invalid -- no unwind rows for UnwindPlan '%s' at address %s",
|
||||
m_source_name.GetCString(), s.GetData());
|
||||
}
|
||||
else
|
||||
{
|
||||
log->Printf ("UnwindPlan is invalid -- no unwind rows for UnwindPlan '%s'",
|
||||
m_source_name.GetCString());
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -389,7 +401,19 @@ UnwindPlan::PlanValidAtAddress (Address addr)
|
|||
{
|
||||
Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_UNWIND));
|
||||
if (log)
|
||||
log->Printf ("Testing if UnwindPlan is valid at pc 0x%" PRIx64 ": No CFA register - is invalid.");
|
||||
{
|
||||
StreamString s;
|
||||
if (addr.Dump (&s, NULL, Address::DumpStyleSectionNameOffset))
|
||||
{
|
||||
log->Printf ("UnwindPlan is invalid -- no CFA register defined in row 0 for UnwindPlan '%s' at address %s",
|
||||
m_source_name.GetCString(), s.GetData());
|
||||
}
|
||||
else
|
||||
{
|
||||
log->Printf ("UnwindPlan is invalid -- no CFA register defined in row 0 for UnwindPlan '%s'",
|
||||
m_source_name.GetCString());
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue