> I loaded a lisp file like this "emacs -l foo.lisp" at the command line. > That file contained one line: > (setq gud-gdb-command-name "gdb --annotate=3 /tmp/foo") > > When I tried to run gdb using M-x gdb, it added a random filename from > the working directory to the end of the gdb command like this: > gdb --annotate=3 foo randomfilename
That's because it tries now to guess the name of the executable that you want to debug. > Although it's possible, I'm doing something wrong, the behavior is > different with older versions of emacs. It looks like gud-gdb-command-name wasn't documented in earlier Emacsen but it is now: Documentation: Default command to execute an executable under the GDB debugger. It's also mentioned in the Emacs manual now. I suggest that you leave it at it's default value and type in the name of the executable. -- Nick http://www.inet.net.nz/~nickrob _______________________________________________ emacs-pretest-bug mailing list [email protected] http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
