Skip to content

Commit 6d007cc

Browse files
committed
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 <[email protected]>
1 parent 18335ab commit 6d007cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gdb/testsuite/lib/gdb.exp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2301,7 +2301,8 @@ proc default_gdb_exit {} {
23012301
}
23022302
}
23032303

2304-
if { [is_remote host] && [board_info host exists fileid] } {
2304+
if { ([is_remote host] && [board_info host exists fileid])
2305+
|| [istarget *-*-mingw*] } {
23052306
send_gdb "quit\n"
23062307
gdb_expect 10 {
23072308
-re "y or n" {

0 commit comments

Comments
 (0)