summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Debugger.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-01-18 21:56:18 +0000
committerGreg Clayton <gclayton@apple.com>2012-01-18 21:56:18 +0000
commit5b6889b1f67c23d6e24211e92b80be37d3d15274 (patch)
tree75dba8ed2cddfa8e0aae16a4179cfc7749df02c2 /lldb/source/Core/Debugger.cpp
parentcb80eb2e7577d539363c0b4ec9a4ca456af430be (diff)
downloadbcm5719-llvm-5b6889b1f67c23d6e24211e92b80be37d3d15274.tar.gz
bcm5719-llvm-5b6889b1f67c23d6e24211e92b80be37d3d15274.zip
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
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r--lldb/source/Core/Debugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp
index 72449efb4c3..8b5e8d42bac 100644
--- a/lldb/source/Core/Debugger.cpp
+++ b/lldb/source/Core/Debugger.cpp
@@ -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));
OpenPOWER on IntegriCloud