delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/03/17/12:25:53

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <36EFE4FE.FB1D1642@hem2.passagen.se>
Date: Wed, 17 Mar 1999 18:23:10 +0100
From: Anders Norlander <anorland AT hem2 DOT passagen DOT se>
X-Mailer: Mozilla 4.01 [en] (Win95; I)
MIME-Version: 1.0
To: Richard Stanton <stanton AT haas DOT berkeley DOT edu>
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: gdb under EMACS - only works on drive C:
X-Priority: 3 (Normal)
References: <000801be703f$de3023e0$993a85d1 AT CONNOR DOT berkeley DOT edu>

Richard Stanton wrote:
> 
> I've been using gcc + gdb under EMACS for a long time with no trouble, but
> have just noticed a problem. I can't debug a program that's on a drive other
> than drive C: (I've never tried this before). Here's what happens when I try
> running d:\scratch\amput.exe:
[snip]
> This GDB was configured as "i586-cygwin32"...
> (gdb) break main
> Breakpoint 1 at 0x401077: file amput.c, line 31.
> (gdb) run
> Starting program: //D/scratch/amput.exe
		    ^^^^ cygwin path
[snip]
> So far so good, except that in the source window, a NEW file amput.c is
> created and displayed. Emacs seems to think it's called
> d:/D/scratch/amput.c.
> 
> Any idea what's going wrong?
You are using NT emacs, right? NT emacs is not a cygwin program (it
could
possibly be compiled with cygwin tools. Anybody tried this?) and
therefore
doesn't recognize cygwin style paths with a specified drive or paths
containing "mounted" directories. As you see emacs strips the first
leading '/' and thinks the rest is a valid windows path, which it is
not!

Regards,
Anders

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019