From: Tom Tromey Date: Mon, 17 Apr 2023 17:20:02 +0000 (-0600) Subject: Stop gdb in gnat_runtime_has_debug_info X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4adf3a4059b291364842678be17d4b62214bbdbd;p=binutils-gdb.git Stop gdb in gnat_runtime_has_debug_info 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. --- 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 }