Dear List, i'm a newbie as a valgrind user, so I apologize if my question seems naive.
I'm triying to debug a package (extension) I wrote for the Tcl/Tk language. As my program is multi-threaded, a normal run of valgrind doesn't work. As suggested in the valgrind's log, I'm trying to use valgrind + gdb. Valgrind is launched with : valgrind -v --vgdb=yes --vgdb-error=0 --leak-check=full --leak-resolution=high --track-origins=yes --suppressions=gensupp.rules2 /usr/local/ActiveTcl/bin/tclsh /home/moumou/ordali/src/ordali.tcl exe ThrSco Note that : /usr/local/ActiveTcl/bin/tclsh is the Tcl interpreter /home/moumou/ordali/src/ordali.tcl is the Tcl script to give to the interpreter "exe ThrSco" is the argument to the script I lanched gdb : gdb /usr/local/ActiveTcl/bin/tclsh and then target remote | vgdb but then I can't give a "run /home/moumou/ordali/src/ordali.tcl exe ThrSco" command to gdb ! "run is not allowed using vgdb" So how do I launch gdb/vgdb with my arguments ? Or what is the correct way to debug such a program ? (My extension seems to be sensitive to multi-threading, so I don't want to run in a one-thread mode) Many thanks in advance ! Luc working under Ubuntu, valgrind 3.7.0 and gcc 4.6.3 --------------------------------- Dr. Luc Moulinier IGBMC 1, rue Laurent Fries 67 404 ILLKIRCH CDDEX ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users