mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
Fix GDB returning wrong error code on Fedora 30
Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
This commit is contained in:
parent
0847ea57ae
commit
2c44ab61ac
@ -100,7 +100,7 @@ if ($opt_gdb) {
|
||||
." --batch --quiet --return-child-result"
|
||||
." -ex \"run ".join(' ', @quoted_sw)."\""
|
||||
." -ex 'set width 0'"
|
||||
." -ex 'bt'");
|
||||
." -ex 'bt' -ex 'quit'");
|
||||
} else {
|
||||
# Normal, non gdb
|
||||
run(verilator_bin()." ".join(' ',@quoted_sw));
|
||||
@ -159,7 +159,8 @@ sub gdb_works {
|
||||
." --batch-silent --quiet --return-child-result"
|
||||
." -ex 'run -n'" # `echo -n`
|
||||
." -ex 'set width 0'"
|
||||
." -ex 'bt'");
|
||||
." -ex 'bt'"
|
||||
." -ex 'quit'");
|
||||
my $status = $?;
|
||||
return $status==0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user