From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29932 invoked by alias); 14 Apr 2006 14:58:09 -0000 Received: (qmail 29922 invoked by uid 22791); 14 Apr 2006 14:58:09 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 14 Apr 2006 14:58:06 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FUPkI-00046w-P7; Fri, 14 Apr 2006 10:58:02 -0400 Date: Fri, 14 Apr 2006 14:58:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: Frederic RISS , gdb-patches@sourceware.org Subject: Re: [RFC] Don't lose compilation directory in Dwarf2 line-tables Message-ID: <20060414145802.GA15732@nevyn.them.org> Mail-Followup-To: Eli Zaretskii , Frederic RISS , gdb-patches@sourceware.org References: <1144927446.14807.561.camel@crx549.cro.st.com> <8f2776cb0604131049i69e9b20fv78e60c023f245e56@mail.gmail.com> <1144999942.14807.721.camel@crx549.cro.st.com> <1145015039.14807.767.camel@crx549.cro.st.com> <1145022137.14807.794.camel@crx549.cro.st.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00194.txt.bz2 On Fri, Apr 14, 2006 at 05:21:41PM +0300, Eli Zaretskii wrote: > > Really? my checkout from yersterday still asks me : > > (gdb) dir > > Reinitialize source path to empty? (y or n) y > > > > Source directories searched: $cdir:$cwd > > Right you are, but this raises an issue with the Windows port (where I > originally checked this): it does NOT ask for permission. > > [Time passes...] Ah, I see, it's probably because > input_from_terminal_p returns zero on Windows. Is this fixable? How current is your binary, and what are you running it in? And what's the host platform configured as? If it's a MinGW32-hosted GDB, and you're running it in a DOS console, and the binary is more than a few months old, than this is an expected and fixed bug; try a current CVS. If this is a DJGPP binary running in a Windows console, then I'm not really sure what to do. I haven't tried that. You'd have to do something similar to what I did for mingw32. The problem came in gdb_has_a_terminal. You have to have serial_fdopen work on the console, and you have to be able to get the terminal state from the result. > Anyway, I think we should modify the prompt to say this: > > Reinitialize source path to default? (y or n) > > Does anyone disagree? This sounds good to me. -- Daniel Jacobowitz CodeSourcery