[testsuite/guality] Use line number vars in gdb-test
authorTom de Vries <tdevries@suse.de>
Fri, 29 Jun 2018 11:25:49 +0000 (11:25 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Fri, 29 Jun 2018 11:25:49 +0000 (11:25 +0000)
commit8864590b7cad2b491407069d94068b65359e78c0
tree8ff29fbd2b41ad193dff51e7c21dcdc9ca3020c5
parent3f10efd4ee4d62d2d7a94e518a3873687399879e
[testsuite/guality] Use line number vars in gdb-test

2018-06-29  Tom de Vries  <tdevries@suse.de>

* gcc.dg/guality/pr45882.c (foo): Add line number var for breakpoint
line, and use it.
* lib/gcc-dg.exp (get-absolute-line): Factor out of ...
(process-message): ... here.
* lib/gcc-gdb-test.exp (gdb-test): Use get-absolute-line.

From-SVN: r262248
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/guality/pr45882.c
gcc/testsuite/lib/gcc-dg.exp
gcc/testsuite/lib/gcc-gdb-test.exp