]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
Fix gdb.base/attach.exp fails when gdb is configured --with-sysroot=/
authorYao Qi <yao.qi@linaro.org>
Thu, 1 Feb 2018 14:50:23 +0000 (14:50 +0000)
committerYao Qi <yao.qi@linaro.org>
Thu, 1 Feb 2018 14:50:23 +0000 (14:50 +0000)
commitd4d38844faaff1576b021558d0835dedbd415e8d
tree7d232d7c5af53fe3b6c4c5a35cee718eb7e8a772
parente99955cd8eca9ac8eff828e8c7b676955fd46e04
Fix gdb.base/attach.exp fails when gdb is configured --with-sysroot=/

I see some test fails in gdb.base/attach.exp when gdb is configured
--with-sysroot=/.

FAIL: gdb.base/attach.exp: attach2, with no file
FAIL: gdb.base/attach.exp: load file manually, after attach2 (re-read) (got interactive prompt)
FAIL: gdb.base/attach.exp: attach when process' a.out not in cwd

If gdb is configured this way, sysroot is "/" in default, and if binfile
is a absolute path, the regexp pattern $sysroot$escapedbinfile is
incorrect.

There are different ways to fix it, but I don't want to complicate the
test, so I choose this naive way.

gdb/testsuite:

2018-02-01  Yao Qi  <yao.qi@linaro.org>

* gdb.base/attach.exp (do_attach_tests): Set sysroot to
"\[^\r\n\]*".
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/attach.exp