[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNU Emacs 21.1.1 prepends drive letter to source pathname in gdb mod
From: |
Jeffery B. Rancier |
Subject: |
Re: GNU Emacs 21.1.1 prepends drive letter to source pathname in gdb mode |
Date: |
Thu, 29 Jan 2004 19:01:48 -0500 |
User-agent: |
Gnus/5.110001 (No Gnus v0.1) Emacs/21.3 (windows-nt) |
"Starwatcher" <l.faureytierNoSpam@laposte.net> writes:
> I am a happy user of the windows build of Emacs: "GNU Emacs 21.1.1
> (i386-msvc-windows98.3000)" EXCEPT that it does not seem to integrate
> smoothly with Cygwin gdb.
>
> The problem I have is that, when using gdb-mode (M-x gdb), the automatic
> "source buffer" doesn't display the source code although I can see the
> instruction pointer marker in the left margin and the right source file
> basename (e.g. "hello.c") in the status bar.
>
> The reason seems to be Emacs failing to load the source file because
> both Emacs and Cygwin gdb have prepended the drive letter to the
> pathname of the source being debugged, resulting in an invalid pathname:
> <driveletter>:/cygdrive/<driveletter>/<unix-like
> pathname>/filename.c
> e.g.:
> e:/cygdrive/e/dev/hello/src/hello.c
>
> Any idea to work around this ? (through Emacs configuration, gdb
> options, gcc compiler options, etc.)
,----
| http://www.emacswiki.org/elisp/cygwin-mount.el
`----
Might do it for you.
--
Thanks,
Jeff
,----
| Jeffery B. Rancier
|
| Softechnics
| a METTLER TOLEDO company
`----