This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [0/4] RFC: add DWARF index support
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 22 Jul 2010 13:31:41 +0200
- Subject: Re: [0/4] RFC: add DWARF index support
- References: <m3aaqcqhgn.fsf@fleche.redhat.com> <m339vs36lj.fsf@fleche.redhat.com>
On Fri, 09 Jul 2010 19:31:04 +0200, Tom Tromey wrote:
> --- /dev/null
> +++ b/gdb/gdb-add-index
[...]
> +dir="${file%/*}"
> +
> +# We don't care if gdb gives an error.
> +gdb --batch-silent -ex "file $file" -ex "save gdb-index $d" > /dev/null 2>&1
^^
$d -> $dir
Also I would prefer removing the /dev/null redirection, normally GDB does not
produce any message anyway. Suppressing messages by the caller is always
easier than unsuppressing them.
Thanks,
Jan