From: Rohr, Stephan Date: Mon, 24 Mar 2025 13:05:33 +0000 (+0000) Subject: testsuite: fix gdb_exit for MinGW target X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6d007cc9c2aa597ce14cce2991e91d06f83df1b1;p=thirdparty%2Fbinutils-gdb.git testsuite: fix gdb_exit for MinGW target GDB is not properly exited via 'remote_close host' when running the testsuite in a MinGW environment. Use the 'quit' command to properly exit the GDB debugging session. Approved-By: Tom Tromey --- diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 1b04cdc7e28..49ef0d54654 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -2301,7 +2301,8 @@ proc default_gdb_exit {} { } } - if { [is_remote host] && [board_info host exists fileid] } { + if { ([is_remote host] && [board_info host exists fileid]) + || [istarget *-*-mingw*] } { send_gdb "quit\n" gdb_expect 10 { -re "y or n" {