This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Test the interaction between GDBHISTSIZE and .gdbinit
- From: Pedro Alves <palves at redhat dot com>
- To: Patrick Palka <patrick at parcs dot ath dot cx>, gdb-patches at sourceware dot org
- Date: Thu, 18 Jun 2015 10:06:27 +0100
- Subject: Re: [PATCH] Test the interaction between GDBHISTSIZE and .gdbinit
- Authentication-results: sourceware.org; auth=none
- References: <1434572241-16019-1-git-send-email-patrick at parcs dot ath dot cx>
On 06/17/2015 09:17 PM, Patrick Palka wrote:
> The value inside the GDBHISTSIZE environment variable, only if valid,
> should override setting the history size through one's .gdbinit file.
Thanks, looks good.
> + unset -nocomplain env(GDBHISTSIZE)
> array set env [array get old_env]
Though this unset looks unnecessary, given that the following line
restores the whole array.
Thanks,
Pedro Alves