|
From: Bartels, E. <Enn...@ea...> - 2004-11-24 06:18:24
|
Hi I'm very impressed about the possibilities of valgrind. But I have one situation where I need help. I have a program that does make output only with "curses" and I want to attach the debugger to an error if one occurs. So I use the -db-command option to open a xterm with gdb. That will work with a normal program but with curses I can't give the key "y" (yes) for attaching of gdb to the error. I tried the -input-fd option but it didn't work. Here is my valgrind commandline maybe someone can correct my in that what that the keys are accepted! valgrind --tool=memcheck --log-file=logfile.txt --db-attach=yes --db-command="xterm -e gdb -nw %f %p" --input-fd=2 cursesprogram If valgrind was started and an error did occur in the logfile.txt, I say the question about attaching of the gdb. So valgrind did wait on my keyboard input. On an other xterm I tried to send the "y" key to valgrind with the following command. echo "y" >&2 Can somebody help to get it right?! Hier is a link to an conversation about the curses problem. But I did not found a working example/tutorial for valgrind + curses_program. http://sourceforge.net/mailarchive/forum.php?forum_id=32038&style=flat&viewd ay=12&viewmonth=200305 Thanks for listening. Enno |