[gdb/testsuite] Fix full buffer in gdb.rust/dwindex.exp
authorTom de Vries <tdevries@suse.de>
Thu, 30 Sep 2021 10:02:14 +0000 (12:02 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 30 Sep 2021 10:02:14 +0000 (12:02 +0200)
commit6010fb0c49e7dd9f183375fb4f343acc2999e127
tree7af16d7a917eb2a5837789dffa923c8e7f024638
parent6420dd27cb8ee2c89c379255ba4c438d22376bc4
[gdb/testsuite] Fix full buffer in gdb.rust/dwindex.exp

On ubuntu 18.04.5, I run into:
...
(gdb) mt print objfiles dwindex^M
^M
Object file build/gdb/testsuite/outputs/gdb.rust/dwindex/dwindex:  \
  Objfile at 0x55dab0b87a50, bfd at 0x55dab0b0cfa0, 1095 minsyms^M
^M
Psymtabs:^M
vendor/compiler_builtins/src/int/specialized_div_rem/mod.rs at 0x55dab0db0720^M
  ...
library/std/src/sys/unix/stdio.rs at 0x55dab0d96320^M
ERROR: internal buffer is full.
UNRESOLVED: gdb.rust/dwindex.exp: check if index present
...

Fix this by using -lbl in proc ensure_gdb_index.

Tested on x86_64-linux.
gdb/testsuite/lib/gdb.exp