]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Eliminate literal line numbers in so-impl-ld.exp
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Thu, 23 Oct 2014 13:56:52 +0000 (13:56 +0000)
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Thu, 13 Nov 2014 09:14:29 +0000 (10:14 +0100)
Remove literal line numbers from the regexps in so-impl-ld.exp.  Add
appropriate eye-catchers to solib1.c and refer to those instead.

gdb/testsuite/ChangeLog:

* gdb.base/solib1.c: Add eye-catchers.
* gdb.base/so-impl-ld.exp: Match against eye-catchers instead of
literal line numbers.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/so-impl-ld.exp
gdb/testsuite/gdb.base/solib1.c

index ae7c53c8f0abae8c65ee38e28662e3ed129bf722..d0f1b84a6349c3824e492954b09bcbbd86bc0968 100644 (file)
@@ -1,3 +1,9 @@
+2014-11-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * gdb.base/solib1.c: Add eye-catchers.
+       * gdb.base/so-impl-ld.exp: Match against eye-catchers instead of
+       literal line numbers.
+
 2014-11-12  Pedro Alves  <palves@redhat.com>
 
        * gdb.threads/leader-exit.exp: Test sending ctrl-c works after the
index 073c3dfb9b347af55cc55832e51bb25c2e5133d3..3788b6c711350fc045fd20e28bdbcd46b408b4f7 100644 (file)
@@ -61,12 +61,12 @@ gdb_test "next" "21\[ \t\]*result = solib_main .result.;" \
 
 # Verify that we can step into the second shlib call.
 #
-gdb_test "step" "solib_main .arg=10000. at.*${libfile}.c:17.*" \
+gdb_test "step" "solib_main .arg=10000. at.*${libfile}.c:${decimal}.* HERE .*" \
     "step into solib call"
 
 # Verify that we can step within the shlib call.
 #
-gdb_test "next" "18\[ \t\]*\}" "step in solib call"
+gdb_test "next" "${decimal}\[ \t\]*\}.* STEP .*" "step in solib call"
 
 # Verify that we can step out of the shlib call, and back out into
 # the caller.
index 2e51750450561e161eeace1081efdcdbc3e75b70..224a93d7a408a358ff21dbf94ac8cd30e6d15be6 100644 (file)
@@ -14,5 +14,5 @@ int  solib_main (arg)
 #endif
 #endif
 {
-  return arg*arg;
-}
+  return arg*arg;              /* HERE */
+}                              /* STEP */