From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Guy Offer via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#51894: 27.2; GDB Gud support on Cygwin has trouble accessing shared files on Windows network drives. Date: Thu, 18 Nov 2021 08:54:22 +0000 Message-ID: <45a58bbbf003472e9332306dd261238a@checkpoint.com> References: <522fd31d7bfc4c6b93d1eee254fa1218@checkpoint.com> <83fsrw166y.fsf@gnu.org> <1110db48db9540d8a33bdf9117fa24ae@checkpoint.com> <83fsruzwki.fsf@gnu.org> <83bl2izpcv.fsf@gnu.org> <9fac329f-43d2-a27e-3fd5-f6522993a30f@cornell.edu> <7bed7b9225494404b83915071b37ea6e@checkpoint.com> <83mtm1yhz0.fsf@gnu.org> Reply-To: Guy Offer Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25825"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "51894@debbugs.gnu.org" <51894@debbugs.gnu.org>, "kbrown@cornell.edu" To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 18 09:55:20 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mndCR-0006X6-NM for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Nov 2021 09:55:20 +0100 Original-Received: from localhost ([::1]:35766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mndCQ-0002jP-KC for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Nov 2021 03:55:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mndC9-0002iw-Vw for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 03:55:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51331) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mndC9-0007AL-Mr for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 03:55:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mndC9-00068u-Le for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 03:55:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Guy Offer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Nov 2021 08:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51894 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 51894-submit@debbugs.gnu.org id=B51894.163722568423576 (code B ref 51894); Thu, 18 Nov 2021 08:55:01 +0000 Original-Received: (at 51894) by debbugs.gnu.org; 18 Nov 2021 08:54:44 +0000 Original-Received: from localhost ([127.0.0.1]:34644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mndBr-00068C-GB for submit@debbugs.gnu.org; Thu, 18 Nov 2021 03:54:43 -0500 Original-Received: from michael.checkpoint.com ([194.29.34.68]:33368 helo=smtp.checkpoint.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mndBm-00067d-8X for 51894@debbugs.gnu.org; Thu, 18 Nov 2021 03:54:42 -0500 x-m-msg: CPCHECK DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.checkpoint.com 1AI8sSqC025286 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=checkpoint.com; s=default; t=1637225669; bh=A/bjiuy7UtlT1nyLRCZ7lrdZWd5S4rVWne2Uq2DkiDg=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=UT5YtRU6yQCVCPfwoKWpyduE22n5bsBbJD41dcQaCAeU6uRzRgP11zRwIABPgGCEo 49q+GE88z+CHZA6V6z30Vh1zfPU+5rECyw2c18NCBBNY9NM3YE7Yh1rUNHrztYzca4 /iHIHZb+axpu2Lp8tZwgWpSy7seK8Jh1M5LGiR2Q= Original-Received: from ilp-tlv-ex03.ad.checkpoint.com (ilp-tlv-ex03.ad.checkpoint.com [194.29.34.164]) by smtp.checkpoint.com (8.14.7/8.14.7) with ESMTP id 1AI8sSqC025286; Thu, 18 Nov 2021 10:54:29 +0200 Original-Received: from ilp-tlv-ex02.ad.checkpoint.com (194.29.34.172) by ilp-tlv-ex03.ad.checkpoint.com (194.29.34.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Thu, 18 Nov 2021 10:54:22 +0200 Original-Received: from ilp-tlv-ex02.ad.checkpoint.com ([fe80::3de2:257a:40ba:51ad]) by ilp-tlv-ex02.ad.checkpoint.com ([fe80::3de2:257a:40ba:51ad%6]) with mapi id 15.01.2375.007; Thu, 18 Nov 2021 10:54:22 +0200 Thread-Topic: bug#51894: 27.2; GDB Gud support on Cygwin has trouble accessing shared files on Windows network drives. Thread-Index: Adfay1ESiUfQqo4aRYeuzzs4YFnEUQAMmpgUAC8es7AAAWuEUwAAyhKAAASj/Cr//+e4gP/+9TLAgAIqZmv////HEA== In-Reply-To: <83mtm1yhz0.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US x-originating-ip: [194.29.34.56] x-cpdlp: 1142c178ae605a5863d87a487d0fded111b0408456 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:220272 Archived-At: -----Original Message----- From: Eli Zaretskii [mailto:eliz@gnu.org]=20 Sent: Thursday, 18 November 2021 10:41 To: Guy Offer Cc: kbrown@cornell.edu; 51894@debbugs.gnu.org Subject: Re: bug#51894: 27.2; GDB Gud support on Cygwin has trouble accessi= ng shared files on Windows network drives. > From: Guy Offer > CC: "51894@debbugs.gnu.org" <51894@debbugs.gnu.org> > Date: Thu, 18 Nov 2021 07:53:37 +0000 >=20 > * If you set the code path (set substitute-path) to the actual code locat= ion /cygdrive/f/source the code will be available to the gdb command window= but will not be opened automatically in the primary source window/buffer.= =20 > * If you set the code location to //cygdrive/f/source the code will be av= ailable to the source window - but not to the gdb command window.=20 Why is "set substitute-path" command needed? The program you are debugging= should have the source location recorded in the debug info, so that step s= hould not be needed. I'm asking because perhaps this step is an important part of the problem. =3D=3D=3D> It was compiled on a different location.=20 I had the same problem occurring when using the "directory" command (addin= g a directory to the source search path) as well. Also, can you try "M-x gud-gdb RET" instead, and see if the problem exists = there as well? Maybe there's something in gdb-mi.el that doesn't work well= in this case, in particular when it parses the file names reported by GDB'= s MI interface. For that reason, I'd be interested to see the raw data abo= ut source file names emitted by GDB in response to Emacs's queries. For th= at purpose, activate the gdb-enable-debug minor mode, and show the contents= of the variable gdb-debug-log after a command that results in such failure= s. =3D=3D=3D=3D=3D> The gud-gdb does not have the IDE support (it only runs th= e gdb on a single window without opening the source files, stack or variabl= e windows). > Another problem : when the source is not available the Emacs command prom= pt get into a loop. I believe that was fixed in Emacs 28. Secured by Check Point ________________________________ Report suspicious email ________________________________