diff options
author | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2014-10-29 18:16:20 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.vnet.ibm.com> | 2014-11-13 10:14:29 +0100 |
commit | 6acc2ddee2a596e3785bb17a8c753e2c30ff2683 (patch) | |
tree | 6d9e45e45ed0eefd37483ffe46bcdca29ec82d88 /gdb/testsuite/gdb.base/sum.c | |
parent | 9ecfcd1d02e8e92457e7a81d060b8d0d46bb68bd (diff) | |
download | gdb-6acc2ddee2a596e3785bb17a8c753e2c30ff2683.zip gdb-6acc2ddee2a596e3785bb17a8c753e2c30ff2683.tar.gz gdb-6acc2ddee2a596e3785bb17a8c753e2c30ff2683.tar.bz2 |
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.
Diffstat (limited to 'gdb/testsuite/gdb.base/sum.c')
-rw-r--r-- | gdb/testsuite/gdb.base/sum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/sum.c b/gdb/testsuite/gdb.base/sum.c index f5a5dbf..6dd7a75 100644 --- a/gdb/testsuite/gdb.base/sum.c +++ b/gdb/testsuite/gdb.base/sum.c @@ -8,7 +8,7 @@ int sum(list, low, high) int *list, low, high; #endif { - int i = 0, s = 0; + int i = 0, s = 0; /* stop-in-sum */ for (i = low; i <= high; i++) s += list[i]; return(s); |