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

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

bug#7575: gdb command history saving


From: Glenn Morris
Subject: bug#7575: gdb command history saving
Date: Mon, 06 Dec 2010 20:28:51 -0500
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Pete Beardmore wrote:

> ..observe a time stamp change on the correct .gdbhist file ..BUT find
> its content exactly as it was previously i.e. with nothing appended.
>
> I expect to see my last GDB commands written to the file.

It seemed to work for me.

> Note: through emacs, this file is not read either ..which makes me
> think that i haven't tweaked 'input ring' settings to use this file as
> a 'ring source' or something.

You could add something like the following to gdb-mode-hook:

  (setq comint-input-ring-file-name "~/.gdbhist")
  (comint-read-input-ring t)

shell-mode tries to do this by default; perhaps gdb-mode should do
similar.





reply via email to

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