mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-13 02:14:39 +08:00
Catch error on close so runtest won't bomb.
This commit is contained in:
@ -139,6 +139,7 @@ proc gdb_exit {} {
|
|||||||
}
|
}
|
||||||
catch "send \"quit\n\"" result
|
catch "send \"quit\n\"" result
|
||||||
if [string match "write\(spawn_id=\[0-9\]+\): Bad file number" $result] then {
|
if [string match "write\(spawn_id=\[0-9\]+\): Bad file number" $result] then {
|
||||||
|
catch "close"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
expect {
|
expect {
|
||||||
@ -161,6 +162,11 @@ proc gdb_exit {} {
|
|||||||
close
|
close
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch "close"
|
||||||
|
|
||||||
|
if $verbose>1 then {
|
||||||
|
send_user "Quitting $GDB $GDBFLAGS\n"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user