d1fbcd564a
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.
14 lines
167 B
C
14 lines
167 B
C
void
|
|
hello ()
|
|
{
|
|
char *hello = "Hello \\\"!\r\n";
|
|
int i;
|
|
for (i = 0; hello[i]; i++)
|
|
write (1, hello + i, 1);
|
|
}
|
|
|
|
int
|
|
main ()
|
|
{
|
|
hello ();
|
|
} /* after-hello */
|