diff --git a/ivtest/run_ivl.py b/ivtest/run_ivl.py index a79919544..3a1aa16b7 100644 --- a/ivtest/run_ivl.py +++ b/ivtest/run_ivl.py @@ -23,7 +23,8 @@ def assemble_vvp_cmd(options: dict, cfg: dict) -> list: '''Build the vvp command line''' res = [] if cfg['with-valgrind']: - res += ["valgrind", "--leak-check=full", "--show-reachable=yes"] + res += ["valgrind", "--leak-check=full", "--keep-debuginfo=yes", + "--show-reachable=yes"] res += ["vvp"+cfg['suffix']] res += options['vvp_args'] res.append(os.path.join("work", "a.out")) diff --git a/ivtest/vvp_reg.pl b/ivtest/vvp_reg.pl index 77bdc93ed..e24ab1b47 100755 --- a/ivtest/vvp_reg.pl +++ b/ivtest/vvp_reg.pl @@ -173,6 +173,7 @@ sub execute_regression { } $cmd = $with_valg ? "valgrind --leak-check=full " . + "--keep-debuginfo=yes " . "--show-reachable=yes " : ""; $cmd .= "vvp$sfx vsim $vvp_args $plargs{$tname}"; # print "$cmd\n";