From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19004 invoked by alias); 9 Nov 2007 13:59:54 -0000 Received: (qmail 18987 invoked by uid 22791); 9 Nov 2007 13:59:53 -0000 X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.185) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 09 Nov 2007 13:59:48 +0000 Received: by nf-out-0910.google.com with SMTP id b11so421637nfh for ; Fri, 09 Nov 2007 05:59:45 -0800 (PST) Received: by 10.86.70.8 with SMTP id s8mr1482355fga.1194616785233; Fri, 09 Nov 2007 05:59:45 -0800 (PST) Received: by 10.86.27.20 with HTTP; Fri, 9 Nov 2007 05:59:45 -0800 (PST) Message-ID: <4053daab0711090559t644dee06ga207c5a8f0189909@mail.gmail.com> Date: Fri, 09 Nov 2007 13:59:00 -0000 From: "Pedro Alves" To: "Pedro Alves" , gdb-patches@sourceware.org, insight@sourceware.org Subject: Re: syms_from_objfile() warnings and win32-nat.c IO redirection (Was: suppress annoying warnings about cygwin1.dbg) In-Reply-To: <20071109133408.GA15911@ednor.casa.cgf.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071011195327.GB8200@caradoc.them.org> <47101DB4.6010204@portugalmail.pt> <20071024184207.GA10943@caradoc.them.org> <4725378D.5010800@portugalmail.pt> <4053daab0710290203q5aa79bam6a8e87e5c6a837ba@mail.gmail.com> <20071029123318.GA16009@caradoc.them.org> <20071030011953.GA28693@ednor.casa.cgf.cx> <4733A007.2040201@portugalmail.pt> <4733A059.6000609@portugalmail.pt> <20071109133408.GA15911@ednor.casa.cgf.cx> X-Google-Sender-Auth: 7783acc3edc8c6f0 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: 2007-11/txt/msg00201.txt.bz2 Christopher Faylor wrote: > > On Thu, Nov 08, 2007 at 11:48:41PM +0000, Pedro Alves wrote: > > Pedro Alves wrote: > >> Is there anything else preventing us from removing the > >> stderr -> null redirection from win32-nat.c ? > > > > Like so ? > > > >2007-11-08 Pedro Alves > > > > * win32-nat.c (safe_symbol_file_add_args, > > safe_symbol_file_add_stub, safe_symbol_file_add_cleanup) > > (safe_symbol_file_add): Remove. > > (dll_symbol_command): Call symbol_file_add directly. > > > > That would do it but removing that code would mean lots of console > chatter unless you're debugging with the most recent, unreleased version > of the DLL. I think we need to keep that code in gdb until the next version > of cygwin is released - and that is not even on the horizon yet. > On the current Cygwin release, having cygwin1.dbg in /usr/bin/cygwin1.dbg when the debug info is first loaded (normally, when the inferior is ran), is already chatty on gdb head and unfortunatelly also on 6.7.x (except for the new cygwin snapshots, of course) The redirection is only done on the "dll-symbols" command. The warnings only happen on cygwin1.dll. Every other dll should not have that problem, unless their debug file format is also non conformant. I don't think that adding cygwin1.dll manually is a common use case. If you don't want the warnings on 6.7, we'll have to apply the cygwin1.dbg generation patch on the 1.5 branch (, or wherever that is. A pretty safe patch, in my opinion). Unless we're talking about a different set of warnings, in which case, let's get those fixed. Cheers, Pedro Alves