Package: valgrind
Version: 1:2.4.0-2
Severity: important

Hi,

valgrind's --db-attach=yes option ought to behave sensibly when
debugging programs with redirected stdin/stdout.

valgrind --db-attach=yes foo <input-file

will get to the first error and then exit(0)! This is Far From Ideal
(TM). It's particularly bad because programs that take input on stdin
and output onto stdout are a standard UNIX idiom, so not being able to
debug them sensibly using valgrind/gdb is a serious
problem. Suggesting authors of code re-write chunks of code just to be
able to debug them is not plausible.

Valgrind should supply a gdb helper script that replugs fds and
/dev/tty to set things up in the obviously sensible manner, and that
should be the default debugger command. I don't believe this would be
overly difficult to do.

Thanks,

Matthew

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.25
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages valgrind depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to