[Lldb-commits] [lldb] r140817 - in /lldb/trunk/source/Plugins: Process/Utility/RegisterContextLLDB.cpp UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp
Jason Molenda
jmolenda at apple.com
Thu Sep 29 15:34:41 PDT 2011
Author: jmolenda
Date: Thu Sep 29 17:34:41 2011
New Revision: 140817
URL: http://llvm.org/viewvc/llvm-project?rev=140817&view=rev
Log:
Fix verbose logging of unwinders.
Modified:
lldb/trunk/source/Plugins/Process/Utility/RegisterContextLLDB.cpp
lldb/trunk/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp
Modified: lldb/trunk/source/Plugins/Process/Utility/RegisterContextLLDB.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/RegisterContextLLDB.cpp?rev=140817&r1=140816&r2=140817&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/RegisterContextLLDB.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Utility/RegisterContextLLDB.cpp Thu Sep 29 17:34:41 2011
@@ -500,7 +500,7 @@
if (unwind_plan_sp->PlanValidAtAddress (m_current_pc))
{
LogSP log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_UNWIND));
- if (log && IsLogVerbose())
+ if (log && log->GetVerbose())
{
const char *has_fast = "";
if (m_fast_unwind_plan_sp)
@@ -603,7 +603,7 @@
unwind_plan_sp = func_unwinders_sp->GetUnwindPlanAtNonCallSite (m_thread);
if (unwind_plan_sp && unwind_plan_sp->PlanValidAtAddress (m_current_pc))
{
- if (log && IsLogVerbose())
+ if (log && log->GetVerbose())
{
log->Printf("%*sFrame %u frame uses %s for full UnwindPlan",
m_frame_number < 100 ? m_frame_number : 100, "", m_frame_number,
@@ -617,7 +617,7 @@
unwind_plan_sp = func_unwinders_sp->GetUnwindPlanAtCallSite (m_current_offset_backed_up_one);
if (unwind_plan_sp && unwind_plan_sp->PlanValidAtAddress (m_current_pc))
{
- if (log && IsLogVerbose())
+ if (log && log->GetVerbose())
{
log->Printf("%*sFrame %u frame uses %s for full UnwindPlan",
m_frame_number < 100 ? m_frame_number : 100, "", m_frame_number,
@@ -631,7 +631,7 @@
unwind_plan_sp = func_unwinders_sp->GetUnwindPlanAtNonCallSite (m_thread);
if (unwind_plan_sp && unwind_plan_sp->PlanValidAtAddress (m_current_pc))
{
- if (log && IsLogVerbose())
+ if (log && log->GetVerbose())
{
log->Printf("%*sFrame %u frame uses %s for full UnwindPlan",
m_frame_number < 100 ? m_frame_number : 100, "", m_frame_number,
@@ -641,7 +641,7 @@
}
// If nothing else, use the architectural default UnwindPlan and hope that does the job.
- if (log && IsLogVerbose())
+ if (log && log->GetVerbose())
{
log->Printf("%*sFrame %u frame uses %s for full UnwindPlan",
m_frame_number < 100 ? m_frame_number : 100, "", m_frame_number,
@@ -906,7 +906,7 @@
const RegisterInfo *reg_info = GetRegisterInfoAtIndex(lldb_regnum);
if (reg_info && abi->RegisterIsVolatile (reg_info))
{
- if (log && IsLogVerbose ())
+ if (log && log->GetVerbose ())
{
log->Printf("%*sFrame %u did not supply reg location for %d because it is volatile",
m_frame_number < 100 ? m_frame_number : 100, "", m_frame_number,
@@ -1126,7 +1126,7 @@
return false;
const uint32_t lldb_regnum = reg_info->kinds[eRegisterKindLLDB];
- if (log && IsLogVerbose ())
+ if (log && log->GetVerbose ())
{
log->Printf("%*sFrame %u looking for register saved location for reg %d",
m_frame_number < 100 ? m_frame_number : 100, "", m_frame_number,
@@ -1136,7 +1136,7 @@
// If this is the 0th frame, hand this over to the live register context
if (IsFrameZero ())
{
- if (log && IsLogVerbose ())
+ if (log && log->GetVerbose ())
{
log->Printf("%*sFrame %u passing along to the live register context for reg %d",
m_frame_number < 100 ? m_frame_number : 100, "", m_frame_number,
@@ -1161,7 +1161,7 @@
return false;
const uint32_t lldb_regnum = reg_info->kinds[eRegisterKindLLDB];
- if (log && IsLogVerbose ())
+ if (log && log->GetVerbose ())
{
log->Printf("%*sFrame %u looking for register saved location for reg %d",
m_frame_number < 100 ? m_frame_number : 100, "", m_frame_number,
@@ -1171,7 +1171,7 @@
// If this is the 0th frame, hand this over to the live register context
if (IsFrameZero ())
{
- if (log && IsLogVerbose ())
+ if (log && log->GetVerbose ())
{
log->Printf("%*sFrame %u passing along to the live register context for reg %d",
m_frame_number < 100 ? m_frame_number : 100, "", m_frame_number,
Modified: lldb/trunk/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp?rev=140817&r1=140816&r2=140817&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp (original)
+++ lldb/trunk/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp Thu Sep 29 17:34:41 2011
@@ -104,7 +104,7 @@
if (inst)
{
- if (log && IsLogVerbose ())
+ if (log && log->GetVerbose ())
{
StreamString strm;
inst->Dump(&strm, inst_list.GetMaxOpcocdeByteSize (), show_address, show_bytes, &exe_ctx, raw);
@@ -130,7 +130,7 @@
}
}
- if (log && IsLogVerbose ())
+ if (log && log->GetVerbose ())
{
StreamString strm;
lldb::addr_t base_addr = range.GetBaseAddress().GetLoadAddress(&thread.GetProcess().GetTarget());
@@ -264,7 +264,7 @@
{
LogSP log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_UNWIND));
- if (log && IsLogVerbose ())
+ if (log && log->GetVerbose ())
{
StreamString strm;
strm.Printf ("UnwindAssemblyInstEmulation::ReadMemory (addr = 0x%16.16llx, dst = %p, dst_len = %zu, context = ",
@@ -304,7 +304,7 @@
LogSP log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_UNWIND));
- if (log && IsLogVerbose ())
+ if (log && log->GetVerbose ())
{
StreamString strm;
@@ -407,7 +407,7 @@
LogSP log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_UNWIND));
- if (log && IsLogVerbose ())
+ if (log && log->GetVerbose ())
{
StreamString strm;
@@ -437,7 +437,7 @@
{
LogSP log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_UNWIND));
- if (log && IsLogVerbose ())
+ if (log && log->GetVerbose ())
{
StreamString strm;
More information about the lldb-commits
mailing list