Eliminate literal line numbers in dbx.exp
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Wed, 29 Oct 2014 18:16:20 +0000 (18:16 +0000)
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Thu, 13 Nov 2014 09:14:29 +0000 (10:14 +0100)
commit6acc2ddee2a596e3785bb17a8c753e2c30ff2683
tree6d9e45e45ed0eefd37483ffe46bcdca29ec82d88
parent9ecfcd1d02e8e92457e7a81d060b8d0d46bb68bd
Eliminate literal line numbers in dbx.exp

Remove literal line numbers from the commands and regexps in dbx.exp.
Add appropriate eye-catchers to average.c and sum.c and refer to those
instead.

gdb/testsuite/ChangeLog:

* gdb.base/average.c: Add eye-catchers.
* gdb.base/sum.c: Likewise.
* gdb.base/dbx.exp: Use eye-catchers to determine line numbers for
regexps dynamically.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/average.c
gdb/testsuite/gdb.base/dbx.exp
gdb/testsuite/gdb.base/sum.c