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] Don't truncate the history file when history size is unlimited


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


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