16 Jul 2005 04:05
'intelligent' history in gdb
Ed Peschko <esp5 <at> mdssdev05.comp.pge.com>
2005-07-16 02:05:34 GMT
2005-07-16 02:05:34 GMT
hey all, I've been playing around with gdb, noticed a couple of things that I'd really like to have, and was wondering if they'd been implmented. First, I have the setting: bindkey -k up history-search-backward bindkey -k down history-search-backward in my .tcshrc, and was wondering if gdb has an equivalent. This allows me to type: mak then up arrow, to see all the list of commands that I've typed in my history, instead of just forgetting that I've typed 'mak' and going back to the last typed command (like gdb does by default). Second, I'd like the ability of gdb to 'remember' the programs that I've edited, so the next time I run gdb with that executable, all the commands/definitions that I've typed in previous sessions with that executable are retrieved. I'm thinking that this could be done by md5'ing the executable and its name, and then storing the commands in a buffer that gets recalled when a new session with that executable starts. A list of these stored sessions could be gotten by a catalog command (something like 'ls') and an import command could be used to retrieve any prior session to tie it to the current session, ie:(Continue reading)
RSS Feed