* win32-nat.c (DR6_CLEAR_VALUE): New define.
authorPedro Alves <palves@redhat.com>
Sat, 24 Nov 2007 12:13:28 +0000 (12:13 +0000)
committerPedro Alves <palves@redhat.com>
Sat, 24 Nov 2007 12:13:28 +0000 (12:13 +0000)
commit6537bb249efc0e7279d4b23d2e9501e3416feb7f
tree2853ad16e09efa056012b2b60b4610464324cd6c
parent7129a489bd8d26554ebf7830d62a6eb95a0db7e8
* win32-nat.c (DR6_CLEAR_VALUE): New define.
(thread_info_struct): Rename suspend_count to suspended, to be
used as a flag.
(thread_rec): Only suspend the thread if it wasn't suspended by
gdb before.  Warn if suspending failed.
(win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
(win32_continue): Set Dr6 to DR6_CLEAR_VALUE.  Update usage of the
`suspended' flag.  Do ContinueDebugEvent after resuming the
suspended threads, not before.  Set threads' contexts before
resuming them, not after.
(win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
gdb/ChangeLog
gdb/win32-nat.c
gdb/windows-nat.c