This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fwd: [PATCH] Fix for PR gdb/15224 should "set history save on" by default


On Fri, 29 Mar 2013 13:53:25 +0100, mbilal wrote:
> The following patch is a fix for PR gdb/15224, that is 'history save'
> command should be enabled by default
> so that user can always be able to see their commands history by default

I would also like it that way for many years but it is not that simple.

If you run GDB testsuite afterwards it will fill up (and discard due to its
maximum size) your personal history.  Normally it does not happen because
testsuite runs gdb -nx so ~/.gdbinit is not read and therefore the history
saving is not enabled.  Eclipse CDT also uses "gdb --interpreter mi2 --nx".

While that could be fixed in GDB testsuite the same problem will affect any
GDB frontend.

Could you propose a patch compatible at least with existing front ends (like
Eclipse CDT)?  I was thinking to just bind the default WRITE_HISTORY_P to
whether ~/.gdbinit is being read or not.


Thanks,
Jan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]