public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: "Tim Chick" <TChick@virata.com>
To: <insight@sourceware.cygnus.com>
Subject: Insight TCL does not understand cygwin filenames
Date: Fri, 09 Jun 2000 05:57:00 -0000	[thread overview]
Message-ID: <009f01bfd212$374cd650$eedba8c0@tjc1laptop> (raw)

When I compile a simple hello.c file with cygwin gcc,
say /src/test/hello.c
then try to debug this file with insight, I get a stack
trace, "could not stat file /src/test/hello.c"

If I use gdb -nw, I can list the file properly, and there
are no problems.

This is because insight does a stat <filename> to check
the files modification time.

The tcl supplied with insight does not understand cygwin
filenames, so tries to stat "\src\test\hello.c"

As I have / mounted as e:\cygwin1.1, tcl should try to stat
E:\cygwin1.1\src\test\hello.c

Modifiying the Tcl_TranslateFileName function, in
insight-5.0\tcl\generic\tclFileName.c as follows
corrects this, and Insight works correctly.

Compare: (<)E:\cygnus\src\original\insight-5.0\tcl\generic\tclFileName.c
   with: (>)E:\cygnus\src\insight-5.0\tcl\generic\tclFileName.c

923a923,927
>     char dos_name[PATH_MAX];
> 
>     cygwin_conv_to_win32_path( name, dos_name );
> 
>     name=dos_name;

Note that if I happened to have / mounted as E:\ insight
would have worked without the above patch.

Tim


             reply	other threads:[~2000-06-09  5:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-09  5:57 Tim Chick [this message]
2000-06-09 17:56 ` Chris Faylor
2000-06-12 10:37   ` Syd Polk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='009f01bfd212$374cd650$eedba8c0@tjc1laptop' \
    --to=tchick@virata.com \
    --cc=insight@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).