From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Starwatcher" Newsgroups: gmane.emacs.help Subject: GNU Emacs 21.1.1 prepends drive letter to source pathname in gdb mode Date: Fri, 30 Jan 2004 00:18:17 +0100 Organization: Wanadoo, l'internet avec France Telecom Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1075419125 8473 80.91.224.253 (29 Jan 2004 23:32:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Jan 2004 23:32:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 30 00:31:59 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AmLdf-0008EV-00 for ; Fri, 30 Jan 2004 00:31:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AmLd0-0005UZ-1b for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Jan 2004 18:31:18 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!wanadoo.fr!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: apastourelles-107-1-7-235.w217-128.abo.wanadoo.fr Original-X-Trace: news-reader5.wanadoo.fr 1075418464 2496 217.128.208.235 (29 Jan 2004 23:21:04 GMT) Original-X-Complaints-To: abuse@wanadoo.fr Original-NNTP-Posting-Date: 29 Jan 2004 23:21:04 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Original-Xref: shelby.stanford.edu gnu.emacs.help:120577 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:16523 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16523 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: :/cygdrive///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