Home
last modified time | relevance | path

Searched refs:log_file (Results 1 – 25 of 30) sorted by relevance

12

/llvm-project/lldb/test/API/commands/log/basic/
H A DTestLogging.py18 self.log_file = self.getBuildArtifact("log-file.txt")
25 if os.path.exists(self.log_file):
26 os.remove(self.log_file)
31 self.runCmd("log enable -f '%s' lldb commands" % (self.log_file))
41 self.assertTrue(os.path.isfile(self.log_file))
43 with open(self.log_file, "r") as f:
45 os.remove(self.log_file)
52 with open(self.log_file, "w") as f:
56 self.runCmd("log enable -f '%s' lldb commands" % self.log_file)
60 self.assertTrue(os.path.isfile(self.log_file))
[all …]
H A DTestLogHandlers.py17 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:
51 self.runCmd("log enable lldb commands -f {}".format(self.log_file))
/llvm-project/lldb/examples/python/
H A Ddisasm-stress-test.py109 def ResetLogFile(log_file): argument
110 if log_file != sys.stdout:
111 log_file.seek(0)
114 def PrintByteArray(log_file, byte_array): argument
116 print(hex(byte) + " ", end=" ", file=log_file)
117 print(file=log_file)
121 def __init__(self, byte_width, log_file, start=0, skip=1): argument
123 self.m_log_file = log_file
158 def __init__(self, byte_width, log_file): argument
160 self.m_log_file = log_file
[all …]
H A Ddelta.py30 global log_file
31 if log_file:
33 'error: logging is already in progress with file "%s"', log_file
38 log_file = tempfile.mktemp()
40 log_file = args[0]
42 if log_file:
45 % log_file
49 % log_file
82 for log_file in args:
83 parse_log_file(log_file, options)
/llvm-project/lldb/source/Commands/
H A DCommandObjectLog.cpp95 log_file.SetFile(option_arg, FileSpec::Style::native); in SetOptionValue()
96 FileSystem::Instance().Resolve(log_file); in SetOptionValue()
140 log_file.Clear();
150 FileSpec log_file; in GetDefinitions()
186 if (m_options.handler != eLogHandlerStream && m_options.log_file) { in DoExecute()
195 char log_file[PATH_MAX]; in DoExecute()
196 if (m_options.log_file) in DoExecute()
197 m_options.log_file.GetPath(log_file, sizeof(log_file)); in DoExecute() local
152 FileSpec log_file; global() member in CommandObjectLogEnable::CommandOptions
364 FileSpec log_file; global() member in CommandObjectLogDump::CommandOptions
[all...]
/llvm-project/lldb/tools/lldb-server/
H A DLLDBServerUtilities.cpp40 static std::shared_ptr<TestLogHandler> GetLogStream(StringRef log_file) { in GetLogStream()
41 if (!log_file.empty()) { in GetLogStream()
44 log_file, EC, sys::fs::OF_TextWithCRLF | sys::fs::OF_Append); in GetLogStream()
49 log_file, EC.message()); in GetLogStream()
56 bool LLDBServerUtilities::SetupLogging(const std::string &log_file, in SetupLogging()
60 auto log_stream_sp = GetLogStream(log_file); in SetupLogging()
38 GetLogStream(StringRef log_file) GetLogStream() argument
54 SetupLogging(const std::string & log_file,const StringRef & log_channels,uint32_t log_options) SetupLogging() argument
H A Dlldb-platform.cpp261 const std::string &log_file, in main_platform()
284 if (!log_file.empty()) { in main_platform()
286 self_args.AppendArgument(log_file); in main_platform()
360 std::string log_file; in main_platform()
393 log_file.assign(optarg);
439 if (!LLDBServerUtilities::SetupLogging(log_file, log_channels, 0))
550 main_loop, [progname, gdbserver_port, &inferior_arguments, log_file,
556 log_file, log_channels, main_loop);
132 std::string log_file; main_platform() local
H A DLLDBServerUtilities.h22 static bool SetupLogging(const std::string &log_file,
H A Dlldb-gdbserver.cpp348 std::string log_file; in main_gdbserver()
405 log_file = Args.getLastArgValue(OPT_log_file).str(); in main_gdbserver()
428 log_file, log_channels, in main_gdbserver()
336 std::string log_file; main_gdbserver() local
H A DLLGSOptions.td38 defm log_file: SJ<"log-file", "Destination file to log to. If empty, log to stderr.">,
/llvm-project/lldb/packages/Python/lldbsuite/test/test_runner/
H A Dprocess_control.py158 def soft_terminate(self, popen_process, log_file=None, want_core=True): argument
181 def hard_terminate(self, popen_process, log_file=None): argument
325 def _validate_pre_terminate(cls, popen_process, log_file): argument
332 if log_file:
333 log_file.write("skipping soft_terminate(): no process id")
346 if log_file:
347 log_file.write(
359 def _kill_with_signal(self, popen_process, log_file, signum): argument
361 if not self._validate_pre_terminate(popen_process, log_file):
390 def soft_terminate(self, popen_process, log_file=None, want_core=True): argument
[all …]
/llvm-project/lldb/test/API/commands/expression/memory-allocation/
H A DTestMemoryAllocSettings.py17 self.log_file = self.getBuildArtifact("log-expr.txt")
23 self.runCmd("log enable lldb expr -f " + self.log_file)
26 self.assertTrue(os.path.isfile(self.log_file))
27 with open(self.log_file, "r") as f:
/llvm-project/lldb/test/API/lang/c/modules/
H A DTestCModules.py46 log_file = self.getBuildArtifact("lldb-ast-log.txt")
47 self.runCmd("log enable lldb ast -f '%s'" % log_file)
64 f = open(log_file)
67 os.remove(log_file)
/llvm-project/lldb/test/API/functionalities/scripted_process/
H A DTestScriptedProcess.py79 log_file = self.getBuildArtifact("script.log")
80 self.runCmd("log enable lldb script -f " + log_file)
81 self.assertTrue(os.path.isfile(log_file))
98 with open(log_file, "r") as f:
131 log_file = self.getBuildArtifact("thread.log")
132 self.runCmd("log enable lldb thread -f " + log_file)
133 self.assertTrue(os.path.isfile(log_file))
162 with open(log_file, "r") as f:
/llvm-project/llvm/utils/crosstool/ARM/
H A Dbuild-install-linux.sh84 local log_file="$2"
86 echo "=> $message; log in $log_file"
90 $* &> $log_file
/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/
H A Ddap_server.py90 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)
114 def __init__(self, recv, send, init_commands, log_file=None): argument
121 target=read_packet_thread, args=(self, log_file)
1159 log_file=None,
1168 if log_file:
1169 adaptor_env["LLDBDAP_LOG"] = log_file
1105 __init__( self, executable=None, port=None, init_commands=[], log_file=None, env=None, ) global() argument
[all...]
/llvm-project/lldb/source/Utility/
H A DDiagnostics.cpp104 FileSpec log_file = dir.CopyByAppendingPathComponent("diagnostics.log"); in DumpDiangosticsLog() local
106 llvm::raw_fd_ostream stream(log_file.GetPath(), ec, llvm::sys::fs::OF_None); in DumpDiangosticsLog()
/llvm-project/lldb/test/API/lang/cpp/member-and-local-vars-with-same-name/
H A DTestMembersAndLocalsWithSameName.py219 log_file = self.getBuildArtifact("expr.log")
220 self.runCmd("log enable -f '%s' lldb expr" % (log_file))
223 log_file = self.getBuildArtifact("expr.log")
227 with open(log_file, "r") as log:
/llvm-project/lldb/test/API/linux/aarch64/non_address_bit_memory_access/
H A DTestAArch64LinuxNonAddressBitMemoryAccess.py160 log_file = self.getBuildArtifact("lldb-non-address-bit-log.txt")
163 self.runCmd("log enable gdb-remote packets -f '%s'" % log_file)
173 with open(log_file, "r", errors="ignore") as f:
/llvm-project/lldb/tools/debugserver/source/
H A Ddebugserver.cpp939 FILE *log_file = NULL; in main()
1142 log_file = stdout; in main()
1144 log_file = stderr; in main()
1146 log_file = fopen(optarg, "w"); in main()
1147 if (log_file != NULL) in main()
1148 setlinebuf(log_file); in main()
1151 if (log_file == NULL) { in main()
1298 if (log_file != NULL) { in main()
1300 DNBLogSetLogCallback(FileLogCallback, log_file); in main()
976 FILE *log_file = NULL; main() local
/llvm-project/lldb/test/API/commands/register/register/register_command/
H A DTestRegisters.py198 self.log_file = self.getBuildArtifact("TestRegisters.log")
205 + self.log_file,
211 if os.path.exists(self.log_file):
212 os.remove(self.log_file)
/llvm-project/llvm/utils/
H A Dconvert-constraint-log-to-z3.py45 with open(args.log_file, "rt") as f:
/llvm-project/clang/utils/analyzer/
H A DSATestBuild.py564 with open(log_path, "w+") as log_file:
571 stderr=log_file,
572 stdout=log_file,
582 f"See {log_file.name} for details. "
589 os.remove(log_file.name)
/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb-server/
H A Dgdbremote_testcase.py170 log_file = lldbutil.join_remote_paths(
174 log_file = self.getLocalServerLogFile()
177 self.debug_monitor_extra_args.append("--log-file=" + log_file)
183 "--log-file=" + log_file,
/llvm-project/lldb/source/Core/
H A DDebugger.cpp1670 llvm::StringRef log_file, uint32_t log_options, in EnableLog()
1680 } else if (log_file.empty()) { in EnableLog()
1685 auto pos = m_stream_handlers.find(log_file); in GetScriptInterpreter()
1696 FileSpec(log_file), flags, lldb::eFilePermissionsFileDefault, false); in GetScriptInterpreter()
1698 error_stream << "Unable to open log file '" << log_file in GetScriptInterpreter()
1706 m_stream_handlers[log_file] = log_handler_sp;
1635 EnableLog(llvm::StringRef channel,llvm::ArrayRef<const char * > categories,llvm::StringRef log_file,uint32_t log_options,size_t buffer_size,LogHandlerKind log_handler_kind,llvm::raw_ostream & error_stream) EnableLog() argument

12