mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Add newline on alarm timeouts to help error parsers
This commit is contained in:
@@ -73,6 +73,9 @@ private:
|
||||
|
||||
if (v3Global.opt.debugRuntimeTimeout()) {
|
||||
puts("void alarmHandler(int signum) {\n");
|
||||
// Add newline so %Error is at beginning-of-line, as might get the alarm
|
||||
// when in the middle of some other print with no newline
|
||||
puts(" VL_PRINTF_MT(\"\\n\");\n");
|
||||
puts(" VL_FATAL_MT(\"\", 0, \"\", \"Alarm signal received,"s
|
||||
+ " '--debug-runtime-timeout "s
|
||||
+ std::to_string(v3Global.opt.debugRuntimeTimeout()) + "' exceeded\\n\");\n");
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
Sleeping....
|
||||
|
||||
%Error: Alarm signal received, '--debug-runtime-timeout 1' exceeded
|
||||
|
||||
Aborting...
|
||||
|
||||
Reference in New Issue
Block a user