mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
Eliminate literal line numbers in mi-console.exp
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.
This commit is contained in:

committed by
Andreas Krebbel

parent
b0e59b8f1c
commit
d1fbcd564a
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2014-11-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||||||
|
|
||||||
* gdb.base/shr2.c: Add eye-catcher.
|
* gdb.base/shr2.c: Add eye-catcher.
|
||||||
|
@ -11,4 +11,4 @@ int
|
|||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
hello ();
|
hello ();
|
||||||
}
|
} /* after-hello */
|
||||||
|
@ -89,7 +89,8 @@ mi_gdb_test "220-exec-next" \
|
|||||||
"Testing console output" \
|
"Testing console output" \
|
||||||
$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"
|
"finished step over hello"
|
||||||
|
|
||||||
mi_gdb_exit
|
mi_gdb_exit
|
||||||
|
Reference in New Issue
Block a user