[review] Handle pending stops from the Windows kernel

Tom Tromey tom@tromey.com
Tue Nov 26 17:08:00 GMT 2019


>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

>>>> +	      if (software_breakpoint_inserted_here_p (regcache->aspace (), pc))

Pedro> Why is software_breakpoint_inserted_here_p needed?  

>> Offsetting the PC did not work without this.

The problem turned out to be that this was the line preventing a
spurious stop at the initial "breakpoint" that occurs when starting an
inferior on Windows.  Checking windows_initialization_done worked as
well.

I've fixed this and also changed the code to adjust the PC for suspended
threads.

Tom



More information about the Gdb-patches mailing list