[binutils-gdb] * gdb/source.c: Comment on Emacs double slash processing feature

Eli Zaretskii eliz@sourceware.org
Thu Sep 18 10:53:58 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=02c8a09dbfe1af31abf50a608ac27d3d370f2483

commit 02c8a09dbfe1af31abf50a608ac27d3d370f2483
Author: Jeremy Bryant <jb@jeremybryant.net>
Date:   Sat Aug 2 21:30:38 2025 +0100

    * gdb/source.c: Comment on Emacs double slash processing feature

Diff:
---
 gdb/source.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gdb/source.c b/gdb/source.c
index 8cb5c3673a8..99dffa8c0e2 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -774,9 +774,9 @@ prepare_path_for_appending (const char *path)
 
    If FILENAME_OPENED is non-null, set it to a newly allocated string naming
    the actual file opened (this string will always start with a "/").  We
-   have to take special pains to avoid doubling the "/" between the directory
-   and the file, sigh!  Emacs gets confuzzed by this when we print the
-   source file name!!! 
+   have to ensure that we avoid doubling the "/" between the directory and the
+   file, because Emacs has special treatment of double slashes.
+   See "(emacs) Minibuffer File".
 
    If OPTS has OPF_RETURN_REALPATH set return FILENAME_OPENED resolved by
    gdb_realpath.  Even without OPF_RETURN_REALPATH this function still returns


More information about the Gdb-cvs mailing list