gdb-test.exp (gdb_batch_check): Catch error running gdb command.
* testsuite/lib/gdb-test.exp (gdb_batch_check): Catch error running gdb command. From-SVN: r195115
This commit is contained in:
parent
5bc3511360
commit
93b2c9a52e
@ -1,3 +1,8 @@
|
|||||||
|
2013-01-03 Janis Johnson <janisjo@codesourcery.com>
|
||||||
|
|
||||||
|
* testsuite/lib/gdb-test.exp (gdb_batch_check): Catch error running
|
||||||
|
gdb command.
|
||||||
|
|
||||||
2013-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
|
2013-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
|
||||||
|
|
||||||
* doc/xml/manual/status_cxx2011.xml: Document that N3189 is missing.
|
* doc/xml/manual/status_cxx2011.xml: Document that N3189 is missing.
|
||||||
|
@ -219,7 +219,9 @@ proc gdb_batch_check {command pattern} {
|
|||||||
set gdb_name $::env(GUALITY_GDB_NAME)
|
set gdb_name $::env(GUALITY_GDB_NAME)
|
||||||
set cmd "$gdb_name -nw -nx -quiet -batch -ex \"$command\""
|
set cmd "$gdb_name -nw -nx -quiet -batch -ex \"$command\""
|
||||||
send_log "Spawning: $cmd\n"
|
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 == "" } {
|
if { $res < 0 || $res == "" } {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user