aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-11-13 01:50:19 +0000
committerZachary Turner <zturner@google.com>2015-11-13 01:50:19 +0000
commita87d0ae61b42e06e0b86ac114e3613a9976d2ca0 (patch)
tree57b2eb465a22b565a9c55ea4909f529f50aadd05 /lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h
parent2cab8eec7423e8608f877a98b2a6879dd4fb5b6c (diff)
downloadllvm-a87d0ae61b42e06e0b86ac114e3613a9976d2ca0.zip
llvm-a87d0ae61b42e06e0b86ac114e3613a9976d2ca0.tar.gz
llvm-a87d0ae61b42e06e0b86ac114e3613a9976d2ca0.tar.bz2
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
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h3
1 files changed, 3 insertions, 0 deletions
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();