[gdb/testsuite] Make gdb.dwarf2/dw2-line-number-zero.exp more robust
authorTom de Vries <tdevries@suse.de>
Wed, 29 Jul 2020 06:41:09 +0000 (08:41 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 29 Jul 2020 06:41:09 +0000 (08:41 +0200)
commitf5c79e97fecb9333c150bfaa84bfee66c41a93bc
tree36f1a352a1b3414c569b666c24ca035ebf8586e6
parentf6882bb1318503a59529b2fffd5eb6bece19e50f
[gdb/testsuite] Make gdb.dwarf2/dw2-line-number-zero.exp more robust

On aarch64, there are FAILs for gdb.dwarf2/dw2-line-number-zero.exp due to
problems in the prologue analyzer (filed as PR26310).

Make the test-case more robust by avoiding to use the prologue analyzer:
...
-gdb_breakpoint "bar1"
+gdb_breakpoint "$srcfile:27"
...

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2020-07-29  Tom de Vries  <tdevries@suse.de>

* gdb.dwarf2/dw2-line-number-zero.exp: Set breakpoints on lines
rather than function name.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/dw2-line-number-zero.exp