* [PATCH] Adjust gdb.base/bp-permanent.exp for Cygwin
@ 2025-06-06 16:54 Pedro Alves
2025-06-06 17:26 ` Kevin Buettner
0 siblings, 1 reply; 3+ messages in thread
From: Pedro Alves @ 2025-06-06 16:54 UTC (permalink / raw)
To: gdb-patches
On Cygwin, all inferiors are multi-threaded, because both Windows and
the Cygwin runtime spawn a few helper threads. Adjust the
gdb.base/bp-permanent.exp testcase to work with either single- or
multi-threaded inferiors.
Change-Id: I28935b34fc9f739c2a5490e83aa4995d29927be2
---
gdb/testsuite/gdb.base/bp-permanent.exp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/testsuite/gdb.base/bp-permanent.exp b/gdb/testsuite/gdb.base/bp-permanent.exp
index 62ce3f69b69..c6c62699043 100644
--- a/gdb/testsuite/gdb.base/bp-permanent.exp
+++ b/gdb/testsuite/gdb.base/bp-permanent.exp
@@ -134,7 +134,7 @@ proc test {always_inserted sw_watchpoint} {
unsupported "failed to stop at permanent breakpoint"
return
}
- -re "Program received signal SIGTRAP.*$gdb_prompt $" {
+ -re "received signal SIGTRAP.*$gdb_prompt $" {
pass $test
}
}
@@ -174,7 +174,7 @@ proc test {always_inserted sw_watchpoint} {
# disabled, it should act as if we hadn't created it in the first
# place. IOW, we should get a random signal, and, the breakpoint's
# command should not run.
- gdb_test "continue" "Program received signal SIGTRAP.*" \
+ gdb_test "continue" "received signal SIGTRAP.*" \
"disabled permanent breakpoint doesn't explain stop"
gdb_test "info breakpoints" \
--
2.49.0
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] Adjust gdb.base/bp-permanent.exp for Cygwin
2025-06-06 16:54 [PATCH] Adjust gdb.base/bp-permanent.exp for Cygwin Pedro Alves
@ 2025-06-06 17:26 ` Kevin Buettner
2025-06-09 16:41 ` Pedro Alves
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Buettner @ 2025-06-06 17:26 UTC (permalink / raw)
To: Pedro Alves; +Cc: gdb-patches
On Fri, 6 Jun 2025 17:54:39 +0100
Pedro Alves <pedro@palves.net> wrote:
> On Cygwin, all inferiors are multi-threaded, because both Windows and
> the Cygwin runtime spawn a few helper threads. Adjust the
> gdb.base/bp-permanent.exp testcase to work with either single- or
> multi-threaded inferiors.
Approved-by: Kevin Buettner <kevinb@redhat.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Adjust gdb.base/bp-permanent.exp for Cygwin
2025-06-06 17:26 ` Kevin Buettner
@ 2025-06-09 16:41 ` Pedro Alves
0 siblings, 0 replies; 3+ messages in thread
From: Pedro Alves @ 2025-06-09 16:41 UTC (permalink / raw)
To: Kevin Buettner; +Cc: gdb-patches
On 2025-06-06 18:26, Kevin Buettner wrote:
> On Fri, 6 Jun 2025 17:54:39 +0100
> Pedro Alves <pedro@palves.net> wrote:
>
>> On Cygwin, all inferiors are multi-threaded, because both Windows and
>> the Cygwin runtime spawn a few helper threads. Adjust the
>> gdb.base/bp-permanent.exp testcase to work with either single- or
>> multi-threaded inferiors.
>
> Approved-by: Kevin Buettner <kevinb@redhat.com>
>
Pushed as well.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-06-09 16:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-06 16:54 [PATCH] Adjust gdb.base/bp-permanent.exp for Cygwin Pedro Alves
2025-06-06 17:26 ` Kevin Buettner
2025-06-09 16:41 ` Pedro Alves
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox