Home | History | Annotate | Download | only in gdbserver

Lines Matching defs:next_arg

4149   char **next_arg = &argv[1];
4172 while (*next_arg != NULL && **next_arg == '-')
4174 if (strcmp (*next_arg, "--version") == 0)
4179 else if (strcmp (*next_arg, "--help") == 0)
4184 else if (strcmp (*next_arg, "--attach") == 0)
4186 else if (strcmp (*next_arg, "--multi") == 0)
4188 else if (strcmp (*next_arg, "--wrapper") == 0)
4192 next_arg++;
4194 tmp = next_arg;
4195 while (*next_arg != NULL && strcmp (*next_arg, "--") != 0)
4197 wrapper_argv += *next_arg;
4199 next_arg++;
4208 if (next_arg == tmp || *next_arg == NULL)
4215 *next_arg = NULL;
4217 else if (startswith (*next_arg, "--debug="))
4221 parse_debug_options ((*next_arg) + sizeof ("--debug=") - 1);
4230 else if (strcmp (*next_arg, "--debug") == 0)
4243 else if (startswith (*next_arg, "--debug-format="))
4246 = parse_debug_format_options ((*next_arg)
4255 else if (startswith (*next_arg, "--debug-file="))
4256 debug_set_output ((*next_arg) + sizeof ("--debug-file=") -1);
4257 else if (strcmp (*next_arg, "--disable-packet") == 0)
4262 else if (startswith (*next_arg, "--disable-packet="))
4264 char *packets = *next_arg += sizeof ("--disable-packet=") - 1;
4296 else if (strcmp (*next_arg, "-") == 0)
4305 next_arg++;
4308 else if (strcmp (*next_arg, "--disable-randomization") == 0)
4310 else if (strcmp (*next_arg, "--no-disable-randomization") == 0)
4312 else if (strcmp (*next_arg, "--startup-with-shell") == 0)
4314 else if (strcmp (*next_arg, "--no-startup-with-shell") == 0)
4316 else if (strcmp (*next_arg, "--once") == 0)
4318 else if (strcmp (*next_arg, "--selftest") == 0)
4320 else if (startswith (*next_arg, "--selftest="))
4325 const char *filter = *next_arg + strlen ("--selftest=");
4337 fprintf (stderr, "Unknown argument: %s\n", *next_arg);
4341 next_arg++;
4347 port = *next_arg;
4348 next_arg++;
4350 if ((port == NULL || (!attach && !multi_mode && *next_arg == NULL))
4375 if (*next_arg != NULL && strcmp (*next_arg, "--attach") == 0)
4378 next_arg++;
4382 && (*next_arg == NULL
4383 || (*next_arg)[0] == '\0'
4384 || (pid = strtoul (*next_arg, &arg_end, 0)) == 0
4386 || next_arg[1] != NULL))
4416 if (pid == 0 && *next_arg != NULL)
4420 n = argc - (next_arg - argv);
4421 program_path.set (next_arg[0]);
4423 program_args.push_back (xstrdup (next_arg[i]));