This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Finding source files under cygwin
- From: Christopher Faylor <cgf at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 14 Sep 2002 00:40:42 -0400
- Subject: Re: Finding source files under cygwin
- References: <3D82897C.81376AD6@agilent.com>
- Reply-to: gdb-patches at sources dot redhat dot com
[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