* GNU Emacs 21.1.1 prepends drive letter to source pathname in gdb mode
@ 2004-01-29 23:18 Starwatcher
2004-01-29 23:36 ` Stefan Monnier
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Starwatcher @ 2004-01-29 23:18 UTC (permalink / raw)
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.)
PS: I suspect the version of emacs delivered with Cygwin does not have
the problem but, for several reasons, I don't want to go through the
hassle of using/configuring Cygwin Emacs...
--
Laurent
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GNU Emacs 21.1.1 prepends drive letter to source pathname in gdb mode
2004-01-29 23:18 GNU Emacs 21.1.1 prepends drive letter to source pathname in gdb mode Starwatcher
@ 2004-01-29 23:36 ` Stefan Monnier
2004-01-30 0:01 ` Jeffery B. Rancier
[not found] ` <mailman.1586.1075421030.928.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2004-01-29 23:36 UTC (permalink / raw)
> 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.
Various options:
- convince cygwin people that GDB should ouput non-cygwin-specific paths.
- try a non-cygwin GDB
- try a cygwin Emacs (you've turned down the offer already, but I include
it anyway)
- try cygwin-mount.el (or somesuch name).
-- Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GNU Emacs 21.1.1 prepends drive letter to source pathname in gdb mode
2004-01-29 23:18 GNU Emacs 21.1.1 prepends drive letter to source pathname in gdb mode Starwatcher
2004-01-29 23:36 ` Stefan Monnier
@ 2004-01-30 0:01 ` Jeffery B. Rancier
[not found] ` <mailman.1586.1075421030.928.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 4+ messages in thread
From: Jeffery B. Rancier @ 2004-01-30 0:01 UTC (permalink / raw)
"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
`----
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GNU Emacs 21.1.1 prepends drive letter to source pathname ingdb mode
[not found] ` <mailman.1586.1075421030.928.help-gnu-emacs@gnu.org>
@ 2004-01-30 21:18 ` Starwatcher
0 siblings, 0 replies; 4+ messages in thread
From: Starwatcher @ 2004-01-30 21:18 UTC (permalink / raw)
Thanks Stefan and Jeffery, cygwin-mount.el is exactly what I needed and
it works perfectly !
--
Laurent
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-01-30 21:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-29 23:18 GNU Emacs 21.1.1 prepends drive letter to source pathname in gdb mode Starwatcher
2004-01-29 23:36 ` Stefan Monnier
2004-01-30 0:01 ` Jeffery B. Rancier
[not found] ` <mailman.1586.1075421030.928.help-gnu-emacs@gnu.org>
2004-01-30 21:18 ` GNU Emacs 21.1.1 prepends drive letter to source pathname ingdb mode Starwatcher
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).