[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Save & Restore GUD (gdb) Command Line History
From: |
Nick Roberts |
Subject: |
Re: Save & Restore GUD (gdb) Command Line History |
Date: |
Fri, 16 Nov 2007 10:21:13 +1300 |
> 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