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: Wed, 17 Nov 2021 15:01:09 +0000 Message-ID: References: <522fd31d7bfc4c6b93d1eee254fa1218@checkpoint.com> <83fsrw166y.fsf@gnu.org> <1110db48db9540d8a33bdf9117fa24ae@checkpoint.com> <83fsruzwki.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="33822"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "51894@debbugs.gnu.org" <51894@debbugs.gnu.org> To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 17 16:13:34 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 1mnMcw-0008d2-9H for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Nov 2021 16:13:34 +0100 Original-Received: from localhost ([::1]:46658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnMcu-0000RP-PX for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Nov 2021 10:13:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnMSk-0004GJ-Qk for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2021 10:03:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50121) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnMSk-0002pv-Hf for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2021 10:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mnMSj-0006T2-Vw for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2021 10:03: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: Wed, 17 Nov 2021 15:03: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.163716132924763 (code B ref 51894); Wed, 17 Nov 2021 15:03:01 +0000 Original-Received: (at 51894) by debbugs.gnu.org; 17 Nov 2021 15:02:09 +0000 Original-Received: from localhost ([127.0.0.1]:33434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnMRt-0006RL-CG for submit@debbugs.gnu.org; Wed, 17 Nov 2021 10:02:09 -0500 Original-Received: from michael.checkpoint.com ([194.29.34.68]:52464 helo=smtp.checkpoint.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnMRp-0006Qg-Se for 51894@debbugs.gnu.org; Wed, 17 Nov 2021 10:02:08 -0500 x-m-msg: CPCHECK DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.checkpoint.com 1AHF1vYq027317 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=checkpoint.com; s=default; t=1637161319; bh=t8HqSd8hNGKSp4GfHapVKMyefq9QXceDQAP8x3Tnqeo=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=JirArJ89cn9bajLJmuZEH3E3l2f0hF/spMAOuhQQ9LCjw4AYUm2K61h0m+/tXzC52 CVLTN/zhEbRLyA3YGsiJ8HsUvrDJTmzYQj3nqyy73pI2bI2h2gX+6VVnuaRUI1WwXA 88Rp7xo2jE73QtvzlE7F7S3wbxbFVqso1QmOj8gM= 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 1AHF1vYq027317; Wed, 17 Nov 2021 17:01:58 +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; Wed, 17 Nov 2021 17:01:09 +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; Wed, 17 Nov 2021 17:01:09 +0200 Thread-Topic: bug#51894: 27.2; GDB Gud support on Cygwin has trouble accessing shared files on Windows network drives. Thread-Index: Adfay1ESiUfQqo4aRYeuzzs4YFnEUQAMmpgUAC8es7AAAWuEUwAAyhKA In-Reply-To: <83fsruzwki.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US x-originating-ip: [194.29.34.56] 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:220210 Archived-At: -----Original Message----- From: Eli Zaretskii [mailto:eliz@gnu.org]=20 Sent: Wednesday, 17 November 2021 16:28 To: Guy Offer Cc: 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: Wed, 17 Nov 2021 14:00:39 +0000 >=20 > This GDB was configured as follows: > configure --host=3Dx86_64-pc-cygwin --target=3Dx86_64-redhat-linux-gnu Does this mean this is a GDB that targets Red Hat GNU/Linux and not a Cygwi= n-native debugger? yes > Regarding Emacs GDB support: Emacs has UI support for GDB (GUD GDB) which= can display code source in Emacs buffers.=20 Are you using "M-x gdb RET" or "M-x gud-gdb RET"? M-x gdb RET Also, is Emacs capable of visiting file specified as "\cygdrive\f\source\",= i.e. does "C-x C-f" work with such names? Emacs can do that if I load the = file manually. However, when emacs tries to open the file as received from= gdb (to display the source) it fails. It only succeeds if I set the pathn= ame to \\cygdrive\f\source. However in that case the gdb command window ca= nnot access the file.=20 Pls note that this happens only if f is a network drive . And btw, why you mention file names with backslashes? does using forward sl= ashes, as in "/cygdrive/f/source/", work for you? Sorry for the confusion in the bug report - I used only slashes . =20 /cygdrive/f/source - worked for accessing source from the gdb command windo= w (GUD gdb window) but not for opening the source from the GDB buffer. //cygdrive/f/source - worked for opening the source in a GDB buffer but not= for accessing the source from the gdb command window.=20 This happened when f points to a remote network drive.=20 If all of the above doesn't help, please show a minimal recipe starting fro= m "emacs -Q", where the problem happens: maybe we are missing some importan= t clue. Secured by Check Point ________________________________ Report suspicious email ________________________________