]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* gdb/source.c: Comment on Emacs double slash processing feature
authorJeremy Bryant <jb@jeremybryant.net>
Sat, 2 Aug 2025 20:30:38 +0000 (21:30 +0100)
committerEli Zaretskii <eliz@gnu.org>
Thu, 18 Sep 2025 10:53:31 +0000 (13:53 +0300)
gdb/source.c

index 8cb5c3673a8e5a1f4703bd34a420ecffe9e2fdcb..99dffa8c0e2589794c83c99807d9b67cf0bb05d6 100644 (file)
@@ -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