reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/lldb/include/lldb/Utility/Args.h
  122   const char *GetArgumentAtIndex(size_t idx) const;

References

tools/lldb/include/lldb/Utility/CompletionRequest.h
  193     return GetParsedLine().GetArgumentAtIndex(GetCursorIndex());
tools/lldb/source/API/SBLaunchInfo.cpp
  135   return m_opaque_sp->GetArguments().GetArgumentAtIndex(idx);
tools/lldb/source/Commands/CommandObjectFrame.cpp
  951         StringConvert::ToUInt32(command.GetArgumentAtIndex(0), 0, 0);
 1038         StringConvert::ToUInt32(command.GetArgumentAtIndex(0), 0, 0);
tools/lldb/source/Commands/CommandObjectLog.cpp
   44     llvm::StringRef channel = request.GetParsedLine().GetArgumentAtIndex(0);
tools/lldb/source/Commands/CommandObjectPlatform.cpp
  170       const char *platform_name = args.GetArgumentAtIndex(0);
  820       const char *remote_file_path = args.GetArgumentAtIndex(0);
  821       const char *local_file_path = args.GetArgumentAtIndex(1);
  885       std::string remote_file_path(args.GetArgumentAtIndex(0));
  918     const char *src = args.GetArgumentAtIndex(0);
  919     const char *dst = args.GetArgumentAtIndex(1);
 1455       partial_name = request.GetParsedLine().GetArgumentAtIndex(opt_arg_pos);
 1688     FileSpec src(args.GetArgumentAtIndex(0));
 1690     FileSpec dst(args.GetArgumentAtIndex(1));
tools/lldb/source/Commands/CommandObjectProcess.cpp
  339       partial_name = request.GetParsedLine().GetArgumentAtIndex(opt_arg_pos);
  823         command.GetArgumentAtIndex(0), plugin_name, debugger,
 1045       const char *signal_name = command.GetArgumentAtIndex(0);
 1054                                      command.GetArgumentAtIndex(0));
 1179         FileSpec output_file(command.GetArgumentAtIndex(0));
 1359             signal_args.GetArgumentAtIndex(i));
 1361           PrintSignal(str, signo, signal_args.GetArgumentAtIndex(i),
tools/lldb/source/Commands/CommandObjectQuit.cpp
   84     llvm::StringRef arg = command.GetArgumentAtIndex(0);
tools/lldb/source/Commands/CommandObjectSettings.cpp
  135       arg = request.GetParsedLine().GetArgumentAtIndex(setting_var_idx);
  147           request.GetParsedLine().GetArgumentAtIndex(request.GetCursorIndex());
  158           request.GetParsedLine().GetArgumentAtIndex(setting_var_idx);
  185     const char *var_name = cmd_args.GetArgumentAtIndex(0);
  538         const char *property_path = args.GetArgumentAtIndex(i);
  635     const char *var_name = cmd_args.GetArgumentAtIndex(0);
  731     const char *var_name = cmd_args.GetArgumentAtIndex(0);
  833     const char *var_name = cmd_args.GetArgumentAtIndex(0);
  932     const char *var_name = cmd_args.GetArgumentAtIndex(0);
 1019     const char *var_name = cmd_args.GetArgumentAtIndex(0);
 1092     const char *var_name = command.GetArgumentAtIndex(0);
tools/lldb/source/Commands/CommandObjectTarget.cpp
  310       const char *file_path = command.GetArgumentAtIndex(0);
  531       const char *target_idx_arg = args.GetArgumentAtIndex(0);
  857         const char *arg = args.GetArgumentAtIndex(idx);
 1068         const char *from = command.GetArgumentAtIndex(i);
 1069         const char *to = command.GetArgumentAtIndex(i + 1);
 1175           command.GetArgumentAtIndex(0), UINT32_MAX, 0, &success);
 1180             command.GetArgumentAtIndex(0));
 1190         const char *from = command.GetArgumentAtIndex(i);
 1191         const char *to = command.GetArgumentAtIndex(i + 1);
 1279     ConstString orig(command.GetArgumentAtIndex(0));
 1900            (arg_cstr = command.GetArgumentAtIndex(arg_idx)) != nullptr;
 2036            (arg_cstr = command.GetArgumentAtIndex(arg_idx)) != nullptr;
 2123            (arg_cstr = command.GetArgumentAtIndex(arg_idx)) != nullptr;
 2282            (arg_cstr = command.GetArgumentAtIndex(arg_idx)) != nullptr;
 2349            (arg_cstr = command.GetArgumentAtIndex(arg_idx)) != nullptr;
 2730                   const char *sect_name = args.GetArgumentAtIndex(i);
 2731                   const char *load_addr_cstr = args.GetArgumentAtIndex(i + 1);
 3024           const char *arg_cstr = command.GetArgumentAtIndex(i);
 3889       for (i = 0; (arg_cstr = command.GetArgumentAtIndex(i)) != nullptr &&
 4738             command.GetArgumentAtIndex(i), 0, 0, &success);
 4741                                        command.GetArgumentAtIndex(i));
 4748                                        command.GetArgumentAtIndex(i));
 4785             command.GetArgumentAtIndex(i), 0, 0, &success);
 4788                                        command.GetArgumentAtIndex(i));
 4795                                        command.GetArgumentAtIndex(i));
