Remove the literal line number from a regexp in mi-console.exp. Add
an appropriate eye-catcher to mi-console.c and refer to that instead.
gdb/testsuite/ChangeLog:
* gdb.mi/mi-console.c: Add eye-catcher.
* gdb.mi/mi-console.exp (semihosted_string): Refer to eye-catcher
instead of literal line number.
+2014-11-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * gdb.mi/mi-console.c: Add eye-catcher.
+ * gdb.mi/mi-console.exp (semihosted_string): Refer to eye-catcher
+ instead of literal line number.
+
2014-11-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
* gdb.base/shr2.c: Add eye-catcher.
main ()
{
hello ();
-}
+} /* after-hello */
"Testing console output" \
$output
-mi_expect_stop "end-stepping-range" "main" "" ".*mi-console.c" "14" "" \
+set line [gdb_get_line_number "after-hello"]
+mi_expect_stop "end-stepping-range" "main" "" ".*mi-console.c" $line "" \
"finished step over hello"
mi_gdb_exit