diff options
Diffstat (limited to 'lldb/source/Core/CXXFormatterFunctions.cpp')
-rw-r--r-- | lldb/source/Core/CXXFormatterFunctions.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lldb/source/Core/CXXFormatterFunctions.cpp b/lldb/source/Core/CXXFormatterFunctions.cpp index 46070888b98..c458cf2e2ff 100644 --- a/lldb/source/Core/CXXFormatterFunctions.cpp +++ b/lldb/source/Core/CXXFormatterFunctions.cpp @@ -78,7 +78,7 @@ lldb_private::formatters::CallSelectorOnObject (ValueObject &valobj, StreamString expr_path_stream; valobj.GetExpressionPath(expr_path_stream, false); StreamString expr; - expr.Printf("(%s)[%s %s:%lld]",return_type,expr_path_stream.GetData(),selector,index); + expr.Printf("(%s)[%s %s:%" PRId64 "]",return_type,expr_path_stream.GetData(),selector,index); ExecutionContext exe_ctx (valobj.GetExecutionContextRef()); lldb::ValueObjectSP result_sp; Target* target = exe_ctx.GetTargetPtr(); @@ -200,7 +200,7 @@ lldb_private::formatters::NSDictionarySummaryProvider (ValueObject& valobj, Stre return false; } - stream.Printf("%s%llu %s%s", + stream.Printf("%s%" PRIu64 " %s%s", (name_entries ? "@\"" : ""), value, (name_entries ? (value == 1 ? "entry" : "entries") : (value == 1 ? "key/value pair" : "key/value pairs")), @@ -266,7 +266,7 @@ lldb_private::formatters::NSArraySummaryProvider (ValueObject& valobj, Stream& s return false; } - stream.Printf("@\"%llu object%s\"", + stream.Printf("@\"%" PRIu64 " object%s\"", value, value == 1 ? "" : "s"); return true; @@ -319,7 +319,7 @@ lldb_private::formatters::NSDataSummaryProvider (ValueObject& valobj, Stream& st return false; } - stream.Printf("%s%llu byte%s%s", + stream.Printf("%s%" PRIu64 " byte%s%s", (needs_at ? "@\"" : ""), value, (value > 1 ? "s" : ""), @@ -377,10 +377,10 @@ lldb_private::formatters::NSNumberSummaryProvider (ValueObject& valobj, Stream& stream.Printf("(int)%d",(int)value); break; case 12: - stream.Printf("(long)%lld",value); + stream.Printf("(long)%" PRId64,value); break; default: - stream.Printf("absurd value:(info=%llu, value=%llu",i_bits,value); + stream.Printf("absurd value:(info=%" PRIu64 ", value=%" PRIu64,i_bits,value); break; } return true; @@ -419,7 +419,7 @@ lldb_private::formatters::NSNumberSummaryProvider (ValueObject& valobj, Stream& value = process_sp->ReadUnsignedIntegerFromMemory(data_location, 8, 0, error); if (error.Fail()) return false; - stream.Printf("(long)%lld",value); + stream.Printf("(long)%" PRId64,value); break; case 5: // 0B0101 { @@ -971,7 +971,7 @@ lldb_private::formatters::NSArrayISyntheticFrontEnd::GetChildAtIndex (uint32_t i if (error.Fail()) return lldb::ValueObjectSP(); StreamString expr; - expr.Printf("(id)%llu",object_at_idx); + expr.Printf("(id)%" PRIu64,object_at_idx); StreamString idx_name; idx_name.Printf("[%d]",idx); lldb::ValueObjectSP retval_sp = ValueObject::CreateValueObjectFromExpression(idx_name.GetData(), expr.GetData(), m_exe_ctx_ref); @@ -1304,7 +1304,7 @@ lldb_private::formatters::NSDictionaryISyntheticFrontEnd::GetChildAtIndex (uint3 { // make the new ValueObject StreamString expr; - expr.Printf("struct __lldb_autogen_nspair { id key; id value; } _lldb_valgen_item; _lldb_valgen_item.key = (id)%llu ; _lldb_valgen_item.value = (id)%llu; _lldb_valgen_item;",dict_item.key_ptr,dict_item.val_ptr); + expr.Printf("struct __lldb_autogen_nspair { id key; id value; } _lldb_valgen_item; _lldb_valgen_item.key = (id)%" PRIu64 " ; _lldb_valgen_item.value = (id)%" PRIu64 "; _lldb_valgen_item;",dict_item.key_ptr,dict_item.val_ptr); StreamString idx_name; idx_name.Printf("[%d]",idx); dict_item.valobj_sp = ValueObject::CreateValueObjectFromExpression(idx_name.GetData(), expr.GetData(), m_exe_ctx_ref); @@ -1456,7 +1456,7 @@ lldb_private::formatters::NSDictionaryMSyntheticFrontEnd::GetChildAtIndex (uint3 { // make the new ValueObject StreamString expr; - expr.Printf("struct __lldb_autogen_nspair { id key; id value; } _lldb_valgen_item; _lldb_valgen_item.key = (id)%llu ; _lldb_valgen_item.value = (id)%llu; _lldb_valgen_item;",dict_item.key_ptr,dict_item.val_ptr); + expr.Printf("struct __lldb_autogen_nspair { id key; id value; } _lldb_valgen_item; _lldb_valgen_item.key = (id)%" PRIu64 " ; _lldb_valgen_item.value = (id)%" PRIu64 "; _lldb_valgen_item;",dict_item.key_ptr,dict_item.val_ptr); StreamString idx_name; idx_name.Printf("[%d]",idx); dict_item.valobj_sp = ValueObject::CreateValueObjectFromExpression(idx_name.GetData(), expr.GetData(), m_exe_ctx_ref); |