gdb/testsuite: adjust ensure_gdb_index to cooked_index_functions::dump changes
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 31 Jan 2023 16:41:41 +0000 (11:41 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 31 Jan 2023 16:43:38 +0000 (11:43 -0500)
commit95cbab2bebf7e810eded3e16ae7e82b13f4d2493
treea89a5c124ee1d1c1d287e66e07189125b38b32ad
parentd8e88d10d8687d61ddb09fc0a0af563c43071555
gdb/testsuite: adjust ensure_gdb_index to cooked_index_functions::dump changes

Following 7d82b08e9e0a ("gdb/dwarf: dump cooked index contents in
cooked_index_functions::dump"), I see some failures like:

    (gdb) mt print objfiles with-mf^M
    ^M
    Object file /home/smarchi/build/binutils-gdb/gdb/testsuite/outputs/gdb.base/with-mf/with-mf:  Objfile at 0x614000005040, bfd at 0x6120000e08c0, 18 minsyms    ^M
    ^M
    Cooked index in use:^M
    ^M
    ...
    (gdb) FAIL: gdb.base/with-mf.exp: check if index present

This is because the format of the "Cooked index in use" line changed
slightly.  Adjust ensure_gdb_index to expect the trailing colon.

Change-Id: If0a87575c02d8a0bc0d4b8ead540c234c62760f8
gdb/testsuite/lib/gdb.exp