From d84e7fa10b30d19b3b7574d1b1e2cc3dbed365ad Mon Sep 17 00:00:00 2001 From: janis Date: Fri, 11 Jan 2013 20:11:36 +0000 Subject: [PATCH] * testsuite/lib/gdb-test.exp (gdb_batch_check): Catch error running gdb command. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195115 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/testsuite/lib/gdb-test.exp | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 9e8eca0..f72c36b 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2013-01-03 Janis Johnson + + * testsuite/lib/gdb-test.exp (gdb_batch_check): Catch error running + gdb command. + 2013-01-08 Jonathan Wakely * doc/xml/manual/status_cxx2011.xml: Document that N3189 is missing. diff --git a/libstdc++-v3/testsuite/lib/gdb-test.exp b/libstdc++-v3/testsuite/lib/gdb-test.exp index 3434ef2..7a00abc 100644 --- a/libstdc++-v3/testsuite/lib/gdb-test.exp +++ b/libstdc++-v3/testsuite/lib/gdb-test.exp @@ -219,7 +219,9 @@ proc gdb_batch_check {command pattern} { set gdb_name $::env(GUALITY_GDB_NAME) set cmd "$gdb_name -nw -nx -quiet -batch -ex \"$command\"" send_log "Spawning: $cmd\n" - set res [remote_spawn target "$cmd"] + if [catch { set res [remote_spawn target "$cmd"] } ] { + return 0 + } if { $res < 0 || $res == "" } { return 0 } -- 2.7.4