From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Keith Knowles Newsgroups: gmane.emacs.bugs Subject: Re: Suggestion: (how to) make Gnu Emacs work with gdb under CYGWIN Date: Tue, 27 Dec 2005 21:27:53 -0500 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0335116599==" X-Trace: sea.gmane.org 1135748111 12946 80.91.229.2 (28 Dec 2005 05:35:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Dec 2005 05:35:11 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 28 06:35:11 2005 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ErTxm-0002DD-7N for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Dec 2005 06:35:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ErTz3-00055Q-V8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Dec 2005 00:36:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ErR40-00084K-Uj for bug-gnu-emacs@gnu.org; Tue, 27 Dec 2005 21:29:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ErR3z-000846-FQ for bug-gnu-emacs@gnu.org; Tue, 27 Dec 2005 21:29:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ErR3z-000842-5i for bug-gnu-emacs@gnu.org; Tue, 27 Dec 2005 21:29:15 -0500 Original-Received: from [66.249.82.192] (helo=xproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ErR45-0006Ip-2l for bug-gnu-emacs@gnu.org; Tue, 27 Dec 2005 21:29:21 -0500 Original-Received: by xproxy.gmail.com with SMTP id s8so1000664wxc for ; Tue, 27 Dec 2005 18:27:54 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=uAjfW4PO+2tvs4OP2GC8gX2iwMaB6j7XeO4bJHx7Mue5RFb+9rajz4ypVGWbRSyw1u1Rq81zzDAz2JUalD7sXZ64LsfR/xf+pjJgBrOvvVPw9SnB41zlqDfCrbTEwtHTQiBRxxkx6LdWPsxGketJNZdOdlPRCJ9JvxCEEs0DwF4= Original-Received: by 10.11.98.74 with SMTP id v74mr92903cwb; Tue, 27 Dec 2005 18:27:54 -0800 (PST) Original-Received: by 10.11.120.24 with HTTP; Tue, 27 Dec 2005 18:27:53 -0800 (PST) Original-To: bug-gnu-emacs@gnu.org In-Reply-To: X-Mailman-Approved-At: Wed, 28 Dec 2005 00:36:15 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:14683 Archived-At: --===============0335116599== Content-Type: multipart/alternative; boundary="----=_Part_14846_32616685.1135736873979" ------=_Part_14846_32616685.1135736873979 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Incidentally, I neglected to say that I now have a work-around. T'is most odious! I preload the *.[ch] from my cwd and copy them into shadow buffers with the <2> name and the mythical c:/cygdrive file name and (not-modified). I will put this on a gdb-hook. I don't think I can live with this long-term but at least I am now debugging on Windows in other than Visual Studio. On 12/27/05, Keith Knowles wrote: > > On 19 March, 2003, I posted a note: > Emacs M-x gdb does not correlate CYGWIN symlinks to source files to > cygwin@cygwin.com. > > > The suggestion was, "use CYGWIN Emacs". (I tried it but stayed with Gnu.= ) > > I just tried this once more, but in a very simple environment (no symboli= c > links of any kind). > > When a break triggers in "test.c", Emacs opens a buffer, "test.c<2>" on > mythical file > "c:/cygwin/c/...test.c". It appears that Emacs helpfully added the > missing drive letter. > > I suggest that if Emacs did not add the drive letter when the /cygdrive > notation is present > (on a system with CYGWIN installed), then Gnu Emacs, CYGWIN and gdb would > all play > together straight out of the box. > > (Of course, I could just be doing something horribly wrong, since I canno= t > imagine that I > am the first to tread this path and, no, I can't really believe this > doesn't work.) > > Cheers, > Keith > > ------=_Part_14846_32616685.1135736873979 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Incidentally, I neglected to say that I now have a work-around.
T'is most odious!

I preload the *.[ch] from my cwd and copy them into shadow
buffers with the <2> name and the mythical c:/cygdrive file
name and (not-modified).  I will put this on a gdb-hook.

I don't think I can live with this long-term but at least I am now
debugging on Windows in other than Visual Studio.



On 12/27/05, Keith Knowles <k= eith.knowles@gmail.com> wrote:
On 19 March, 2003, I posted a note:

Emacs M-x gdb does not correlate CYGWIN symlinks to so= urce files

to cygwin@cygwin.com.


The suggestion was, "use CYGWIN Emacs".  (I tried it bu= t stayed with Gnu.)

I just tried this once more, but in a very simple environment (no symbolic = links of any kind).

When a break triggers in "test.c", Emacs opens a buffer, "te= st.c<2>" on mythical file
"c:/cygwin/c/...test.c".  It appears that Emacs helpfully ad= ded the missing drive letter.

I suggest that if Emacs did not add the drive letter when the /cygdrive not= ation is present
(on a system with CYGWIN installed), then Gnu Emacs, CYGWIN and gdb would a= ll play
together straight out of the box.

(Of course, I could just be doing something horribly wrong, since I cannot = imagine that I
am the first to tread this path and, no, I can't really believe this doesn'= t work.)

Cheers,
Keith


------=_Part_14846_32616685.1135736873979-- --===============0335116599== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ bug-gnu-emacs mailing list bug-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs --===============0335116599==--