2008-04-10 Pedro Alves * lib/mi-support.exp (mi_warnings): New. (mi_run_cmd): Filter warnings in the -exec-run case. --- gdb/testsuite/lib/mi-support.exp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) Index: src/gdb/testsuite/lib/mi-support.exp =================================================================== --- src.orig/gdb/testsuite/lib/mi-support.exp 2008-04-10 20:45:40.000000000 +0100 +++ src/gdb/testsuite/lib/mi-support.exp 2008-04-10 20:51:46.000000000 +0100 @@ -33,6 +33,8 @@ global mi_inferior_tty_name set MIFLAGS "-i=mi" +set mi_warnings "(&\".*\"\r\n)*" + # # mi_gdb_exit -- exit the GDB, killing the target program if necessary # @@ -780,6 +782,7 @@ proc mi_run_cmd {args} { return -1 } global mi_gdb_prompt + global mi_warnings if [target_info exists gdb_init_command] { send_gdb "[target_info gdb_init_command]\n"; @@ -821,7 +824,7 @@ proc mi_run_cmd {args} { send_gdb "220-exec-run $args\n" gdb_expect { - -re "220\\^running\r\n${mi_gdb_prompt}" { + -re "220\\^running\r\n${mi_warnings}${mi_gdb_prompt}" { } timeout { perror "Unable to start target"