From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26350 invoked by alias); 14 Sep 2002 04:40:38 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 26339 invoked from network); 14 Sep 2002 04:40:37 -0000 Received: from unknown (HELO redhat.com) (66.30.22.225) by sources.redhat.com with SMTP; 14 Sep 2002 04:40:37 -0000 Received: by redhat.com (Postfix, from userid 201) id C61251BD31; Sat, 14 Sep 2002 00:40:42 -0400 (EDT) Date: Fri, 13 Sep 2002 21:40:00 -0000 From: Christopher Faylor To: gdb-patches@sources.redhat.com Subject: Re: Finding source files under cygwin Message-ID: <20020914044042.GC23240@redhat.com> Reply-To: gdb-patches@sources.redhat.com Mail-Followup-To: gdb-patches@sources.redhat.com References: <3D82897C.81376AD6@agilent.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D82897C.81376AD6@agilent.com> User-Agent: Mutt/1.4i X-SW-Source: 2002-09/txt/msg00291.txt.bz2 [NOTE: Reply-To set to gdb-patches] On Fri, Sep 13, 2002 at 05:57:32PM -0700, Earl Chew wrote: >One fix I can think of is to fix open_source_file() using >#ifdef __CYGWIN__ to silently subsitute /cygdrive/d/xxx/yyy/zzz >instead. > >A variation on this is to make the fix in buildsym.c instead >(ie store the corrected version of the directory instead of >patching it later). I don't think this is the best way to go. > >Another fix is to make source.c use ; (semicolon) as a path >separator instead of : (colon) should HAVE_DOS_BASED_FILE_SYSTEM >be true. The downside here is that it might be surprising >to current cygwin users. This one is out. This would break backwards compatibility and would be incompatible with the convention used in the rest of cygwin. The simplest solution is to just compile your object files using the /cygdrive/d/xxx/yyy/zzz syntax. The ability to use this syntax is one of the motivations for cygwin. However, if you want to provide a patch for either open_source_file or buildsym.c, I'll gladly review it. cgf