Stop gdb in gnat_runtime_has_debug_info
authorTom Tromey <tromey@adacore.com>
Mon, 17 Apr 2023 17:20:02 +0000 (11:20 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 12 Jun 2023 17:51:52 +0000 (11:51 -0600)
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

index b728e3a2aba9e62c7cd2402e3042d5a291017c49..b4a93faefa5a6f299e9797923cf95dec772f60db 100644 (file)
@@ -204,5 +204,7 @@ gdb_caching_proc gnat_runtime_has_debug_info {} {
        }
     }
 
+    gdb_exit
+
     return $has_debug_info
 }