diff options
author | Tom Tromey <tromey@adacore.com> | 2024-03-14 11:35:25 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-03-18 06:54:20 -0600 |
commit | 2518ce94704e54597bec273cafb090693b2de098 (patch) | |
tree | 225a894cbeb254a99794f2149d3eec92aac5ed5d /gdb/testsuite/lib/build-piece.exp | |
parent | d0eb2625bff1387744304bdc70ec0a85a20b8a3f (diff) | |
download | binutils-2518ce94704e54597bec273cafb090693b2de098.zip binutils-2518ce94704e54597bec273cafb090693b2de098.tar.gz binutils-2518ce94704e54597bec273cafb090693b2de098.tar.bz2 |
Clear board_info entry after waiting for process
When certain DAP tests are run in a certain order, dejagnu will throw
an exception during shutdown. After adding many logging statements, I
tracked this down to kill_wait_spawned_process not clearing the
'fileid' board_info entry, causing dejagnu to try to wait for the
process a second time -- and fail.
Tom de Vries then pointed out a second instance of this, which I
tracked down to the same problem occurring when spawning gdbserver.
This version of the patch fixes this by adding a new proc that can be
used to clean up board_info after waiting for a process to exit. I'm
not sure why this problem hasn't affected the test suite in the past.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31435
Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/testsuite/lib/build-piece.exp')
0 files changed, 0 insertions, 0 deletions