Skip to content

Commit

Permalink
Evaluate with SetTrapExceptions set to False
Browse files Browse the repository at this point in the history
  • Loading branch information
kastiglione authored Aug 26, 2016
1 parent 6cb66c6 commit e3dd4ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fblldbbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def evaluateExpressionValue(expression, printErrors=True):
frame = lldb.debugger.GetSelectedTarget().GetProcess().GetSelectedThread().GetSelectedFrame()
options = lldb.SBExpressionOptions()
options.SetLanguage(lldb.eLanguageTypeObjC_plus_plus)
options.SetTrapExceptions(False)
value = frame.EvaluateExpression(expression, options)
error = value.GetError()

Expand All @@ -61,7 +62,9 @@ def evaluateInputExpression(expression, printErrors=True):
return evaluateExpressionValue(expression, printErrors).GetValue()

frame = lldb.debugger.GetSelectedTarget().GetProcess().GetSelectedThread().GetSelectedFrame()
value = frame.EvaluateExpression(expression)
options = lldb.SBExpressionOptions()
options.SetTrapExceptions(False)
value = frame.EvaluateExpression(expression, options)
error = value.GetError()

if printErrors and error.Fail():
Expand Down

0 comments on commit e3dd4ef

Please sign in to comment.