close and wait commands, as the descriptor may now be
invalid. Always call "remote_close host".
Makes sure things get cleaned up if gdb dies in the middle of a test.
+Thu Jan 30 16:49:25 1997 Bob Manson <manson@charmed.cygnus.com>
+
+ * lib/gdb.exp(default_gdb_exit): Add a catch to the
+ close and wait commands, as the descriptor may now be
+ invalid. Always call "remote_close host".
+
Tue Jan 28 14:42:31 1997 Bob Manson <manson@charmed.cygnus.com>
Major rewrite for testsuite revision.
}
-i $gdb_spawn_id timeout { }
}
- remote_close host;
} else {
# We used to try to send_gdb "quit" to GDB, and wait for it to die.
# Dealing with all the cases and errors got pretty hairy. Just close it,
# that is simpler.
- close -i $gdb_spawn_id
+ catch "close -i $gdb_spawn_id"
# Omitting this probably would cause strange timing-dependent failures.
- wait -i $gdb_spawn_id
+ catch "wait -i $gdb_spawn_id"
}
+ remote_close host;
unset gdb_spawn_id
}