mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-14 04:43:38 +08:00
12084a9ae1
Remove literal line numbers from the regexps in mi-until.exp. Add appropriate eye-catchers to until.c and refer to those instead. This change fixes the test case after having disturbed the line numbering with the previous fix for compiler warnings with -std=gnu11. gdb/testsuite/ChangeLog: * gdb.mi/until.c: Add eye-catchers. * gdb.mi/mi-until.exp: Refer to eye-catchers instead of literal line numbers.
29 lines
304 B
C
29 lines
304 B
C
void
|
|
foo (void)
|
|
{
|
|
int i, x, y, z;
|
|
|
|
x = 0;
|
|
y = 1;
|
|
i = 0;
|
|
|
|
while (i < 2)
|
|
i++; /* in-loop */
|
|
|
|
x = i; /* after-loop */
|
|
y = 2 * x;
|
|
z = x + y;
|
|
y = x + z; /* until-here */
|
|
x = 9;
|
|
y = 10; /* until-there */
|
|
}
|
|
|
|
int
|
|
main ()
|
|
{
|
|
int a = 1;
|
|
foo ();
|
|
a += 2;
|
|
return 0; /* at-return */
|
|
}
|