summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
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/packages/Python/lldbsuite/test
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/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/default-constructor/sb_debugger.py5
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/default-constructor/sb_process.py5
2 files changed, 8 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/default-constructor/sb_debugger.py b/lldb/packages/Python/lldbsuite/test/python_api/default-constructor/sb_debugger.py
index 16b61091420..e6267c8475e 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/default-constructor/sb_debugger.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/default-constructor/sb_debugger.py
@@ -19,7 +19,10 @@ def fuzz_obj(obj):
obj.GetCommandInterpreter()
obj.HandleCommand("nothing here")
listener = obj.GetListener()
- obj.HandleProcessEvent(lldb.SBProcess(), lldb.SBEvent(), None, None)
+ try:
+ obj.HandleProcessEvent(lldb.SBProcess(), lldb.SBEvent(), None, None)
+ except Exception:
+ pass
obj.CreateTargetWithFileAndTargetTriple("a.out", "A-B-C")
obj.CreateTargetWithFileAndArch("b.out", "arm")
obj.CreateTarget("c.out")
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/default-constructor/sb_process.py b/lldb/packages/Python/lldbsuite/test/python_api/default-constructor/sb_process.py
index eed197a63ef..93e43d4433f 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/default-constructor/sb_process.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/default-constructor/sb_process.py
@@ -12,7 +12,10 @@ def fuzz_obj(obj):
obj.GetSTDOUT(6)
obj.GetSTDERR(6)
event = lldb.SBEvent()
- obj.ReportEventState(event, None)
+ try:
+ obj.ReportEventState(event, None)
+ except Exception:
+ pass
obj.AppendEventStateReport(event, lldb.SBCommandReturnObject())
error = lldb.SBError()
obj.RemoteAttachToProcessWithID(123, error)
OpenPOWER on IntegriCloud