diff options
author | Tom de Vries <tdevries@suse.de> | 2020-03-12 11:34:45 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2020-03-12 11:34:45 +0100 |
commit | 9a2de3fc7f7c40da6e8d5553c29e6cb8a2430dc8 (patch) | |
tree | 158820210b67df56a6754567b75cf4cf16d90656 /gdb/source-cache.c | |
parent | 3217502e1ba7409676e192100a0147a49dd5ae7a (diff) | |
download | gdb-9a2de3fc7f7c40da6e8d5553c29e6cb8a2430dc8.zip gdb-9a2de3fc7f7c40da6e8d5553c29e6cb8a2430dc8.tar.gz gdb-9a2de3fc7f7c40da6e8d5553c29e6cb8a2430dc8.tar.bz2 |
[gdb/testsuite] Fix gdb.linespec/explicit.exp FAIL with glibc debug info
When running test-case gdb.linespec/explicit.exp with GLIBC debuginfo
installed, I run into:
...
(gdb) break -source exp^GlFAIL: gdb.linespec/explicit.exp: complete \
non-unique file name (timeout)
...
The regexp that times out is:
...
-re "break -source exp\\\x07licit" {
...
and the reason it times out is that gdb only outputs an "l" after the tab, while
the regexp expect a futher "icit".
This is a regression since commit 507dd60e28 "[gdb/testsuite, 1/2] Fix
gdb.linespec/explicit.exp with check-read1", where I merged the matching for
the two cases where GLIBC debuginfo is either installed or not, as it turns
out incorrectly, presumably because even though I tested with GLIBC debuginfo
info installed and deinstalled, that didn't make a difference because I didn't
use configure flag --with-separate-debug-dir=/usr/lib/debug.
Fix this by not explictly matching the "icit" part.
Tested on x86_64-linux, with and without GLIBC debuginfo installed, both with
make targets check and check-read1.
gdb/testsuite/ChangeLog:
2020-03-12 Tom de Vries <tdevries@suse.de>
* gdb.linespec/explicit.exp: Fix "complete non-unique file name" test
in presence of GLIBC debuginfo.
Diffstat (limited to 'gdb/source-cache.c')
0 files changed, 0 insertions, 0 deletions