bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#51894: 27.2; GDB Gud support on Cygwin has trouble accessing shared


From: Guy Offer
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


-----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>
________________________________








reply via email to

[Prev in Thread] Current Thread [Next in Thread]