This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [0/4] RFC: add DWARF index support


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]