From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: mbilal <mbilal@codesourcery.com>
Cc: gdb-patches@sourceware.org, tromey@redhat.com
Subject: Re: Fwd: [PATCH] Fix for PR gdb/15224 should "set history save on" by default
Date: Fri, 29 Mar 2013 16:28:00 -0000 [thread overview]
Message-ID: <20130329141514.GA16671@host2.jankratochvil.net> (raw)
In-Reply-To: <51558EC5.2030806@codesourcery.com>
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
next prev parent reply other threads:[~2013-03-29 14:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <51558CB4.8010003@codesourcery.com>
2013-03-29 16:18 ` mbilal
2013-03-29 16:28 ` Jan Kratochvil [this message]
2013-04-01 11:34 ` Pedro Alves
2013-04-01 12:41 ` Jan Kratochvil
2013-04-01 19:44 ` Pedro Alves
2013-04-02 17:10 ` Jan Kratochvil
2013-04-03 17:14 ` Pedro Alves
2013-04-03 17:50 ` Jan Kratochvil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130329141514.GA16671@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=mbilal@codesourcery.com \
--cc=tromey@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox