aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorWanyi <kusmour@gmail.com>2024-10-29 14:22:51 -0400
committerGitHub <noreply@github.com>2024-10-29 14:22:51 -0400
commitefc6d33be9f4b4d0f0e8d3d5f198f2616b75792b (patch)
treedcfab539e0adfbdec7c9eaa0471c22f8ea5e4243 /lldb/source/Plugins/ScriptInterpreter/Python
parent8e14c6c172b122203f46a9ad114d51c74535cbb7 (diff)
downloadllvm-efc6d33be9f4b4d0f0e8d3d5f198f2616b75792b.zip
llvm-efc6d33be9f4b4d0f0e8d3d5f198f2616b75792b.tar.gz
llvm-efc6d33be9f4b4d0f0e8d3d5f198f2616b75792b.tar.bz2
[lldb] Fix write only file action to truncate the file (#112657)
When `FileAction` opens file with write access, it doesn't clear the file nor append to the end of the file if it already exists. Instead, it writes from cursor index 0. For example, by using the settings `target.output-path` and `target.error-path`, lldb will redirect process stdout/stderr to files. It then calls this function to write to the files which the above symptoms appear. ## Test - Added unit test checking the file flags - Added 2 api tests checking - File content overwritten if the file path already exists - Stdout and stderr redirection to the same file doesn't change its behavior
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions