From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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 10:40:35 +0200 Message-ID: <83mtm1yhz0.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31137"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51894@debbugs.gnu.org To: Guy Offer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 18 09:41:11 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 1mncyk-0007tx-Mz for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Nov 2021 09:41:10 +0100 Original-Received: from localhost ([::1]:59858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mncyj-0007St-Ch for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Nov 2021 03:41:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mncyc-0007Sf-01 for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 03:41:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51311) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mncyb-0004zb-Nt for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 03:41:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mncyb-0005ir-LA for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 03:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Nov 2021 08:41: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.163722484821963 (code B ref 51894); Thu, 18 Nov 2021 08:41:01 +0000 Original-Received: (at 51894) by debbugs.gnu.org; 18 Nov 2021 08:40:48 +0000 Original-Received: from localhost ([127.0.0.1]:34624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mncyO-0005iB-Bc for submit@debbugs.gnu.org; Thu, 18 Nov 2021 03:40:48 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mncyN-0005hv-Bn for 51894@debbugs.gnu.org; Thu, 18 Nov 2021 03:40:47 -0500 Original-Received: from [2001:470:142:3::e] (port=40700 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mncyG-0004qq-CC; Thu, 18 Nov 2021 03:40:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=HPLATAepjX30v+4m8wVEUZ5qxWVoUyNFFRKIgo1MVX8=; b=cCmTOwaPWq1w eDd8pN1YmHaMp6GEE1KkbIOUFSsRK4PwQpVeqNx+EVmB+0e7vZIEn1J/eJ10NeGlQN3MkNtGcYchd PRBkS0ufkwpximDHXo7MK6vGha7I7R8XI8jALSynJec06VthYzbkxy4vbKL0vNyS2tsbMGD6lGa1v xT/U6PzVhxeLsrkT6jOdldkCozdjS4MDVK/rINx+GtIam90cO8YtmPoBZFnCI2TiimQP9xXiQUcg+ 8bnaJkKiJNT60osao+1+P62TQO0YpziuK7ppOsdsseru+xyHsddssPJy1sETYCpS0lsAd2g/aS/GW fD2zFWLd2LPypwOSPLAXpQ==; Original-Received: from [87.69.77.57] (port=1563 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mncyG-0006VE-65; Thu, 18 Nov 2021 03:40:40 -0500 In-Reply-To: <7bed7b9225494404b83915071b37ea6e@checkpoint.com> (message from Guy Offer on Thu, 18 Nov 2021 07:53:37 +0000) 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:220271 Archived-At: > From: Guy Offer > CC: "51894@debbugs.gnu.org" <51894@debbugs.gnu.org> > Date: Thu, 18 Nov 2021 07:53:37 +0000 > > * If you set the code path (set substitute-path) to the actual code location /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. > * If you set the code location to //cygdrive/f/source the code will be available to the source window - but not to the gdb command window. 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 should not be needed. I'm asking because perhaps this step is an important part of the problem. 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 about source file names emitted by GDB in response to Emacs's queries. For that 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 failures. > Another problem : when the source is not available the Emacs command prompt get into a loop. I believe that was fixed in Emacs 28.