How to recall the commands run in previous gdb session?

Daniel Jacobowitz drow@false.org
Mon Oct 30 21:13:00 GMT 2006


On Mon, Oct 30, 2006 at 10:59:38PM +0200, Eli Zaretskii wrote:
> > Date: Sun, 29 Oct 2006 23:11:13 -0500
> > From: Daniel Jacobowitz <drow@false.org>
> > Cc: gdb@sourceware.org
> > 
> > I think that making GDB start to write temporary files in $PWD by
> > default would be extremely annoying.
> 
> Okay, but can we at least make it read ./.gdb_history, if that exists?

I can see why that would be a good idea.  Before I make any changes in
this area, I will definitely look into that and see if it's possible. 
Or a simpler possibility: we could use .gdb_history as the default if
it exists and $HOME/.gdb_history otherwise.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb mailing list