[PATCH 11/27] gdb.base/exitsignal.exp: Use is_windows_native_target

Pedro Alves <[email protected]> Thu, 23 Jul 2026 14:01:02 +0100
Newsgroups gmane.comp.gdb.patches
Message-ID <[email protected]>
gdb.base/exitsignal.exp special-cases the pure Win32 program path with
a hardcoded "*-*-mingw*" istarget check.  Use is_windows_native_target
instead, so the special case also applies to windows-msvc targets.

Change-Id: I00611f28539aeddc23eb782e71f50d0874230cd8
---
 gdb/testsuite/gdb.base/exitsignal.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.base/exitsignal.exp b/gdb/testsuite/gdb.base/exitsignal.exp
index c77e41df78e..0ffb20258d1 100644
--- a/gdb/testsuite/gdb.base/exitsignal.exp
+++ b/gdb/testsuite/gdb.base/exitsignal.exp
@@ -120,7 +120,7 @@ proc test_signal {how exec binfile} {
     gdb_test "continue" "(Thread .*|Program) received signal SIGSEGV.*" \
 	"trigger SIGSEGV"
 
-    if {[istarget "*-*-mingw*"]
+    if {[is_windows_native_target]
 	|| ([istarget "*-*-cygwin*"] && $binfile == $::binfile3)} {
 	# We're debugging a pure Win32 program with no SEH handler.  The
 	# previous continue caught the first-chance exception.  Now we
-- 
2.54.0