From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32615 invoked by alias); 22 Jul 2010 11:31:52 -0000 Received: (qmail 32606 invoked by uid 22791); 22 Jul 2010 11:31:51 -0000 X-SWARE-Spam-Status: No, hits=-6.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 22 Jul 2010 11:31:46 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o6MBViHt006859 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 22 Jul 2010 07:31:45 -0400 Received: from host1.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o6MBVgrk015858 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 22 Jul 2010 07:31:44 -0400 Received: from host1.dyn.jankratochvil.net (localhost [127.0.0.1]) by host1.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id o6MBVgCh030342; Thu, 22 Jul 2010 13:31:42 +0200 Received: (from jkratoch@localhost) by host1.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id o6MBVffB030336; Thu, 22 Jul 2010 13:31:41 +0200 Date: Thu, 22 Jul 2010 11:31:00 -0000 From: Jan Kratochvil To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: [0/4] RFC: add DWARF index support Message-ID: <20100722113141.GA30210@host1.dyn.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-12-10) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-07/txt/msg00348.txt.bz2 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