[PATCH] Adjust gdb.arch/amd64-watchpoint-downgrade.exp for Cygwin

Kevin Buettner kevinb@redhat.com
Fri Jun 6 17:29:08 GMT 2025


On Fri,  6 Jun 2025 17:59:30 +0100
Pedro Alves <pedro@palves.net> wrote:

> The gdb.arch/amd64-watchpoint-downgrade.exp testcase is assuming the
> output of debugging a single-thread program, like so, on e.g.,
> GNU/Linux:
> 
>  starti
>  Starting program: .../gdb.arch/amd64-watchpoint-downgrade/amd64-watchpoint-downgrade
>  warning: watchpoint 1 downgraded to software watchpoint
> 
>  Program stopped.
>  0x00007ffff7fe32b0 in _start () from /lib64/ld-linux-x86-64.so.2
> 
> However, on Cygwin, where all inferiors are multi-threaded (because
> both Windows and the Cygwin runtime spawn a few helper threads), we
> get:
> 
>  starti
>  Starting program: .../gdb.arch/amd64-watchpoint-downgrade/amd64-watchpoint-downgrade
>  [New Thread 4652.0x17e4]
>  warning: watchpoint 1 downgraded to software watchpoint
> 
>  Thread 1 stopped.
>  0x00007ffbfc1c0911 in ntdll!LdrInitShimEngineDynamic () from C:/Windows/SYSTEM32/ntdll.dll
> 
> This commit adjusts the testcase to work with either output.

Approved-by: Kevin Buettner <kevinb@redhat.com>



More information about the Gdb-patches mailing list