From a87d0ae61b42e06e0b86ac114e3613a9976d2ca0 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 13 Nov 2015 01:50:19 +0000 Subject: Fix a bug in PythonExceptionState and add unittest coverage. I forgot to reset the restore flag when calling member function `Acquire`. The newly added unittest should cover this case. llvm-svn: 253002 --- lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h b/lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h index 854276b..3cf24ff 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h @@ -30,6 +30,9 @@ class PythonExceptionState void Discard(); + void + Reset(); + static bool HasErrorOccurred(); -- cgit v1.1