Change runtime to exit() instead of abort(), unless under +verilated+debug.

This commit is contained in:
Wilson Snyder 2025-08-05 18:43:29 -04:00
parent 06c570e159
commit fbaff52668
2 changed files with 7 additions and 1 deletions

View File

@ -34,6 +34,7 @@ Verilator 5.039 devel
* Support multiple variables on RHS of a `force` assignment (#6163). [Artur Bieniek, Antmicro Ltd.]
* Support covergroup extends, etc., as unsupported (#6160). [Artur Bieniek, Antmicro Ltd.]
* Change control file `public_flat_*` and other signal attributes to support __ in names (#6140).
* Change runtime to exit() instead of abort(), unless under +verilated+debug.
* Improve `--skip-identical` to skip on identical input file contents (#6109).
* Optimize to return memory when using -build (#6192) (#6226). [Michael B. Taylor]
* Optimize 2 ** X to 1 << X if base is signed (#6203). [Max Wipfli]

View File

@ -168,7 +168,12 @@ void vl_fatal(const char* filename, int linenum, const char* hier, const char* m
// Callbacks prior to termination
Verilated::runExitCallbacks();
std::abort();
if (Verilated::debug()) {
std::abort();
} else {
std::exit(1);
}
}
#endif