all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Save & Restore GUD (gdb) Command Line History
@ 2007-11-15  8:16 Nordlöw
  2007-11-15 21:21 ` Nick Roberts
  0 siblings, 1 reply; 2+ messages in thread
From: Nordlöw @ 2007-11-15  8:16 UTC (permalink / raw)
  To: help-gnu-emacs

How can I make GUD save the history (most importantly run arguments)
when I close a session and upon reopening on a specific executable
restore the same history?

Thanks in advance,
Nordlöw

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Save & Restore GUD (gdb) Command Line History
  2007-11-15  8:16 Save & Restore GUD (gdb) Command Line History Nordlöw
@ 2007-11-15 21:21 ` Nick Roberts
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Roberts @ 2007-11-15 21:21 UTC (permalink / raw)
  To: Nordlöw; +Cc: help-gnu-emacs

 > How can I make GUD save the history (most importantly run arguments)
 > when I close a session and upon reopening on a specific executable
 > restore the same history?


This is really a GDB question.  I've never done it but something like this
should work:

(gdb) set history filename .gdb_session
(gdb) set history save on

run your session

(gdb) set history save off

Then next time:

(gdb) source .gdb_session

You may have to delete the one or two commands above from .gdb_session
first.


-- 
Nick                                           http://www.inet.net.nz/~nickrob

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-15 21:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-15  8:16 Save & Restore GUD (gdb) Command Line History Nordlöw
2007-11-15 21:21 ` Nick Roberts

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.