Removed PDB32_DEBUGGED flag and send all debug events unconditionally.
Implemented IsDebuggerPresent().
diff --git a/server/trace.c b/server/trace.c
index 79ffa2e..2bdecde 100644
--- a/server/trace.c
+++ b/server/trace.c
@@ -262,6 +262,11 @@
fprintf( stderr, " entry=%p", req->entry );
}
+static void dump_init_process_done_reply( const struct init_process_done_request *req )
+{
+ fprintf( stderr, " debugged=%d", req->debugged );
+}
+
static void dump_init_thread_request( const struct init_thread_request *req )
{
fprintf( stderr, " unix_pid=%d,", req->unix_pid );
@@ -300,6 +305,7 @@
static void dump_get_process_info_reply( const struct get_process_info_request *req )
{
fprintf( stderr, " pid=%p,", req->pid );
+ fprintf( stderr, " debugged=%d,", req->debugged );
fprintf( stderr, " exit_code=%d,", req->exit_code );
fprintf( stderr, " priority=%d,", req->priority );
fprintf( stderr, " process_affinity=%d,", req->process_affinity );
@@ -1329,7 +1335,7 @@
(dump_func)dump_new_thread_reply,
(dump_func)0,
(dump_func)dump_init_process_reply,
- (dump_func)0,
+ (dump_func)dump_init_process_done_reply,
(dump_func)0,
(dump_func)dump_get_thread_buffer_reply,
(dump_func)0,