From: degomme Date: Fri, 29 Mar 2019 13:27:39 +0000 (+0100) Subject: Add -vgdb option to smpirun to run with valgrind+gdb. X-Git-Tag: v3_22~17 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3f2dc90655349f3af1b4524d13d14bdefeaf4759 Add -vgdb option to smpirun to run with valgrind+gdb. I keep forgetting the syntax of these options otherwise. --- diff --git a/src/smpi/smpirun.in b/src/smpi/smpirun.in index 3536dd145c..03c626466b 100755 --- a/src/smpi/smpirun.in +++ b/src/smpi/smpirun.in @@ -37,6 +37,7 @@ Options: -wrapper # use command to run the program (e.g. "valgrind" or "gdb --args") -gdb # run within GDB (-wrapper "gdb --args" -keep-temps) -lldb # run within LLDB (-wrapper "lldb --" -keep-temps) + -vgdb # run within Valgrind+GDB (-wrapper "valgrind --vgdb=yes --vgdb-error=0" -keep-temps) -map # display the machine on which each process rank is mapped -np # use that amount of processes from the hostfile. # By default, all processes of the hostfile are used. @@ -211,6 +212,12 @@ while true; do SIMOPTS="$SIMOPTS --cfg=smpi/keep-temps:yes" shift 1 ;; + "-vgdb") + WRAPPER="valgrind --vgdb=yes --vgdb-error=0" + KEEP="true" + SIMOPTS="$SIMOPTS --cfg=smpi/keep-temps:yes" + shift 1 + ;; "-lldb") WRAPPER="lldb --" KEEP="true"