Fixed an issue in the debugger format strings that include "${function.name-with-args}"

where we grabbed the variable list size from the wrong list (we needed it
from "args" and we were getting it from "variable_list_sp").

llvm-svn: 148425
This commit is contained in:
Greg Clayton
2012-01-18 21:56:18 +00:00
parent cb80eb2e75
commit 5b6889b1f6

View File

@@ -1957,7 +1957,7 @@ Debugger::FormatPrompt
s.PutCString (cstr);
s.PutChar ('(');
}
const size_t num_args = variable_list_sp->GetSize();
const size_t num_args = args.GetSize();
for (size_t arg_idx = 0; arg_idx < num_args; ++arg_idx)
{
VariableSP var_sp (args.GetVariableAtIndex (arg_idx));