summaryrefslogtreecommitdiff
path: root/lldb/source/API/SBProcess.cpp
diff options
context:
space:
mode:
authorFlorian Mayer <fmayer@google.com>2025-11-20 15:44:58 -0800
committerFlorian Mayer <fmayer@google.com>2025-11-20 15:44:58 -0800
commitda1d82491dfa34c08534ea747f0ceedef0bd33be (patch)
tree2f4f18d335550ee1618612783a10ebdddf1febef /lldb/source/API/SBProcess.cpp
parenta5fb057dd9a7cdc777f0ce940d3e28421dbb5a4a (diff)
parent49e46a57cc1575271179c8c9c6fec5639781e9c6 (diff)
[𝘀𝗽𝗿] changes introduced through rebaseusers/fmayer/spr/main.ubsan-add-fsanitize-preserve-runtime-flag
Created using spr 1.3.7 [skip ci]
Diffstat (limited to 'lldb/source/API/SBProcess.cpp')
-rw-r--r--lldb/source/API/SBProcess.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/API/SBProcess.cpp b/lldb/source/API/SBProcess.cpp
index d4be64b81536..14aa9432eed8 100644
--- a/lldb/source/API/SBProcess.cpp
+++ b/lldb/source/API/SBProcess.cpp
@@ -7,6 +7,7 @@
//===----------------------------------------------------------------------===//
#include "lldb/API/SBProcess.h"
+#include "lldb/Host/File.h"
#include "lldb/Utility/Instrumentation.h"
#include <cinttypes>
@@ -310,7 +311,8 @@ void SBProcess::ReportEventState(const SBEvent &event, SBFile out) const {
void SBProcess::ReportEventState(const SBEvent &event, FILE *out) const {
LLDB_INSTRUMENT_VA(this, event, out);
- FileSP outfile = std::make_shared<NativeFile>(out, false);
+ FileSP outfile =
+ std::make_shared<NativeFile>(out, File::eOpenOptionWriteOnly, false);
return ReportEventState(event, outfile);
}