This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Don't truncate the history file when history size is unlimited
- 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: Wed, 17 Jun 2015 13:46:44 +0100
- Subject: Re: [PATCH] Don't truncate the history file when history size is unlimited
- Authentication-results: sourceware.org; auth=none
- References: <1433878062-23560-1-git-send-email-patrick at parcs dot ath dot cx> <1434466413-28892-1-git-send-email-patrick at parcs dot ath dot cx>
On 06/16/2015 03:53 PM, Patrick Palka wrote:
> + # We have to start then exit GDB twice: the first time to test the creation
> + # of the initial history file, and the second time to test appending to it.
> + # In either case the initial "print 1" command should persist through the
> + # history file.
> + with_test_prefix "truncation" {
> + gdb_exit
> + gdb_start
> + gdb_test "print 1"
> +
> + gdb_exit
> + gdb_start
> + gdb_test "server show commands" " . print 1.*"
> +
> + gdb_exit
> + gdb_start
> + gdb_test "server show commands" " . print 1.*"
These two "show commands" tests have the same output message. The
patch is OK with that fixed.
Thanks for following through with the test.
Thanks,
Pedro Alves