diff options
author | Pedro Alves <palves@redhat.com> | 2015-11-24 18:11:22 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-11-24 18:37:26 +0000 |
commit | 2f341b6e28e27fadd8160d95337c3aa854bcba3b (patch) | |
tree | 2b7e0d566bf015e2db673b33f4c19298499f9137 /gdb/testsuite/gdb.base/checkpoint.exp | |
parent | 7e0aa6aa9983c745aedc203db0cc360a0ad47cac (diff) | |
download | gdb-2f341b6e28e27fadd8160d95337c3aa854bcba3b.zip gdb-2f341b6e28e27fadd8160d95337c3aa854bcba3b.tar.gz gdb-2f341b6e28e27fadd8160d95337c3aa854bcba3b.tar.bz2 |
List checkpoints in ascending order
Before:
(gdb) info checkpoints
3 process 29132 at 0x4008ad, file foo.c, line 81
2 process 29131 at 0x4008ad, file foo.c, line 81
1 process 29130 at 0x4008ad, file foo.c, line 81
* 0 Thread 0x7ffff7fc5740 (LWP 29128) (main process) at 0x4008ad, file foo.c, line 81
After:
(gdb) info checkpoints
* 0 Thread 0x7ffff7fc5740 (LWP 29128) (main process) at 0x4008ad, file foo.c, line 81
1 process 29130 at 0x4008ad, file foo.c, line 81
2 process 29131 at 0x4008ad, file foo.c, line 81
3 process 29132 at 0x4008ad, file foo.c, line 81
gdb/ChangeLog:
2015-11-24 Pedro Alves <palves@redhat.com>
PR 17539
* printcmd.c (display_command): Append new display at the end of
the list.
gdb/testsuite/ChangeLog:
2015-11-24 Pedro Alves <palves@redhat.com>
PR 17539
* gdb.base/display.exp: Expect displays to be sorted in ascending
order. Use multi_line.
* gdb.base/solib-display.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.base/checkpoint.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/checkpoint.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/checkpoint.exp b/gdb/testsuite/gdb.base/checkpoint.exp index 4a476be..e76d711 100644 --- a/gdb/testsuite/gdb.base/checkpoint.exp +++ b/gdb/testsuite/gdb.base/checkpoint.exp @@ -87,7 +87,7 @@ gdb_test "continue 10" "breakpoint 1.*" "break1 ten" gdb_test "checkpoint" ".*" "" gdb_test "info checkpoints" \ - " 10 .* 9 .* 8 .* 7 .* 6 .* 5 .* 4 .* 3 .* 2 .* 1 .*" \ + " 1 .* 2 .* 3 .* 4 .* 5 .* 6 .* 7 .* 8 .* 9 .* 10 .*" \ "info checkpoints one" delete_breakpoints @@ -294,7 +294,7 @@ gdb_test "continue" \ # There should be still at least five forks left # -gdb_test "info checkpoints" " 5 .* 4 .* 3 .* 2 .* 1 .*" \ +gdb_test "info checkpoints" " 1 .* 2 .* 3 .* 4 .* 5 .*" \ "info checkpoints two" # |