[Lldb-commits] [lldb] r221810 - Use PRIx64 when printing addr_t's. Don't need to force full-width 0 padding
Jason Molenda
jmolenda at apple.com
Wed Nov 12 11:51:43 PST 2014
Author: jmolenda
Date: Wed Nov 12 13:51:43 2014
New Revision: 221810
URL: http://llvm.org/viewvc/llvm-project?rev=221810&view=rev
Log:
Use PRIx64 when printing addr_t's. Don't need to force full-width 0 padding
with addresses that aren't designed to be column-aligned across multiple lines.
Modified:
lldb/trunk/source/Plugins/Process/Utility/RegisterContextLLDB.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=221810&r1=221809&r2=221810&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/RegisterContextLLDB.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Utility/RegisterContextLLDB.cpp Wed Nov 12 13:51:43 2014
@@ -600,7 +600,7 @@ RegisterContextLLDB::InitializeNonZeroth
cfa_offset = active_row->GetCFAOffset ();
- UnwindLogMsg ("m_cfa = 0x%16.16" PRIx64 " (cfa_offset = %i)", m_cfa, cfa_offset);
+ UnwindLogMsg ("m_cfa = 0x%" PRIx64 " (cfa_offset = %i)", m_cfa, cfa_offset);
// A couple of sanity checks..
if (m_cfa == LLDB_INVALID_ADDRESS || m_cfa == (addr_t)cfa_offset || m_cfa == (addr_t)cfa_offset + 1)
@@ -1503,7 +1503,7 @@ RegisterContextLLDB::ReadCFAValueForRow
reg_info->byte_size,
reg_value);
value = reg_value.GetAsUInt64();
- UnwindLogMsg("dereferenced address: 0x%16.16" PRIx64 " yields: %lx", tmp, value);
+ UnwindLogMsg("dereferenced address: 0x%" PRIx64 " yields: %" PRIx64, tmp, value);
return error.Success();
}
value = value + row->GetCFAOffset ();
More information about the lldb-commits
mailing list