summaryrefslogtreecommitdiff
path: root/gdb/gdbserver/win32-low.h
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2007-12-03 01:10:30 +0000
committerPedro Alves <pedro@codesourcery.com>2007-12-03 01:10:30 +0000
commit20b2e61c43e9f8130e6c9930ccdbffb660318d0c (patch)
treeb385465907c6f34f4b31b5ea3f4d7cd8e9f007c4 /gdb/gdbserver/win32-low.h
parenta72a606454289603b4450a980ed93514b37cb4b2 (diff)
downloadgdb-20b2e61c43e9f8130e6c9930ccdbffb660318d0c.tar.gz
* win32-low.h (win32_thread_info): Add descriptions to the
structure members. Replace `suspend_count' counter by a `suspended' flag. * win32-low.c (thread_rec): Update condition of when to get the context from the inferior. Rely on ContextFlags being set if it has already been retrieved. Only suspend the inferior thread if we haven't already. Warn if that fails. (continue_one_thread): s/suspend_count/suspended/. Only call ResumeThread once. Warn if that fails.
Diffstat (limited to 'gdb/gdbserver/win32-low.h')
-rw-r--r--gdb/gdbserver/win32-low.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/gdbserver/win32-low.h b/gdb/gdbserver/win32-low.h
index cef57c51ad0..c2bf06a3632 100644
--- a/gdb/gdbserver/win32-low.h
+++ b/gdb/gdbserver/win32-low.h
@@ -22,9 +22,16 @@
each thread. */
typedef struct win32_thread_info
{
+ /* The Win32 thread identifier. */
DWORD tid;
+
+ /* The handle to the thread. */
HANDLE h;
- int suspend_count;
+
+ /* Non zero if SuspendThread was called on this thread. */
+ int suspended;
+
+ /* The context of the thread. */
CONTEXT context;
} win32_thread_info;