This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Finding source files under cygwin


[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]