| /llvm-project-15.0.7/lldb/test/API/commands/log/basic/ |
| H A D | TestLogging.py | 28 if (os.path.exists(self.log_file)): 29 os.remove(self.log_file) 44 self.assertTrue(os.path.isfile(self.log_file)) 46 with open(self.log_file, 'r') as f: 48 os.remove(self.log_file) 58 with open(self.log_file, "w") as f: 67 with open(self.log_file, "r") as f: 76 with open(self.log_file, "w") as f: 84 with open(self.log_file, 'r') as f: 93 if (os.path.exists(self.log_file)): [all …]
|
| H A D | TestLogHandlers.py | 17 self.log_file = self.getBuildArtifact("log-file.txt") 18 if (os.path.exists(self.log_file)): 19 os.remove(self.log_file) 24 self.runCmd("log dump lldb -f {}".format(self.log_file)) 26 with open(self.log_file, 'r') as f: 52 self.runCmd("log enable lldb commands -f {}".format(self.log_file))
|
| /llvm-project-15.0.7/lldb/examples/python/ |
| H A D | disasm-stress-test.py | 99 def ResetLogFile(log_file): argument 100 if log_file != sys.stdout: 101 log_file.seek(0) 104 def PrintByteArray(log_file, byte_array): argument 107 print(file=log_file) 114 self.m_log_file = log_file 152 self.m_log_file = log_file 175 log_file = None variable 179 global log_file 181 log_file = open(args.log, 'w') [all …]
|
| H A D | delta.py | 32 global log_file 33 if log_file: 36 log_file) 40 log_file = tempfile.mktemp() 42 log_file = args[0] 44 if log_file: 47 log_file) 50 log_file) 82 for log_file in args: 83 parse_log_file(log_file, options)
|
| /llvm-project-15.0.7/lldb/tools/lldb-server/ |
| H A D | LLDBServerUtilities.cpp | 38 static std::shared_ptr<TestLogHandler> GetLogStream(StringRef log_file) { in GetLogStream() argument 39 if (!log_file.empty()) { in GetLogStream() 42 log_file, EC, sys::fs::OF_TextWithCRLF | sys::fs::OF_Append); in GetLogStream() 47 log_file, EC.message()); in GetLogStream() 54 bool LLDBServerUtilities::SetupLogging(const std::string &log_file, in SetupLogging() argument 58 auto log_stream_sp = GetLogStream(log_file); in SetupLogging()
|
| H A D | lldb-platform.cpp | 155 std::string log_file; in main_platform() local 190 log_file.assign(optarg); in main_platform() 250 if (!LLDBServerUtilities::SetupLogging(log_file, log_channels, 0)) in main_platform()
|
| H A D | LLDBServerUtilities.h | 22 static bool SetupLogging(const std::string &log_file,
|
| H A D | lldb-gdbserver.cpp | 336 std::string log_file; in main_gdbserver() local 393 log_file = Args.getLastArgValue(OPT_log_file).str(); in main_gdbserver() 414 log_file, log_channels, in main_gdbserver()
|
| H A D | LLGSOptions.td | 38 defm log_file: SJ<"log-file", "Destination file to log to. If empty, log to stderr.">,
|
| /llvm-project-15.0.7/lldb/source/Commands/ |
| H A D | CommandObjectLog.cpp | 96 FileSystem::Instance().Resolve(log_file); in SetOptionValue() 142 log_file.Clear(); in OptionParsingStarting() 152 FileSpec log_file; member in CommandObjectLogEnable::CommandOptions 183 char log_file[PATH_MAX]; in DoExecute() local 184 if (m_options.log_file) in DoExecute() 185 m_options.log_file.GetPath(log_file, sizeof(log_file)); in DoExecute() 187 log_file[0] = '\0'; in DoExecute() 360 FileSystem::Instance().Resolve(log_file); in SetOptionValue() 370 log_file.Clear(); in OptionParsingStarting() 377 FileSpec log_file; member in CommandObjectLogDump::CommandOptions [all …]
|
| /llvm-project-15.0.7/lldb/packages/Python/lldbsuite/test/test_runner/ |
| H A D | process_control.py | 180 def hard_terminate(self, popen_process, log_file=None): argument 323 def _validate_pre_terminate(cls, popen_process, log_file): argument 330 if log_file: 344 if log_file: 345 log_file.write( 355 def _kill_with_signal(self, popen_process, log_file, signum): argument 357 if not self._validate_pre_terminate(popen_process, log_file): 395 self._kill_with_signal(popen_process, log_file, signum) 397 def hard_terminate(self, popen_process, log_file=None): argument 578 log_file=self) [all …]
|
| /llvm-project-15.0.7/lldb/test/API/lang/c/modules/ |
| H A D | TestCModules.py | 43 log_file = self.getBuildArtifact("lldb-ast-log.txt") 44 self.runCmd("log enable lldb ast -f '%s'" % log_file) 63 f = open(log_file) 66 os.remove(log_file)
|
| /llvm-project-15.0.7/lldb/test/API/functionalities/scripted_process/ |
| H A D | TestScriptedProcess.py | 70 log_file = self.getBuildArtifact('thread.log') 71 self.runCmd("log enable lldb thread -f " + log_file) 72 self.assertTrue(os.path.isfile(log_file)) 86 with open(log_file, 'r') as f:
|
| /llvm-project-15.0.7/llvm/utils/crosstool/ARM/ |
| H A D | build-install-linux.sh | 84 local log_file="$2" 86 echo "=> $message; log in $log_file" 90 $* &> $log_file
|
| /llvm-project-15.0.7/lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/ |
| H A D | vscode.py | 90 def dump_dap_log(log_file): argument 92 if log_file is None: 95 with open(log_file, "r") as file: 100 def read_packet_thread(vs_comm, log_file): argument 110 dump_dap_log(log_file) 115 def __init__(self, recv, send, init_commands, log_file=None): argument 122 args=(self, log_file)) 955 def __init__(self, executable=None, port=None, init_commands=[], log_file=None, env=None): argument 962 if log_file: 963 adaptor_env['LLDBVSCODE_LOG'] = log_file [all …]
|
| H A D | lldbvscode_testcase.py | 19 log_file=log_file_path, env=lldbVSCodeEnv)
|
| /llvm-project-15.0.7/lldb/test/API/lang/cpp/member-and-local-vars-with-same-name/ |
| H A D | TestMembersAndLocalsWithSameName.py | 266 log_file = self.getBuildArtifact("expr.log") 267 self.runCmd("log enable -f '%s' lldb expr" % (log_file)) 270 log_file = self.getBuildArtifact("expr.log") 274 with open(log_file, 'r') as log:
|
| /llvm-project-15.0.7/lldb/test/API/commands/register/register/register_command/ |
| H A D | TestRegisters.py | 159 self.log_file = self.getBuildArtifact('TestRegisters.log') 166 self.log_file, 170 if os.path.exists(self.log_file): 171 os.remove(self.log_file)
|
| /llvm-project-15.0.7/lldb/test/API/linux/aarch64/non_address_bit_memory_access/ |
| H A D | TestAArch64LinuxNonAddressBitMemoryAccess.py | 149 log_file = self.getBuildArtifact("lldb-non-address-bit-log.txt") 152 self.runCmd("log enable gdb-remote packets -f '%s'" % log_file) 162 with open(log_file, 'r', errors='ignore') as f:
|
| /llvm-project-15.0.7/lldb/tools/debugserver/source/ |
| H A D | debugserver.cpp | 961 FILE *log_file = NULL; in main() local 1164 log_file = stdout; in main() 1166 log_file = stderr; in main() 1168 log_file = fopen(optarg, "w"); in main() 1169 if (log_file != NULL) in main() 1170 setlinebuf(log_file); in main() 1173 if (log_file == NULL) { in main() 1320 if (log_file != NULL) { in main() 1321 DNBLogSetLogCallback(FileLogCallback, log_file); in main()
|
| /llvm-project-15.0.7/llvm/utils/ |
| H A D | convert-constraint-log-to-z3.py | 43 with open(args.log_file, 'rt') as f:
|
| /llvm-project-15.0.7/clang/utils/analyzer/ |
| H A D | SATestBuild.py | 541 with open(log_path, "w+") as log_file: 546 command, cwd=directory, stderr=log_file, 547 stdout=log_file, shell=True) 560 os.remove(log_file.name)
|
| /llvm-project-15.0.7/lldb/source/Core/ |
| H A D | Debugger.cpp | 1427 llvm::StringRef log_file, uint32_t log_options, in EnableLog() argument 1437 } else if (log_file.empty()) { in EnableLog() 1442 auto pos = m_stream_handlers.find(log_file); in EnableLog() 1453 FileSpec(log_file), flags, lldb::eFilePermissionsFileDefault, false); in EnableLog() 1455 error_stream << "Unable to open log file '" << log_file in EnableLog() 1463 m_stream_handlers[log_file] = log_handler_sp; in EnableLog()
|
| /llvm-project-15.0.7/lldb/packages/Python/lldbsuite/test/tools/lldb-server/ |
| H A D | gdbremote_testcase.py | 173 log_file = lldbutil.join_remote_paths( 176 log_file = self.getLocalServerLogFile() 179 self.debug_monitor_extra_args.append("--log-file=" + log_file) 184 "--log-file=" + log_file, "--log-flags=0x800000"]
|
| /llvm-project-15.0.7/lldb/include/lldb/Core/ |
| H A D | Debugger.h | 247 llvm::StringRef log_file, uint32_t log_options,
|