Fix GDB returning wrong error code on Fedora 30

Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
This commit is contained in:
Sebastien Van Cauwenberghe 2019-07-10 06:46:44 -04:00 committed by Wilson Snyder
parent 0847ea57ae
commit 2c44ab61ac

View File

@ -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;
}