/llvm-project/lldb/test/Shell/Commands/ |
H A D | command-disassemble.s | 4 # RUN: %lldb %t -o "settings set interpreter.stop-command-source-on-error false" \ 6 # RUN: -s %S/Inputs/command-disassemble.lldbinit -o exit 2>&1 | FileCheck %s 17 # CHECK-NEXT: command-disassemble.s.tmp`foo: 18 # CHECK-NEXT: command-disassemble.s.tmp[0x0] <+0>: jmp 0x2 ; <+2> 19 # CHECK-NEXT: command-disassemble.s.tmp[0x2] <+2>: int $0x11 20 # CHECK-NEXT: command-disassemble.s.tmp[0x4] <+4>: int $0x12 21 # CHECK-NEXT: command-disassemble.s.tmp[0x6] <+6>: int $0x13 22 # CHECK-NEXT: command-disassemble.s.tmp[0x8] <+8>: int $0x14 23 # CHECK-NEXT: command-disassemble.s.tmp[0xa] <+10>: int $0x15 24 # CHECK-NEXT: command [all...] |
H A D | command-source.test | 1 # Check that stop command source on error. 3 # RUN: not %lldb -x -b -o "command source -e 1 %s" 2>&1 | FileCheck %s --check-prefix STOP 4 # RUN: %lldb -x -b -o "command source -e 0 %s" 2>&1 | FileCheck %s --check-prefix CONTINUE 5 # RUN: not %lldb -x -b -o 'settings set interpreter.stop-command-source-on-error true' -o "command … 6 # RUN: %lldb -x -b -o 'settings set interpreter.stop-command-source-on-error false' -o "command sou…
|
/llvm-project/lldb/test/API/commands/command/script/ |
H A D | callables.py | 7 def check(debugger, command, context, result, internal_dict): argument 10 or not isinstance(command, str) 23 def v5foobar(debugger, command, context, result, internal_dict, *args): argument 24 check(debugger, command, context, result, internal_dict) 27 def foobar(debugger, command, context, result, internal_dict): argument 28 check(debugger, command, context, result, internal_dict) 31 def foobar4(debugger, command, result, internal_dict): argument 32 check(debugger, command, None, result, internal_dict) 37 def sfoobar(debugger, command, context, result, internal_dict): argument 38 check(debugger, command, context, result, internal_dict) [all …]
|
H A D | py_import | 5 command script add welcome --class welcome.WelcomeCommand 6 command script add targetname --class welcome.TargetnameCommand 7 command script add longwait --function welcome.print_wait_impl 8 command script import mysto.py --allow-reload 9 command script add tell_sync --function welcome.check_for_synchro --synchronicity sync 10 command script add tell_async --function welcome.check_for_synchro --synchronicity async 11 command script add tell_curr --function welcome.check_for_synchro --synchronicity curr 12 command script add takes_exe_ctx --function welcome.takes_exe_ctx 13 command script import decorated.py 16 command script import callables.py [all …]
|
/llvm-project/lldb/source/Utility/ |
H A D | Args.cpp | 67 // Trims all whitespace that can separate command line arguments from the left 77 // command string, processing quotes and backslashes in a shell-like manner. 82 ParseSingleArgument(llvm::StringRef command) { in ParseSingleArgument() 90 // Since we can have multiple quotes that form a single command in a command in ParseSingleArgument() 99 size_t regular = command.find_first_of(" \t\r\"'`\\"); in ParseSingleArgument() 100 arg += command.substr(0, regular); in ParseSingleArgument() 101 command = command.substr(regular); in ParseSingleArgument() 103 if (command in ParseSingleArgument() 80 ParseSingleArgument(llvm::StringRef command) ParseSingleArgument() argument 168 Args(llvm::StringRef command) Args() argument 247 SetCommandString(llvm::StringRef command) SetCommandString() argument [all...] |
/llvm-project/lldb/test/API/functionalities/thread_plan/ |
H A D | TestThreadPlanCommands.py | 22 self, command, active_plans=[], completed_plans=[], discarded_plans=[] argument 34 interp.HandleCommand(command, result) 35 print("Command: %s" % (command)) 42 % (command, result.GetError()), 48 "command: '%s' failed: '%s'" % (command, result.GetError()), 134 command = "thread plan list %d" % (current_id) 135 self.check_list_output(command, ["wrap_step_over.WrapStepOver"], []) 138 command = "thread plan list -i %d" % (current_id) 139 self.check_list_output(command, ["WrapStepOver", "Stepping over line main.c"]) 142 command = "thread plan list -t %d" % (current_tid) [all …]
|
/llvm-project/lldb/packages/Python/lldbsuite/test/tools/intelpt/ |
H A D | intelpt_testcase.py | 106 command = "thread trace start" 108 command += " " + str(thread.GetIndexID()) 110 command += " -s " + str(iptTraceSize) 112 command += " --tsc" 114 command += " --psb-period " + str(psbPeriod) 115 self.expect(command, error=error, substrs=substrs) 136 command = "process trace start" 138 command += " -l " + str(processBufferSizeLimit) 140 command += " --tsc" 142 command += " --psb-period " + str(psbPeriod) [all …]
|
/llvm-project/lldb/unittests/Utility/ |
H A D | CompletionRequestTest.cpp | 15 std::string command = "a bad c"; in TEST() local 21 CompletionRequest request(command, cursor_pos, result); in TEST() 25 EXPECT_EQ(request.GetRawLineWithUnusedSuffix(), command); in TEST() 36 std::string command = "a bad c "; in TEST() local 37 const unsigned cursor_pos = command.size(); in TEST() 40 CompletionRequest request(command, cursor_pos, result); in TEST() 42 EXPECT_EQ(request.GetRawLine(), command); in TEST() 43 EXPECT_EQ(request.GetRawLineWithUnusedSuffix(), command); in TEST() 52 std::string command = "a bad c"; in TEST() local 56 CompletionRequest request(command, 3, result); in TEST() [all …]
|
/llvm-project/llvm/utils/lit/lit/llvm/ |
H A D | subst.py | 17 command = config.lit_config.params.get(self.name) 18 if command is None: 20 command = lit.util.which(self.name, dirs) 21 if not command: 25 command += " -verify-machineinstrs" 26 return command 41 command=None, argument 83 self.command = command if command is not None else FindTool(key) 115 if isinstance(self.command, FindTool): 116 command_str = self.command.resolve(config, search_dirs) [all …]
|
/llvm-project/cross-project-tests/debuginfo-tests/dexter/dex/command/ |
H A D | ParseCommand.py | 7 """Parse a DExTer command. In particular, ensure that only a very limited 20 from dex.command.CommandBase import CommandBase 21 from dex.command.commands.DexCommandLine import DexCommandLine 22 from dex.command.commands.DexDeclareFile import DexDeclareFile 23 from dex.command.commands.DexDeclareAddress import DexDeclareAddress 24 from dex.command.commands.DexExpectProgramState import DexExpectProgramState 25 from dex.command.commands.DexExpectStepKind import DexExpectStepKind 26 from dex.command.commands.DexExpectStepOrder import DexExpectStepOrder 27 from dex.command.commands.DexExpectWatchType import DexExpectWatchType 28 from dex.command [all...] |
/llvm-project/lldb/test/API/python_api/was_interrupted/ |
H A D | TestDebuggerInterruption.py | 47 def __init__(self, test, command): argument 49 self.command = command 54 self.command, self.test.result 131 command = self.command_name 133 command = self.command_name + " " + args 134 return command 136 def run_single_command(self, command): argument 139 self.runner = TestDebuggerInterruption.DirectCommandRunner(self, command) 191 command = self.command_setup("debugger") 193 command = self.command_setup("interp") [all …]
|
/llvm-project/lldb/source/Commands/ |
H A D | CommandObjectThreadUtil.cpp | 35 void CommandObjectIterateOverThreads::DoExecute(Args &command, in DoExecute() argument 40 if (command.GetArgumentCount() == 0) { in DoExecute() 45 } else if (command.GetArgumentCount() == 1) { in DoExecute() 46 all_threads = ::strcmp(command.GetArgumentAtIndex(0), "all") == 0; in DoExecute() 47 m_unique_stacks = ::strcmp(command.GetArgumentAtIndex(0), "unique") == 0; in DoExecute() 61 const size_t num_args = command.GetArgumentCount(); in DoExecute() 69 if (!llvm::to_integer(command.GetArgumentAtIndex(i), thread_idx)) { in DoExecute() 71 command.GetArgumentAtIndex(i)); in DoExecute() 80 command.GetArgumentAtIndex(i)); in DoExecute() 167 void CommandObjectMultipleThreads::DoExecute(Args &command, in DoExecute() argument [all …]
|
/llvm-project/lldb/examples/customization/import-python/ |
H A D | README | 5 Python module which provides implementation for the 'import' command. 12 The import command defined by importcmd.py can be used in LLDB to load a Python 14 The command works by extending Python's sys.path lookup to include the path to 16 ordinary 'import' mechanism. In this respect, modules imported from LLDB command 18 The following terminal output shows an interaction with lldb using this new command. 22 (lldb) command script add import -f importcmd.pyimport_cmd 30 command, can be included in the .lldbinit file to make this feature available at 33 WARNING: The import command defined by importcmd.py is now obsolete 35 (lldb) command script import ../demo.py 40 using the native "command script import" command, which offers a superset of what the import comman…
|
/llvm-project/clang/include/clang/Basic/ |
H A D | DiagnosticCommentKinds.td | 50 "empty paragraph passed to '%select{\\|@}0%1' command">, 54 "duplicated command '%select{\\|@}0%1'">, 58 "previous command '%select{\\|@}0%1' here">; 61 "previous command '%select{\\|@}0%1' (an alias of '\\%2') here">; 63 // \param command 75 "'%select{\\|@}0param' command used in a comment that is not attached to " 81 "command should be used in a comment attached to " 88 "command should not be used in a comment attached to a " 95 "command should not be used in a comment attached to a non-container declaration">, 112 // tparam command [all …]
|
/llvm-project/lldb/test/API/commands/target/stop-hooks/ |
H A D | TestStopHookScripted.py | 31 command = "target stop-hook add -P stop_hook.bad_handle_stop" 32 self.interp.HandleCommand(command, result) 41 command = "target stop-hook add -P stop_hook.no_handle_stop" 43 self.interp.HandleCommand(command, result) 88 command = "target stop-hook add -P stop_hook.stop_handler -k increment -v 5 -k return_false -v 1 -n step_out_of_me" 90 command = "target stop-hook add -G 1 -P stop_hook.stop_handler -k increment -v 5 -n step_out_of_me" 92 self.interp.HandleCommand(command, result) 125 command = "command script import " + script_name 126 self.interp.HandleCommand(command, resul [all...] |
/llvm-project/libc/docs/dev/ |
H A D | header_generation.rst | 26 2. Once the build is complete, enter in the command line within the build 29 3. Then enter in the command line ``ninja libc`` to generate headers. Headers 37 command line. 39 To add through the command line: 43 2. Enter in the command line: 73 your CMake within the build directory. In the command line, enter the 141 command line is requiring more arguments than what you currently have. Ensure
|
/llvm-project/clang-tools-extra/clangd/test/ |
H A D | execute-command.test | 29 # No command name 32 # Invalid, non-scalar command name 33 {"jsonrpc":"2.0","id":4,"method":"workspace/executeCommand","params":{"command": {}}} 35 {"jsonrpc":"2.0","id":5,"method":"workspace/executeCommand","params":{"command":"clangd.applyFix","… 38 {"jsonrpc":"2.0","id":6,"method":"workspace/executeCommand","params":{"command":"clangd.applyFix","… 40 # Unknown command. 41 {"jsonrpc":"2.0","id":7,"method":"workspace/executeCommand","params":{"command":"mycommand"}} 44 {"jsonrpc":"2.0","id":8,"method":"workspace/executeCommand","params":{"command":"clangd.applyFix","… 47 {"jsonrpc":"2.0","id":9,"method":"workspace/executeCommand","params":{"command":"clangd.applyFix","… 50 {"jsonrpc":"2.0","id":10,"method":"workspace/executeCommand","params":{"command":"clangd.applyFix",… [all …]
|
/llvm-project/lldb/source/Plugins/Process/MacOSX-Kernel/ |
H A D | CommunicationKDP.cpp | 65 const CommandType command, const PacketStreamType &request_packet, in SendRequestAndGetReply() argument 97 if ((reply_command & eCommandTypeMask) == command) { in SendRequestAndGetReply() 99 if (command == KDP_RESUMECPUS) in SendRequestAndGetReply() 322 // Unrecognized reply command byte, erase this byte and try to get back in CheckForPacket() 342 const CommandType command = KDP_CONNECT; in SendRequestConnect() local 346 MakeRequestPacketHeader(command, request_packet, command_length); in SendRequestConnect() 354 return SendRequestAndGetReply(command, request_packet, reply_packet); in SendRequestConnect() 369 const CommandType command = KDP_REATTACH; in SendRequestReattach() local 372 MakeRequestPacketHeader(command, request_packet, command_length); in SendRequestReattach() 378 if (SendRequestAndGetReply(command, request_packe in SendRequestReattach() 403 const CommandType command = KDP_VERSION; SendRequestVersion() local 489 const CommandType command = KDP_HOSTINFO; SendRequestHostInfo() local 519 const CommandType command = KDP_KERNELVERSION; SendRequestKernelVersion() local 535 const CommandType command = KDP_DISCONNECT; SendRequestDisconnect() local 553 const CommandType command = use_64 ? KDP_READMEM64 : KDP_READMEM; SendRequestReadMemory() local 592 const CommandType command = use_64 ? KDP_WRITEMEM64 : KDP_WRITEMEM; SendRequestWriteMemory() local 626 const CommandType command = (CommandType)command_byte; SendRawRequest() local 646 GetCommandAsCString(uint8_t command) GetCommandAsCString() argument 732 const CommandType command = ExtractCommand(first_packet_byte); DumpPacket() local 1173 const CommandType command = KDP_READREGS; SendRequestReadRegisters() local 1216 const CommandType command = KDP_WRITEREGS; SendRequestWriteRegisters() local 1241 const CommandType command = KDP_RESUMECPUS; SendRequestResume() local 1255 const CommandType command = SendRequestBreakpoint() local 1276 const CommandType command = KDP_SUSPEND; SendRequestSuspend() local [all...] |
/llvm-project/lldb/test/Shell/Commands/CommandScriptImmediateOutput/Inputs/ |
H A D | custom_command.py | 4 def split(command): argument 5 command = command.strip() 6 return command.rsplit(" ", 1) 9 def command_function(debugger, command, exe_ctx, result, internal_dict): argument 14 def write_file(debugger, command, exe_ctx, result, internal_dict): argument 15 args = split(command)
|
/llvm-project/clang/test/Sema/ |
H A D | warn-documentation.m | 6 // expected-warning@+1 {{empty paragraph passed to '\brief' command}} 9 // expected-warning@+2 {{empty paragraph passed to '\brief' command}} 23 // expected-warning@+1 {{empty paragraph passed to '\brief' command}} 27 // expected-warning@+1 {{empty paragraph passed to '\brief' command}} 32 // expected-warning@+1 {{empty paragraph passed to '\brief' command}} 37 // expected-warning@+1 {{empty paragraph passed to '\brief' command}} 51 // expected-warning@+1 {{empty paragraph passed to '\brief' command}} 56 // expected-warning@+1 {{empty paragraph passed to '\brief' command}} 59 // expected-warning@+1 {{empty paragraph passed to '\brief' command}} 64 // expected-warning@+1 {{empty paragraph passed to '\brief' command}} [all …]
|
/llvm-project/llvm/test/tools/llvm-objdump/MachO/AArch64/ |
H A D | macho-private-headers.test | 8 CHECK: Load command 0 46 CHECK: Load command 1 51 CHECK: Load command 2 58 CHECK: Load command 3 83 EXE: Load command 0 95 EXE: Load command 1 172 EXE: Load command 2 210 EXE: Load command 3 222 EXE: Load command 4 235 EXE: Load command 5 [all …]
|
/llvm-project/llvm/test/Object/ |
H A D | macho-invalid.test | 8 RUN: not llvm-objdump --macho --private-headers %p/Inputs/macho64-invalid-incomplete-load-command 2… 10 INCOMPLETE-LOADC: truncated or malformed object (load command 0 extends past the end all load comma… 12 RUN: not llvm-objdump --macho --private-headers %p/Inputs/macho64-invalid-incomplete-load-command.1… 14 INCOMPLETE-LOADC-1: truncated or malformed object (load command 1 extends past the end all load com… 16 RUN: not llvm-objdump --macho --private-headers %p/Inputs/macho-invalid-too-small-load-command 2>&1… 18 RUN: not llvm-objdump --macho --private-headers %p/Inputs/macho64-invalid-too-small-load-command 2>… 22 RUN: not llvm-objdump --macho --private-headers %p/Inputs/macho64-invalid-too-small-load-command.1 … 24 SMALL-LOADC-SIZE-1: truncated or malformed object (load command 1 with size less than 8 bytes) 26 RUN: not llvm-objdump --private-headers %p/Inputs/macho-invalid-too-small-segment-load-command 2>&1… 28 MULTIPLE-NOT-4: truncated or malformed object (load command 0 cmdsize not a multiple of 4) [all …]
|
/llvm-project/lldb/tools/lldb-dap/ |
H A D | LLDBUtils.cpp | 27 for (llvm::StringRef command : commands) { in RunLLDBCommands() 33 if (command.starts_with("?")) { in RunLLDBCommands() 34 command = command.drop_front(); in RunLLDBCommands() 36 } else if (command.starts_with("!")) { in RunLLDBCommands() 37 command = command.drop_front(); in RunLLDBCommands() 50 interp.HandleCommand(command.str().c_str(), result, in RunLLDBCommands() 63 strm << "(lldb) " << command << "\n"; in RunLLDBCommands() 25 for (llvm::StringRef command : commands) { RunLLDBCommands() local
|
/llvm-project/llvm/test/tools/llvm-objdump/MachO/ |
H A D | private-headers.test | 35 CHECK: Load command 0 99 CHECK: Load command 1 106 CHECK: Load command 2 131 EXE: Load command 0 143 EXE: Load command 1 233 EXE: Load command 2 271 EXE: Load command 3 283 EXE: Load command 4 296 EXE: Load command 5 303 EXE: Load command 6 [all …]
|
/llvm-project/cross-project-tests/debuginfo-tests/dexter/dex/heuristic/ |
H A D | Heuristic.py | 17 from dex.command.StepValueInfo import StepValueInfo 18 from dex.command.commands.DexExpectWatchBase import format_address 156 for command in steps.commands["DexDeclareAddress"]: 157 command.address_resolutions = self.address_resolutions 158 command.eval(steps) 164 for command in steps.commands["DexExpectWatchType"]: 165 command.eval(steps) 166 maximum_possible_penalty = min(3, len(command.values)) * worst_penalty 168 command, maximum_possible_penalty 177 for command in steps.commands["DexExpectWatchValue"]: [all …]
|