Lines Matching +full:setup +full:- +full:x86_64
1 //===-- Driver.cpp ----------------------------------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
67 std::size(NAME##_init) - 1);
132 command_set->push_back(InitialCmdEntry(command, is_file)); in AddInitialCommand()
136 command_set->push_back(InitialCmdEntry(final_path, is_file)); in AddInitialCommand()
139 "file specified in --source (-s) option doesn't exist: '%s'", in AddInitialCommand()
142 command_set->push_back(InitialCmdEntry(command, is_file)); in AddInitialCommand()
165 strm.Printf("command source -s %i '%s'\n", in WriteCommandsForSourcing()
183 // the flags back to "read them in" here, and then if we see the "-n" flag, in ProcessArgs()
210 auto *arg_value = arg->getValue(); in ProcessArgs()
214 "file specified in --core (-c) option doesn't exist: '%s'", in ProcessArgs()
231 lldb::SBDebugger::SetInternalVariable("target.load-cwd-lldbinit", "true", in ProcessArgs()
236 auto *arg_value = arg->getValue(); in ProcessArgs()
246 "file specified in --file (-f) option doesn't exist: '%s'", in ProcessArgs()
253 auto *arg_value = arg->getValue(); in ProcessArgs()
256 "invalid architecture in the -a or --arch option: '%s'", arg_value); in ProcessArgs()
262 auto *arg_value = arg->getValue(); in ProcessArgs()
271 auto *arg_value = arg->getValue(); in ProcessArgs()
280 auto *arg_value = arg->getValue(); in ProcessArgs()
291 auto *arg_value = arg->getValue(); in ProcessArgs()
308 if (auto *arg_value = arg->getValue()) in ProcessArgs()
317 auto *arg_value = arg->getValue(); in ProcessArgs()
318 if (arg->getOption().matches(OPT_source_on_crash)) { in ProcessArgs()
325 if (arg->getOption().matches(OPT_one_line_on_crash)) { in ProcessArgs()
332 if (arg->getOption().matches(OPT_source)) { in ProcessArgs()
339 if (arg->getOption().matches(OPT_source_before_file)) { in ProcessArgs()
346 if (arg->getOption().matches(OPT_one_line)) { in ProcessArgs()
353 if (arg->getOption().matches(OPT_one_line_before_file)) { in ProcessArgs()
365 m_option_data.m_args.push_back(arg->getAsString((args))); in ProcessArgs()
367 // Any argument following -- is an argument for the inferior. in ProcessArgs()
369 for (auto *value : arg->getValues()) in ProcessArgs()
478 // If we're not in --repl mode, add the commands to process the file in MainLoop()
486 commands_stream.Printf("target create --arch=%s %s", arch_name, in MainLoop()
493 commands_stream.Printf(" --core %s", in MainLoop()
499 commands_stream.Printf("settings set -- target.run-args "); in MainLoop()
506 commands_stream.Printf("target create --core %s\n", in MainLoop()
510 "process attach --name %s", in MainLoop()
514 commands_stream.Printf(" --waitfor"); in MainLoop()
519 commands_stream.Printf("process attach --pid %" PRIu64 "\n", in MainLoop()
525 // We're in repl mode and after-file-load commands were specified. in MainLoop()
526 WithColor::warning() << "commands specified to run after file load (via -o " in MainLoop()
527 "or -s) are ignored in REPL mode.\n"; in MainLoop()
566 // non-zero exit status. in MainLoop()
587 // the crash commands, exit with a non-zero exit status. in MainLoop()
636 g_driver->ResizeWindow(window_size.ws_col); in sigwinch_handler()
648 g_driver->GetDebugger().DispatchInputInterrupt(); in sigint_handler()
660 g_driver->GetDebugger().SaveInputTerminalState(); in sigtstp_handler()
669 // Now re-raise the signal. We will immediately suspend... in sigtstp_handler()
678 g_driver->GetDebugger().RestoreInputTerminalState(); in sigtstp_handler()
692 arguments passed to the debugged executable, arguments starting with a - must in printHelp()
693 be passed after --. in printHelp()
695 lldb --arch x86_64 /path/to/program program argument -- --arch armv7 in printHelp()
697 For convenience, passing the executable after -- is also supported. in printHelp()
699 lldb --arch x86_64 -- /path/to/program program argument --arch armv7 in printHelp()
704 lldb -p <pid> in printHelp()
705 lldb -n <process-name> in printHelp()
707 Passing --repl starts lldb in REPL mode. in printHelp()
709 lldb -r in printHelp()
711 Passing --core causes lldb to debug the core file. in printHelp()
713 lldb -c /path/to/core in printHelp()
719 lldb -O 'settings set stop-disassembly-count 20' -o 'run' -o 'bt' in printHelp()
720 lldb -S /source/before/file -s /source/after/file in printHelp()
721 lldb -K /source/before/crash -k /source/after/crash in printHelp()
724 loading the file (via -o or -s) will be ignored.)___"; in printHelp()
733 // Setup LLVM signal handlers and make sure we call llvm_shutdown() on in main()
749 ArrayRef<const char *> arg_arr = ArrayRef(argv + 1, argc - 1); in main()
768 WithColor::error() << "unknown option: " << arg->getSpelling() << '\n'; in main()
773 << " --help' for a complete list of options.\n"; in main()
784 // Setup LLDB signal handlers once the debugger has been initialized. in main()