From 113f2d5289cb6a1a30376da9d320167b22d0fad1 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Fri, 16 Sep 2011 01:32:10 +0000 Subject: Tighten up the 'log enable lldb unwind' printing for the arm emulate instruction unwinder so you can leave it on by default and not be overwhelmed. Set verbose mode to get the full story on how the unwindplans were created. llvm-svn: 139897 --- .../InstEmulation/UnwindAssemblyInstEmulation.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp') diff --git a/lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp b/lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp index cbc61c2ce88..77be2511c3e 100644 --- a/lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp +++ b/lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp @@ -104,7 +104,7 @@ UnwindAssemblyInstEmulation::GetNonCallSiteUnwindPlanFromAssembly (AddressRange& if (inst) { - if (log) + if (log && IsLogVerbose ()) { StreamString strm; inst->Dump(&strm, inst_list.GetMaxOpcocdeByteSize (), show_address, show_bytes, &exe_ctx, raw); @@ -130,7 +130,7 @@ UnwindAssemblyInstEmulation::GetNonCallSiteUnwindPlanFromAssembly (AddressRange& } } - if (log) + if (log && IsLogVerbose ()) { StreamString strm; lldb::addr_t base_addr = range.GetBaseAddress().GetLoadAddress(&thread.GetProcess().GetTarget()); @@ -264,7 +264,7 @@ UnwindAssemblyInstEmulation::ReadMemory (EmulateInstruction *instruction, { LogSP log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_UNWIND)); - if (log) + if (log && IsLogVerbose ()) { StreamString strm; strm.Printf ("UnwindAssemblyInstEmulation::ReadMemory (addr = 0x%16.16llx, dst = %p, dst_len = %zu, context = ", @@ -304,7 +304,7 @@ UnwindAssemblyInstEmulation::WriteMemory (EmulateInstruction *instruction, LogSP log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_UNWIND)); - if (log) + if (log && IsLogVerbose ()) { StreamString strm; @@ -407,7 +407,7 @@ UnwindAssemblyInstEmulation::ReadRegister (EmulateInstruction *instruction, LogSP log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_UNWIND)); - if (log) + if (log && IsLogVerbose ()) { StreamString strm; @@ -437,7 +437,7 @@ UnwindAssemblyInstEmulation::WriteRegister (EmulateInstruction *instruction, { LogSP log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_UNWIND)); - if (log) + if (log && IsLogVerbose ()) { StreamString strm; -- cgit v1.2.3