From 26ba3f62e3c6655d931977da618162161e8d7186 Mon Sep 17 00:00:00 2001 From: Cary R Date: Fri, 6 Feb 2026 01:31:30 -0800 Subject: [PATCH] Use "--keep-debuginfo=yes" for valgrind testing --- ivtest/run_ivl.py | 3 ++- ivtest/vvp_reg.pl | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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";