From: Zachary Turner Date: Sat, 19 Nov 2016 00:50:29 +0000 (+0000) Subject: Fix some accidental Prints of StringRefs that snuck in. X-Git-Tag: llvmorg-4.0.0-rc1~4127 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72f4997cbfb542f33da45cbc01d7a2e1bd26b3c8;p=platform%2Fupstream%2Fllvm.git Fix some accidental Prints of StringRefs that snuck in. llvm-svn: 287412 --- diff --git a/lldb/source/Symbol/Variable.cpp b/lldb/source/Symbol/Variable.cpp index 90e3f1d..e17685e 100644 --- a/lldb/source/Symbol/Variable.cpp +++ b/lldb/source/Symbol/Variable.cpp @@ -393,12 +393,14 @@ Error Variable::GetValuesForVariableExpressionPath( variable_list.Clear(); if (!g_regex.Execute(variable_expr_path, ®ex_match)) { error.SetErrorStringWithFormat( - "unable to extract a variable name from '%s'", variable_expr_path); + "unable to extract a variable name from '%s'", + variable_expr_path.str().c_str()); return error; } if (!regex_match.GetMatchAtIndex(variable_expr_path, 1, variable_name)) { error.SetErrorStringWithFormat( - "unable to extract a variable name from '%s'", variable_expr_path); + "unable to extract a variable name from '%s'", + variable_expr_path.str().c_str()); return error; } if (!callback(baton, variable_name.c_str(), variable_list)) { @@ -434,7 +436,8 @@ Error Variable::GetValuesForVariableExpressionPath( if (!valobj_sp) { error.SetErrorStringWithFormat( "invalid expression path '%s' for variable '%s'", - variable_sub_expr_path, var_sp->GetName().GetCString()); + variable_sub_expr_path.str().c_str(), + var_sp->GetName().GetCString()); variable_list.RemoveVariableAtIndex(i); continue; } diff --git a/lldb/source/Target/TargetList.cpp b/lldb/source/Target/TargetList.cpp index 8d4d238..0637cff 100644 --- a/lldb/source/Target/TargetList.cpp +++ b/lldb/source/Target/TargetList.cpp @@ -327,7 +327,8 @@ Error TargetList::CreateTargetInternal(Debugger &debugger, bool is_dummy_target) { Timer scoped_timer(LLVM_PRETTY_FUNCTION, "TargetList::CreateTarget (file = '%s', arch = '%s')", - user_exe_path, specified_arch.GetArchitectureName()); + user_exe_path.str().c_str(), + specified_arch.GetArchitectureName()); Error error; ArchSpec arch(specified_arch);