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: [PATCH] Add option to remove duplicate command history entries


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


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