Lines Matching refs:options

53 	"Usage: %s [ <options> ]\n"
54 " %s [ <options> ] <command line>\n"
55 " %s [ <options> ] --team <team>\n"
56 " %s [ <options> ] --thread <thread>\n"
57 " %s [ <options> ] --core <file>\n"
116 const Options& options)
118 _debuggerOptions.commandLineArgc = options.commandLineArgc;
119 _debuggerOptions.commandLineArgv = options.commandLineArgv;
120 _debuggerOptions.team = options.team;
121 _debuggerOptions.thread = options.thread;
122 _debuggerOptions.coreFilePath = options.coreFilePath;
124 if (options.coreFilePath != NULL)
126 else if (options.commandLineArgc != 0)
136 Options& options)
159 options.useCLI = true;
163 options.coreFilePath = optarg;
174 options.saveReport = true;
175 options.reportPath = optarg;
181 options.team = strtol(optarg, NULL, 0);
182 if (options.team <= 0) {
192 options.thread = strtol(optarg, NULL, 0);
193 if (options.thread <= 0) {
210 options.commandLineArgc = argc - optind;
211 options.commandLineArgv = argv + optind;
215 if (options.team > 0)
217 if (options.thread > 0)
219 if (options.commandLineArgc > 0)
260 status_t _HandleOptions(const Options& options);
278 bool Run(const Options& options);
286 bool Run(const Options& options);
428 TeamDebuggerOptions options;
429 options.requestType = TEAM_DEBUGGER_REQUEST_ATTACH;
430 options.settingsManager = &fSettingsManager;
431 options.team = teamID;
432 options.userInterface = new(std::nothrow) GraphicalUserInterface;
433 if (options.userInterface == NULL) {
438 BReference<UserInterface> uiReference(options.userInterface, true);
439 status_t error = interface->StartTeamDebugger(options);
482 Options options;
483 options.coreFilePath = path.Path();
484 _HandleOptions(options);
507 Options options;
508 if (!parse_arguments(argc, argv, true, options)) {
513 _HandleOptions(options);
535 Options options;
536 options.coreFilePath = path.Path();
537 _HandleOptions(options);
630 TeamDebuggerOptions options;
631 options.requestType = TEAM_DEBUGGER_REQUEST_CREATE;
632 options.settingsManager = &fSettingsManager;
633 options.userInterface = new(std::nothrow) GraphicalUserInterface;
634 if (options.userInterface == NULL)
636 BReference<UserInterface> uiReference(options.userInterface, true);
637 options.commandLineArgc = argVector.ArgumentCount();
638 if (options.commandLineArgc <= 0)
643 options.commandLineArgv = argv;
646 status_t error = interface->StartTeamDebugger(options);
656 Debugger::_HandleOptions(const Options& options)
659 set_debugger_options_from_options(debuggerOptions, options);
687 CliDebugger::Run(const Options& options)
689 if (options.commandLineArgc == 0
690 && options.team < 0
691 && options.thread < 0
692 && options.coreFilePath == NULL) {
742 set_debugger_options_from_options(debuggerOptions, options);
777 ReportDebugger::Run(const Options& options)
789 = new(std::nothrow) ReportUserInterface(options.thread, options.reportPath);
800 set_debugger_options_from_options(debuggerOptions, options);
831 Options options;
832 parse_arguments(argc, argv, false, options);
834 if (options.useCLI) {
836 return debugger.Run(options) ? 0 : 1;
837 } else if (options.saveReport) {
839 return debugger.Run(options) ? 0 : 1;