Skip to content

Commit

Permalink
glconf: introduce the full_error_recovery option
Browse files Browse the repository at this point in the history
... so that one does not need to rebuild Predator from source code
to enable full error recovery.

Closes: #102
  • Loading branch information
kdudka committed Oct 11, 2024
1 parent ed1a79d commit 248fd32
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sl/glconf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ void handleNoErrorRecovery(const string &name, const string &value)
data.errorRecoveryMode = /* no_error_recovery */ 0;
}

void handleFullErrorRecovery(const string &name, const string &value)
{
assumeNoValue(name, value);
data.errorRecoveryMode = /* full_error_recovery */ 2;
}

void handleVerifierErrorIsError(const string &name, const string &value)
{
assumeNoValue(name, value);
Expand Down Expand Up @@ -244,6 +250,7 @@ ConfigStringParser::ConfigStringParser()
tbl_["error_label"] = handleErrorLabel;
tbl_["exit_leaks"] = handleExitLeaks;
tbl_["forbid_heap_replace"] = handleForbidHeapReplace;
tbl_["full_error_recovery"] = handleFullErrorRecovery;
tbl_["int_arithmetic_limit"] = handleIntArithmeticLimit;
tbl_["join_on_loop_edges_only"] = handleJoinOnLoopEdgesOnly;
tbl_["memleak_is_error"] = handleMemLeakIsError;
Expand Down

0 comments on commit 248fd32

Please sign in to comment.