[Lldb-commits] [lldb] r148425 - /lldb/trunk/source/Core/Debugger.cpp

Greg Clayton gclayton at apple.com
Wed Jan 18 13:56:18 PST 2012


Author: gclayton
Date: Wed Jan 18 15:56:18 2012
New Revision: 148425

URL: http://llvm.org/viewvc/llvm-project?rev=148425&view=rev
Log:
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").


Modified:
    lldb/trunk/source/Core/Debugger.cpp

Modified: lldb/trunk/source/Core/Debugger.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Debugger.cpp?rev=148425&r1=148424&r2=148425&view=diff
==============================================================================
--- lldb/trunk/source/Core/Debugger.cpp (original)
+++ lldb/trunk/source/Core/Debugger.cpp Wed Jan 18 15:56:18 2012
@@ -1957,7 +1957,7 @@
                                                         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));





More information about the lldb-commits mailing list