summaryrefslogtreecommitdiffstats
path: root/lldb/scripts
diff options
context:
space:
mode:
authorLawrence D'Anna <lawrence_danna@apple.com>2019-10-14 20:15:28 +0000
committerLawrence D'Anna <lawrence_danna@apple.com>2019-10-14 20:15:28 +0000
commit322f12afc3673fc868899857b069ce59084dba05 (patch)
tree306f102542cd3987d31eb51d27c965dae489182b /lldb/scripts
parentc5d14b5c6fa9e003ef2037dcd3601c8339b1e42f (diff)
downloadbcm5719-llvm-322f12afc3673fc868899857b069ce59084dba05.tar.gz
bcm5719-llvm-322f12afc3673fc868899857b069ce59084dba05.zip
remove FILE* usage from ReportEventState() and HandleProcessEvent()
Summary: This patch adds FileSP and SBFile versions of the API methods ReportEventState and HandleProcessEvent. It points the SWIG wrappers at these instead of the ones that use FILE* streams. Reviewers: JDevlieghere, jasonmolenda, labath, jingham Reviewed By: labath Subscribers: lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D68546 llvm-svn: 374816
Diffstat (limited to 'lldb/scripts')
-rw-r--r--lldb/scripts/interface/SBDebugger.i10
-rw-r--r--lldb/scripts/interface/SBProcess.i5
2 files changed, 12 insertions, 3 deletions
diff --git a/lldb/scripts/interface/SBDebugger.i b/lldb/scripts/interface/SBDebugger.i
index 208b036e8af..695b32be064 100644
--- a/lldb/scripts/interface/SBDebugger.i
+++ b/lldb/scripts/interface/SBDebugger.i
@@ -228,8 +228,14 @@ public:
void
HandleProcessEvent (const lldb::SBProcess &process,
const lldb::SBEvent &event,
- FILE *out,
- FILE *err);
+ SBFile out,
+ SBFile err);
+
+ void
+ HandleProcessEvent (const lldb::SBProcess &process,
+ const lldb::SBEvent &event,
+ FileSP BORROWED,
+ FileSP BORROWED);
lldb::SBTarget
CreateTarget (const char *filename,
diff --git a/lldb/scripts/interface/SBProcess.i b/lldb/scripts/interface/SBProcess.i
index cbe67ad3b7d..453f98ffe20 100644
--- a/lldb/scripts/interface/SBProcess.i
+++ b/lldb/scripts/interface/SBProcess.i
@@ -97,7 +97,10 @@ public:
GetAsyncProfileData(char *dst, size_t dst_len) const;
void
- ReportEventState (const lldb::SBEvent &event, FILE *out) const;
+ ReportEventState (const lldb::SBEvent &event, SBFile out) const;
+
+ void
+ ReportEventState (const lldb::SBEvent &event, FileSP BORROWED) const;
void
AppendEventStateReport (const lldb::SBEvent &event, lldb::SBCommandReturnObject &result);
OpenPOWER on IntegriCloud