aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/win32-low.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2007-12-03 01:10:30 +0000
committerPedro Alves <palves@redhat.com>2007-12-03 01:10:30 +0000
commitc436e841ffe6de640cb19bd7915d117309ed079e (patch)
treec315752cf01aa2a447c9b0969f0706c996a67626 /gdb/gdbserver/win32-low.h
parent0421e13edb5307146de9a31648f40218162145a6 (diff)
downloadgdb-c436e841ffe6de640cb19bd7915d117309ed079e.zip
gdb-c436e841ffe6de640cb19bd7915d117309ed079e.tar.gz
gdb-c436e841ffe6de640cb19bd7915d117309ed079e.tar.bz2
* 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 cef57c5..c2bf06a 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;