mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-26 05:18:46 +00:00
Error out if the expression for a breakpoint
condition doesn't return a result, instead of blindly trying to use that result. <rdar://problem/14009519> llvm-svn: 182875
This commit is contained in:
parent
ce2168f990
commit
467441d511
@ -312,6 +312,12 @@ BreakpointLocation::ConditionSaysStop (ExecutionContext &exe_ctx, Error &error)
|
||||
|
||||
if (result_code == eExecutionCompleted)
|
||||
{
|
||||
if (!result_variable_sp)
|
||||
{
|
||||
ret = false;
|
||||
error.SetErrorString("Expression did not return a result");
|
||||
}
|
||||
|
||||
result_value_sp = result_variable_sp->GetValueObject();
|
||||
|
||||
if (result_value_sp)
|
||||
|
Loading…
x
Reference in New Issue
Block a user