mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
Eliminate literal line numbers in shlib-call.exp
Remove the literal line number from a regexp in shlib-call.exp. Add an appropriate eye-catcher to shr2.c and refer to that instead. gdb/testsuite/ChangeLog: * gdb.base/shr2.c: Add eye-catcher. * gdb.base/shlib-call.exp: Refer to eye-catcher instead of literal line number.
This commit is contained in:

committed by
Andreas Krebbel

parent
78f98cca31
commit
b0e59b8f1c
@ -1,3 +1,9 @@
|
||||
2014-11-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||||
|
||||
* gdb.base/shr2.c: Add eye-catcher.
|
||||
* gdb.base/shlib-call.exp: Refer to eye-catcher instead of literal
|
||||
line number.
|
||||
|
||||
2014-11-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||||
|
||||
* gdb.base/jump.c: Add eye-catchers.
|
||||
|
@ -111,7 +111,7 @@ gdb_test "break shr2" \
|
||||
"breakpoint function shr2"
|
||||
|
||||
gdb_test "continue" \
|
||||
"Continuing\\..*Breakpoint \[0-9\]+, shr2 \\(.*\\) at.*shr2\\.c:7.*7.*return 2.x;" \
|
||||
"Continuing\\..*Breakpoint ${decimal}, shr2 \\(.*\\) at.*shr2\\.c:${decimal}.*shr2-return \\*\\/" \
|
||||
"run until breakpoint set at a function"
|
||||
|
||||
|
||||
|
@ -4,7 +4,7 @@ int shr2(int x)
|
||||
int shr2(x) int x;
|
||||
#endif
|
||||
{
|
||||
return 2*x;
|
||||
return 2*x; /* shr2-return */
|
||||
}
|
||||
|
||||
#ifdef PROTOTYPES
|
||||
|
Reference in New Issue
Block a user