From: Eli Zaretskii Date: Fri, 28 Oct 2022 06:23:12 +0000 (+0300) Subject: ; * lisp/progmodes/gud.el (gud-gdb): Doc fix. (Bug#58826) X-Git-Tag: emacs-29.0.90~1616^2~430 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e953490603e597530f9dac68acdd3d199283e534;p=emacs.git ; * lisp/progmodes/gud.el (gud-gdb): Doc fix. (Bug#58826) --- diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 281762fb0a5..9b7d7a05353 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -752,7 +752,12 @@ It should return a list of completion strings.") If COMMAND-LINE names a program FILE to debug, gdb will run in a buffer named *gud-FILE*, and the directory containing FILE becomes the initial working directory and source-file directory -for your debugger. +for your debugger. If you don't want `default-directory' to +change to the directory of FILE, specify FILE without leading +directories, in which case FILE should reside either in the +directory of the buffer from which this command is invoked, or +it can be found by searching PATH. + If COMMAND-LINE requests that gdb attaches to a process PID, gdb will run in *gud-PID*, otherwise it will run in *gud*; in these cases the initial working directory is the `default-directory' of