OSDN Git Service

* win32-nat.c (DR6_CLEAR_VALUE): New define.
authorpalves <palves>
Sat, 24 Nov 2007 12:13:27 +0000 (12:13 +0000)
committerpalves <palves>
Sat, 24 Nov 2007 12:13:27 +0000 (12:13 +0000)
commit96807a4d91f628c7b0d2cb21d2fbff5ef7b9e0c2
tree5f170d62caadf471ef88346725207509347c8e13
parent141f7874cf76f03a7748b758d575d28a42e9de16
* 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