]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fix some tests failure with GDB 8.0
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 25 Jun 2017 12:40:53 +0000 (12:40 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 25 Jun 2017 12:40:53 +0000 (12:40 +0000)
commit81542a63a48cbde6256d6f96b8ebd4ca09a2e64f
treeb1f29683c70132451036779b63d3fd75770cb4f7
parent6b0b78ea3bbae0c40c48932817a11d488fc05493
Fix some tests failure with GDB 8.0

At the beginning of a Valgrind gdbserver test,
2 messages are produced when launching the command
   target remote | vgdb

A message output by vgdb:
   relaying data between gdb and process <pid>
(this message is read by GDB from the vgdb pipe, and re-output
on stderr)
and a message produced by GDB:
   Remote debugging using | ./vgdb

GDB 8.0 changes the order in which the above messages are output.
This causes 2 tests to fail, as the 'relaying' line appears
then in a part of the output deleted by a filter script.

To avoid this, change the filter scripts to always remove
this 'relaying line', which is not particularly interesting to check.
All the .exp files containining such a 'relaying' line are updated
accordingly.

This has been tested with various gdb versions (7.5, 7.7, 7.12, 8.0)
on amd64 and/or ppc64.

Thanks to Mark Wielaard, which helped to investigate this problem
by bisecting the GDB patches in GDB 8.0 causing this change of
behaviour.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16453
17 files changed:
gdbserver_tests/filter_gdb
gdbserver_tests/filter_vgdb
gdbserver_tests/hginfo.stderrB.exp
gdbserver_tests/mcblocklistsearch.stderrB.exp
gdbserver_tests/mcbreak.stderrB.exp
gdbserver_tests/mcclean_after_fork.stderrB.exp
gdbserver_tests/mcinfcallWSRU.stderrB.exp
gdbserver_tests/mcleak.stderrB.exp
gdbserver_tests/mcmain_pic.stderrB.exp
gdbserver_tests/mcvabits.stderrB.exp
gdbserver_tests/mssnapshot.stderrB.exp
gdbserver_tests/nlgone_abrt.stderrB.exp
gdbserver_tests/nlgone_exit.stderrB.exp
gdbserver_tests/nlgone_return.stderrB.exp
gdbserver_tests/nlpasssigalrm.stderrB.exp
gdbserver_tests/nlself_invalidate.stderrB.exp
gdbserver_tests/nlsigvgdb.stderrB.exp