|
From: | GNU bug Tracking System |
Subject: | [Emacs-bug-tracker] bug#7575: closed (gdb command history saving) |
Date: | Wed, 09 Mar 2011 09:03:01 +0000 |
Your message dated Wed, 09 Mar 2011 04:02:34 -0500 with message-id <address@hidden> and subject line Re: bug#7575: gdb command history saving has caused the GNU bug report #7575, regarding gdb command history saving to be marked as done. (If you believe you have received this mail in error, please contact address@hidden) -- 7575: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7575 GNU Bug Tracking System Contact address@hidden with problems
--- Begin Message ---Subject: gdb command history saving Date: Mon, 6 Dec 2010 16:49:24 +0000 User-agent: Internet Messaging Program (IMP) H3 (4.3.6) Hi.When GDB is used through emacs, command history is not saved to my .gdbhist file on gdb 'quit'.I use a MinGW/msys/bash environment. When gdb is used from the shell prompt, the settings in .gdbinit are sufficient to ensure ~/.gdbhist (or h:/install/MinGW/msys/1.0/home/pbeardm1/.gdbhist ..I've experimented with both) is successfully written to with the GDB command history.When i use GNU emacs 23.2.1 (i386-mingw-nt5.1.2600) from this shell and start the debugger within, having typed a few arbitrary commands to populate the command history / ring, i quit the debugger and ....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.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. I enquired on the IRC channel and got tumbleweeds ..hence i call this a 'bug' (quotes) to leave room for the possibility of it being a trivial config issue!Thanks.
--- End Message ---
--- Begin Message ---Subject: Re: bug#7575: gdb command history saving Date: Wed, 09 Mar 2011 04:02:34 -0500 User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Version 24.1 Glenn Morris wrote: > 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. I've added this to M-x gdb.
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |