unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Guy Offer via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "51894@debbugs.gnu.org" <51894@debbugs.gnu.org>,
	"kbrown@cornell.edu" <kbrown@cornell.edu>
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	[thread overview]
Message-ID: <45a58bbbf003472e9332306dd261238a@checkpoint.com> (raw)
In-Reply-To: <83mtm1yhz0.fsf@gnu.org>



-----Original Message-----
From: Eli Zaretskii [mailto:eliz@gnu.org] 
Sent: Thursday, 18 November 2021 10:41
To: Guy Offer <guyof@checkpoint.com>
Cc: kbrown@cornell.edu; 51894@debbugs.gnu.org
Subject: Re: bug#51894: 27.2; GDB Gud support on Cygwin has trouble accessing shared files on Windows network drives.

> From: Guy Offer <guyof@checkpoint.com>
> 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.
===>
	It was compiled on a different location. 
	I had the same problem occurring when using the "directory" command (adding 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 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.

=====> The gud-gdb does not have the IDE support (it only runs the gdb on a single window without opening the source files, stack or variable windows).

> Another problem : when the source is not available the Emacs command prompt get into a loop.

I believe that was fixed in Emacs 28.


Secured by Check Point


________________________________

Report suspicious email
<https://mta-cnf.iaas.checkpoint.com/cmta_feedback_request?id=OTNmODc4NjYzMTE2NzlhOTZkNmI2NGQ4ZjI2MmY4ZjI2NDhhMDc4OTcyNmZkYjFmYzI0ZjMwNThiZTM5OGMyMA==&t=YWI5ZjBkMjktYmI3Yy00OGI2LWIzYTMtODA0NTRmY2NjODNm>
________________________________








  reply	other threads:[~2021-11-18  8:54 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-16  9:22 bug#51894: 27.2; GDB Gud support on Cygwin has trouble accessing shared files on Windows network drives Guy Offer via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-16 15:16 ` Eli Zaretskii
2021-11-17 14:00   ` Guy Offer via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-17 14:27     ` Eli Zaretskii
2021-11-17 15:01       ` Guy Offer via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-17 17:03         ` Eli Zaretskii
2021-11-17 17:40           ` Ken Brown
2021-11-18  7:53             ` Guy Offer via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-18  8:40               ` Eli Zaretskii
2021-11-18  8:54                 ` Guy Offer via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2021-11-18 11:02                   ` Eli Zaretskii
2021-11-18 14:17               ` Ken Brown
2021-11-18 14:58                 ` Eli Zaretskii
2021-11-18 20:15                   ` Ken Brown
2021-12-23 10:22                     ` Lars Ingebrigtsen
2021-12-23 13:45                       ` Ken Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45a58bbbf003472e9332306dd261238a@checkpoint.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=51894@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=guyof@checkpoint.com \
    --cc=kbrown@cornell.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).