From: Rainer Orth Date: Thu, 3 Mar 2016 10:04:28 +0000 (+0000) Subject: Invoke gdb with -batch to avoid prompts X-Git-Tag: releases/gcc-4.9.4~292 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd8a99535b41eb2405ac3ac6c90871ed556ad7d5;p=thirdparty%2Fgcc.git Invoke gdb with -batch to avoid prompts * lib/gcc-gdb-test.exp (gdb-test): Make log message match command. Invoke gdb with -batch. * lib/gcc-simulate-thread.exp (simulate-thread): Likewise. From-SVN: r233933 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 98da2eddf5fa..d61a7e6e9222 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2016-03-03 Rainer Orth + + * lib/gcc-gdb-test.exp (gdb-test): Make log message match command. + Invoke gdb with -batch. + * lib/gcc-simulate-thread.exp (simulate-thread): Likewise. + 2016-03-01 Eric Botcazou * gcc.target/i386/pr70007.c: New test. diff --git a/gcc/testsuite/lib/gcc-gdb-test.exp b/gcc/testsuite/lib/gcc-gdb-test.exp index d182d88fa56a..15e84290edc1 100644 --- a/gcc/testsuite/lib/gcc-gdb-test.exp +++ b/gcc/testsuite/lib/gcc-gdb-test.exp @@ -52,8 +52,8 @@ proc gdb-test { args } { puts $fd "quit" close $fd - send_log "Spawning: $gdb_name -nx -nw -quiet -x $cmd_file ./$output_file\n" - set res [remote_spawn target "$gdb_name -nx -nw -quiet -x $cmd_file ./$output_file"] + send_log "Spawning: $gdb_name -nx -nw -quiet -batch -x $cmd_file ./$output_file\n" + set res [remote_spawn target "$gdb_name -nx -nw -quiet -batch -x $cmd_file ./$output_file"] if { $res < 0 || $res == "" } { unsupported "$testname" file delete $cmd_file diff --git a/gcc/testsuite/lib/gcc-simulate-thread.exp b/gcc/testsuite/lib/gcc-simulate-thread.exp index 100462458e56..db09b78ad6f5 100644 --- a/gcc/testsuite/lib/gcc-simulate-thread.exp +++ b/gcc/testsuite/lib/gcc-simulate-thread.exp @@ -49,8 +49,8 @@ proc simulate-thread { args } { set message "thread simulation test" - send_log "Spawning: $gdb_name -nx -nw -quiet -x $cmd_file ./$exec_file\n" - set res [remote_spawn target "$gdb_name -nx -nw -x $cmd_file ./$exec_file"] + send_log "Spawning: $gdb_name -nx -nw -batch -x $cmd_file ./$exec_file\n" + set res [remote_spawn target "$gdb_name -nx -nw -batch -x $cmd_file ./$exec_file"] if { $res < 0 || $res == "" } { unsupported "$testcase $message" return