This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Add option to remove duplicate command history entries
- From: Pedro Alves <palves at redhat dot com>
- To: Patrick Palka <patrick at parcs dot ath dot cx>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Fri, 26 Jun 2015 15:50:11 +0100
- Subject: Re: [PATCH] Add option to remove duplicate command history entries
- Authentication-results: sourceware.org; auth=none
- References: <5578539E dot 1020806 at redhat dot com> <1434756821-7423-1-git-send-email-patrick at parcs dot ath dot cx> <558D5F26 dot 4040401 at redhat dot com> <CA+C-WL9M-qdL+_CkPPr6edmwxubcPKUve+k_XykYKex7-txOsQ at mail dot gmail dot com>
On 06/26/2015 03:30 PM, Patrick Palka wrote:
>>> + gdb_test "print 0"
>>> + gdb_test "print 1"
>>> + gdb_test "print 2"
>>> + gdb_test "print 1"
>>> + gdb_test "print 1"
>>> + gdb_test "print 2"
>>> + gdb_test "print 3"
>>> + gdb_test "print 3"
>>> + gdb_test "print 4"
>>> + gdb_test "print 1"
>>> + gdb_test "print 2"
>>> + gdb_test "print 3"
>>> + gdb_test "print 4"
>>
>> Duplicate test names here. This should catch all:
>
> I could use some kind of loop over a list here I think, prefixing each
> test name with the index of the list.
Yeah, that would be fine.
Thanks,
Pedro Alves