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>
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 [thread overview]
Message-ID: <a2b32a26f4084b56988c1d9b597476e9@checkpoint.com> (raw)
In-Reply-To: <83fsruzwki.fsf@gnu.org>
-----Original Message-----
From: Eli Zaretskii [mailto:eliz@gnu.org]
Sent: Wednesday, 17 November 2021 16:28
To: Guy Offer <guyof@checkpoint.com>
Cc: 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: Wed, 17 Nov 2021 14:00:39 +0000
>
> This GDB was configured as follows:
> configure --host=x86_64-pc-cygwin --target=x86_64-redhat-linux-gnu
Does this mean this is a GDB that targets Red Hat GNU/Linux and not a Cygwin-native debugger? yes
> Regarding Emacs GDB support: Emacs has UI support for GDB (GUD GDB) which can display code source in Emacs buffers.
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 pathname to \\cygdrive\f\source. However in that case the gdb command window cannot access the file.
Pls note that this happens only if f is a network drive .
And btw, why you mention file names with backslashes? does using forward slashes, as in "/cygdrive/f/source/", work for you?
Sorry for the confusion in the bug report - I used only slashes .
/cygdrive/f/source - worked for accessing source from the gdb command window (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.
This happened when f points to a remote network drive.
If all of the above doesn't help, please show a minimal recipe starting from "emacs -Q", where the problem happens: maybe we are missing some important clue.
Secured by Check Point
________________________________
Report suspicious email
<https://mta-cnf.iaas.checkpoint.com/cmta_feedback_request?id=Zjc2OTQzNzJiMzdjZDFjMTk0ZWYyOTA0NTZmM2Y2NmMwOTZmYzNmOTVkMjM3NzhmYTMxYmVmZTlkZmRhNWNkMA==&t=YWI5ZjBkMjktYmI3Yy00OGI2LWIzYTMtODA0NTRmY2NjODNm>
________________________________
next prev parent reply other threads:[~2021-11-17 15:01 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 [this message]
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
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=a2b32a26f4084b56988c1d9b597476e9@checkpoint.com \
--to=bug-gnu-emacs@gnu.org \
--cc=51894@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=guyof@checkpoint.com \
/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).