Fix debugging of WOW64 processes
authorHannes Domani <ssbssa@yahoo.de>
Thu, 9 Apr 2020 14:33:20 +0000 (16:33 +0200)
committerHannes Domani <ssbssa@yahoo.de>
Fri, 10 Apr 2020 11:01:31 +0000 (13:01 +0200)
commit13302e956fb7a0c700f53f16d985c9e6207e331c
tree3fd9fe1b448cd685717fabccbc62e31ca2fd5e1d
parenta5d214978ffff7d4b3df9b89706c1df4f0ecd64e
Fix debugging of WOW64 processes

The new code regarding pending stops only checks for EXCEPTION_BREAKPOINT,
but for WOW64 processes STATUS_WX86_BREAKPOINT is necessary as well.

Also, ignore_first_breakpoint is used now in nat/windows-nat.c as well,
but was not available there.

gdb/ChangeLog:

2020-04-10  Hannes Domani  <ssbssa@yahoo.de>

* nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
Move to...
* nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
... here.
* windows-nat.c (windows_nat_target::get_windows_debug_event):
Check for STATUS_WX86_BREAKPOINT.
(windows_nat_target::wait): Same.
gdb/ChangeLog
gdb/nat/windows-nat.c
gdb/nat/windows-nat.h
gdb/windows-nat.c