gdb/testsuite: Remove duplicates from gdb.base/solib-display.exp
authorLancelot SIX <lsix@lancelotsix.com>
Fri, 19 Nov 2021 23:34:27 +0000 (23:34 +0000)
committerLancelot SIX <lsix@lancelotsix.com>
Fri, 7 Jan 2022 22:43:33 +0000 (22:43 +0000)
commit7a6a9616113ff071fc4a4014dc827c33f3f22292
tree5684c7f8f686c44db5e4588fb05b99400728edf2
parent1182b42df6b11fc9fe1619139a3ee80457d9d37e
gdb/testsuite: Remove duplicates from gdb.base/solib-display.exp

When running the testsuite, I have:

    Running .../gdb/testsuite/gdb.base/solib-display.exp ...
    DUPLICATE: gdb.base/solib-display.exp: NO: break 25
    DUPLICATE: gdb.base/solib-display.exp: NO: continue
    DUPLICATE: gdb.base/solib-display.exp: IN: break 25
    DUPLICATE: gdb.base/solib-display.exp: IN: continue
    DUPLICATE: gdb.base/solib-display.exp: SEP: break 25
    DUPLICATE: gdb.base/solib-display.exp: SEP: continue

The 'break 25' appears because the test inserts two breakpoints at the
same location.  Fix this by only inserting the breakpoint once.

Fix the 'continue' DUPLICATE by giving a phony name to the second
continue: 'continue two'.

While at it, this commit also removes a trailing space.

Tested on x86_64-linux.
gdb/testsuite/gdb.base/solib-display.exp