unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Pete Beardmore <pete.beardmore@msn.com>
Cc: 7575@debbugs.gnu.org
Subject: bug#7575: gdb command history saving
Date: Mon, 06 Dec 2010 20:28:51 -0500	[thread overview]
Message-ID: <8f8w02qsks.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <BLU0-SMTP54BC0E0BBA1EE3A12D208B8A2B0@phx.gbl> (Pete Beardmore's message of "Mon\, 6 Dec 2010 16\:49\:24 +0000")

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	other threads:[~2010-12-07  1:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-06 16:49 bug#7575: gdb command history saving Pete Beardmore
2010-12-07  1:28 ` Glenn Morris [this message]
2011-03-09  9:02   ` Glenn Morris
2011-06-02 17:58   ` Pete Beardmore
2011-06-02 21:50     ` Glenn Morris
2022-01-31 16:51 ` Lars Ingebrigtsen
2022-03-01 15:46   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8f8w02qsks.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=7575@debbugs.gnu.org \
    --cc=pete.beardmore@msn.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).