Use "--keep-debuginfo=yes" for valgrind testing

This commit is contained in:
Cary R 2026-02-06 01:31:30 -08:00
parent dc1763bbf5
commit 26ba3f62e3
2 changed files with 3 additions and 1 deletions

View File

@ -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"))

View File

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