[01/25] Stop gdb in gnat_runtime_has_debug_info

Message ID 20230427-ada-catch-exception-v1-1-947caa9905e3@adacore.com
State New
Headers
Series Many updates to DAP implementation |

Commit Message

Tom Tromey May 24, 2023, 4:36 p.m. UTC
  gnat_runtime_has_debug_info starts a new gdb to do its work.  However,
it also leaves this gdb running, which can potentially confuse the
calling test -- I encountered this when writing a new DAP test.  This
patch changes the proc to shut down gdb.
---
 gdb/testsuite/lib/ada.exp | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

diff --git a/gdb/testsuite/lib/ada.exp b/gdb/testsuite/lib/ada.exp
index b728e3a2aba..b4a93faefa5 100644
--- a/gdb/testsuite/lib/ada.exp
+++ b/gdb/testsuite/lib/ada.exp
@@ -204,5 +204,7 @@  gdb_caching_proc gnat_runtime_has_debug_info {} {
 	}
     }
 
+    gdb_exit
+
     return $has_debug_info
 }