mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-15 01:00:26 +08:00
* 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". Makes sure things get cleaned up if gdb dies in the middle of a test.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
Tue Jan 28 14:42:31 1997 Bob Manson <manson@charmed.cygnus.com>
|
||||||
|
|
||||||
Major rewrite for testsuite revision.
|
Major rewrite for testsuite revision.
|
||||||
|
@ -594,17 +594,17 @@ proc default_gdb_exit {} {
|
|||||||
}
|
}
|
||||||
-i $gdb_spawn_id timeout { }
|
-i $gdb_spawn_id timeout { }
|
||||||
}
|
}
|
||||||
remote_close host;
|
|
||||||
} else {
|
} else {
|
||||||
# We used to try to send_gdb "quit" to GDB, and wait for it to die.
|
# 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,
|
# Dealing with all the cases and errors got pretty hairy. Just close it,
|
||||||
# that is simpler.
|
# that is simpler.
|
||||||
close -i $gdb_spawn_id
|
catch "close -i $gdb_spawn_id"
|
||||||
|
|
||||||
# Omitting this probably would cause strange timing-dependent failures.
|
# 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
|
unset gdb_spawn_id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user