tools/lldb/source/Commands/CommandObjectThread.cpp
   96       all_threads = ::strcmp(command.GetArgumentAtIndex(0), "all") == 0;
   97       m_unique_stacks = ::strcmp(command.GetArgumentAtIndex(0), "unique") == 0;
  121             command.GetArgumentAtIndex(i), 0, 0, &success);
  124                                        command.GetArgumentAtIndex(i));
  134                                        command.GetArgumentAtIndex(i));
  580       const char *thread_idx_cstr = command.GetArgumentAtIndex(0);
 1111           line_number = StringConvert::ToUInt32(command.GetArgumentAtIndex(i),
 1115                                          command.GetArgumentAtIndex(i));
 1338         StringConvert::ToUInt32(command.GetArgumentAtIndex(0), 0, 0);
 1344                                    command.GetArgumentAtIndex(0));
 1959         StringConvert::ToUInt32(args.GetArgumentAtIndex(0), 0, 0, &success);
 1963           args.GetArgumentAtIndex(0));
 1981           args.GetArgumentAtIndex(0));
tools/lldb/source/Commands/CommandObjectType.cpp
  795     const char *typeA = command.GetArgumentAtIndex(0);
  910         const char *cat_name = command.GetArgumentAtIndex(0);
 1049       const char *arg = command.GetArgumentAtIndex(0);
 1883     if (argc == 1 && strcmp(command.GetArgumentAtIndex(0), "*") == 0) {
 1887         const char *typeA = command.GetArgumentAtIndex(i);
 1949       const char *typeA = command.GetArgumentAtIndex(i);
 2050     if (argc == 1 && strcmp(command.GetArgumentAtIndex(0), "*") == 0) {
 2055         const char *typeA = command.GetArgumentAtIndex(i);
 2103       const char *arg = command.GetArgumentAtIndex(0);
tools/lldb/source/Commands/CommandObjectWatchpoint.cpp
  838         command.GetArgumentAtIndex(0), eNoDynamicValues, expr_path_options,
  848           command.GetArgumentAtIndex(0),
  876                                        command.GetArgumentAtIndex(0));
  888       wp->SetWatchSpec(command.GetArgumentAtIndex(0));
  904           addr, (uint64_t)size, command.GetArgumentAtIndex(0));
tools/lldb/source/Interpreter/CommandInterpreter.cpp
 1012     CommandObjectSP cmd_obj_sp = GetCommandSP(llvm::StringRef(cmd_words.GetArgumentAtIndex(0)),
 1022               cmd_obj_sp->GetSubcommandSP(cmd_words.GetArgumentAtIndex(j));
 1385       (alias_name_str != cmd_args.GetArgumentAtIndex(0)))
 1424       size_t strpos = raw_input_string.find(cmd_args.GetArgumentAtIndex(index));
 1427             strpos, strlen(cmd_args.GetArgumentAtIndex(index)));
 1428       result_str.Printf("%s", cmd_args.GetArgumentAtIndex(index));
 1774         GetCommandObject(request.GetParsedLine().GetArgumentAtIndex(0),
 1779         strcmp(request.GetParsedLine().GetArgumentAtIndex(0),
 1796         GetCommandObject(request.GetParsedLine().GetArgumentAtIndex(0));
 1808   llvm::StringRef first_arg = request.GetParsedLine().GetArgumentAtIndex(0);
 1878   if (alias_name_str != cmd_args.GetArgumentAtIndex(0))
 1944             raw_input_string.find(cmd_args.GetArgumentAtIndex(index));
 1947               strpos, strlen(cmd_args.GetArgumentAtIndex(index)));
 1951           new_args.AppendArgument(cmd_args.GetArgumentAtIndex(index));
 1955                      cmd_args.GetArgumentAtIndex(index));
