diff options
Diffstat (limited to 'source/Commands/CommandObjectArgs.cpp')
-rw-r--r-- | source/Commands/CommandObjectArgs.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/Commands/CommandObjectArgs.cpp b/source/Commands/CommandObjectArgs.cpp index d98a246e9684..8042aa9d81db 100644 --- a/source/Commands/CommandObjectArgs.cpp +++ b/source/Commands/CommandObjectArgs.cpp @@ -17,6 +17,7 @@ #include "lldb/Core/Module.h" #include "lldb/Core/Value.h" #include "lldb/Host/Host.h" +#include "lldb/Host/OptionParser.h" #include "lldb/Interpreter/Args.h" #include "lldb/Interpreter/CommandInterpreter.h" #include "lldb/Interpreter/CommandReturnObject.h" @@ -223,9 +224,9 @@ bool CommandObjectArgs::DoExecute(Args &args, CommandReturnObject &result) { result.GetOutputStream().Printf("Arguments : \n"); for (auto entry : llvm::enumerate(args.entries())) { - result.GetOutputStream().Printf("%" PRIu64 " (%s): ", (uint64_t)entry.Index, - entry.Value.c_str()); - value_list.GetValueAtIndex(entry.Index)->Dump(&result.GetOutputStream()); + result.GetOutputStream().Printf( + "%" PRIu64 " (%s): ", (uint64_t)entry.index(), entry.value().c_str()); + value_list.GetValueAtIndex(entry.index())->Dump(&result.GetOutputStream()); result.GetOutputStream().Printf("\n"); } |