tools/lldb/source/Interpreter/OptionValueArray.cpp
  170           StringConvert::ToUInt32(args.GetArgumentAtIndex(0), UINT32_MAX);
  181               args.GetArgumentAtIndex(i), m_type_mask, error));
  210             StringConvert::ToSInt32(args.GetArgumentAtIndex(i), INT32_MAX);
  238             args.GetArgumentAtIndex(i));
  252           StringConvert::ToUInt32(args.GetArgumentAtIndex(0), UINT32_MAX);
  261               args.GetArgumentAtIndex(i), m_type_mask, error));
  289           args.GetArgumentAtIndex(i), m_type_mask, error));
tools/lldb/source/Interpreter/OptionValueDictionary.cpp
  180         ConstString key(args.GetArgumentAtIndex(i));
tools/lldb/source/Interpreter/OptionValueFileSpecList.cpp
   61           StringConvert::ToUInt32(args.GetArgumentAtIndex(0), UINT32_MAX);
   69           FileSpec file(args.GetArgumentAtIndex(i));
   91         FileSpec file(args.GetArgumentAtIndex(i));
  105           StringConvert::ToUInt32(args.GetArgumentAtIndex(0), UINT32_MAX);
  115           FileSpec file(args.GetArgumentAtIndex(i));
  133             StringConvert::ToSInt32(args.GetArgumentAtIndex(i), INT32_MAX);
  153             args.GetArgumentAtIndex(i));
tools/lldb/source/Interpreter/OptionValuePathMappings.cpp
   56           StringConvert::ToUInt32(args.GetArgumentAtIndex(0), UINT32_MAX);
   65           const char *orginal_path = args.GetArgumentAtIndex(i);
   66           const char *replace_path = args.GetArgumentAtIndex(i + 1);
  103         const char *orginal_path = args.GetArgumentAtIndex(i);
  104         const char *replace_path = args.GetArgumentAtIndex(i + 1);
  128           StringConvert::ToUInt32(args.GetArgumentAtIndex(0), UINT32_MAX);
  139           const char *orginal_path = args.GetArgumentAtIndex(i);
  140           const char *replace_path = args.GetArgumentAtIndex(i + 1);
  168             StringConvert::ToSInt32(args.GetArgumentAtIndex(i), INT32_MAX);
  188             args.GetArgumentAtIndex(i));
tools/lldb/source/Interpreter/Options.cpp
  794             request.GetParsedLine().GetArgumentAtIndex(cur_arg_pos);
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
  586           llvm::StringRef::withNullAsEmpty(command.GetArgumentAtIndex(0))));
  711           const char *arg_str = command.GetArgumentAtIndex(i);
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
 4191     auto name = command.GetArgumentAtIndex(0);
 4294     auto name = command.GetArgumentAtIndex(0);
 4344     const char *argument = command.GetArgumentAtIndex(0);
 4569     const char *id_cstr = command.GetArgumentAtIndex(0);
 4718     const char *id_cstr = command.GetArgumentAtIndex(0);
 4729     const char *path = command.GetArgumentAtIndex(1);
 4769     const char *id_cstr = command.GetArgumentAtIndex(0);
 4780     const char *path = command.GetArgumentAtIndex(1);
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptScriptGroup.cpp
   58       const auto arg = command.GetArgumentAtIndex(i);
tools/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp
  167   const char *url = args.GetArgumentAtIndex(0);
tools/lldb/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp
  114   const char *url = args.GetArgumentAtIndex(0);
tools/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
  295       const char *url = args.GetArgumentAtIndex(0);
tools/lldb/source/Plugins/Process/Utility/UnwindLLDB.cpp
   35       const char *func_name = args.GetArgumentAtIndex(i);
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
  780     arg = launch_args.GetArgumentAtIndex(0);
  786     for (uint32_t i = 1; (arg = launch_args.GetArgumentAtIndex(i)) != nullptr;
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
  278          m_process_launch_info.GetArguments().GetArgumentAtIndex(0),
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp
  441             m_process_launch_info.GetArguments().GetArgumentAtIndex(0));
  446          m_process_launch_info.GetArguments().GetArgumentAtIndex(0),
tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
 1044         GetExtraStartupCommands().GetArgumentAtIndex(idx), response, false);
 5245       const char *packet_size = command.GetArgumentAtIndex(0);
 5287         const char *packet_cstr = command.GetArgumentAtIndex(0);
tools/lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
 1003     const char *first_arg = args.GetArgumentAtIndex(0);
tools/lldb/source/Utility/CompletionRequest.cpp
   33         strlen(GetParsedLine().GetArgumentAtIndex(m_cursor_index));
tools/lldb/source/Utility/ProcessInfo.cpp
   86     const char *first_arg = m_arguments.GetArgumentAtIndex(0);
  102     const char *first_arg = m_arguments.GetArgumentAtIndex(0);
  128       const char *arg = m_arguments.GetArgumentAtIndex(i);
  234         s.PutCString(m_arguments.GetArgumentAtIndex(i));
tools/lldb/tools/lldb-server/LLDBServerUtilities.cpp
   50     std::string channel(channel_then_categories.GetArgumentAtIndex(0));
tools/lldb/unittests/Utility/ArgsTest.cpp
   23   EXPECT_STREQ(args.GetArgumentAtIndex(0), "arg");
   30   EXPECT_STREQ(args.GetArgumentAtIndex(0), "arg with space");
   37   EXPECT_STREQ(args.GetArgumentAtIndex(0), "arg with space");
   44   EXPECT_STREQ(args.GetArgumentAtIndex(0), "arg\\");
   51   EXPECT_STREQ(args.GetArgumentAtIndex(0), "arg\\");
   58   EXPECT_STREQ(args.GetArgumentAtIndex(0), "arg\\y");
   65   EXPECT_STREQ(args.GetArgumentAtIndex(0), "arg\\y");
   72   EXPECT_STREQ(args.GetArgumentAtIndex(0), "this");
   73   EXPECT_STREQ(args.GetArgumentAtIndex(1), "has");
   74   EXPECT_STREQ(args.GetArgumentAtIndex(2), "multiple");
   75   EXPECT_STREQ(args.GetArgumentAtIndex(3), "args");
   84   EXPECT_STREQ(args.GetArgumentAtIndex(0), "arg");
   93   EXPECT_STREQ(args.GetArgumentAtIndex(0), "first_arg");
   94   EXPECT_STREQ(args.GetArgumentAtIndex(1), "second_arg");
  106   EXPECT_STREQ("1", args.GetArgumentAtIndex(0));
  107   EXPECT_STREQ("1.5", args.GetArgumentAtIndex(1));
  108   EXPECT_STREQ("2", args.GetArgumentAtIndex(2));
  109   EXPECT_STREQ("3", args.GetArgumentAtIndex(3));
  110   EXPECT_STREQ("3.5", args.GetArgumentAtIndex(4));
  175   EXPECT_STREQ("a'b", args.GetArgumentAtIndex(0));
  183   EXPECT_STREQ("a b c", args.GetArgumentAtIndex(0));
  196   EXPECT_STREQ("1", args.GetArgumentAtIndex(0));
  197   EXPECT_STREQ("2", args.GetArgumentAtIndex(1));
  206   EXPECT_STREQ("1", args.GetArgumentAtIndex(0));
  207   EXPECT_STREQ("2", args.GetArgumentAtIndex(1));
  208   EXPECT_STREQ("3", args.GetArgumentAtIndex(2));
  209   EXPECT_STREQ("4", args.GetArgumentAtIndex(3));
  251   EXPECT_STREQ(args.GetArgumentAtIndex(0), "f");
  259   EXPECT_STREQ(args.GetArgumentAtIndex(0), "bar");
  267   EXPECT_STREQ(args.GetArgumentAtIndex(0), "baar");
  275   EXPECT_STREQ(args.GetArgumentAtIndex(2), "b");
  283   EXPECT_STREQ(args.GetArgumentAtIndex(2), "b");
tools/lldb/unittests/Utility/CompletionRequestTest.cpp
  101   EXPECT_STREQ(request.GetParsedLine().GetArgumentAtIndex(1), "b");