* linux-low.c (handle_extended_wait): Do not use "status"
authorUlrich Weigand <uweigand@de.ibm.com>
Sat, 12 Jul 2008 22:22:42 +0000 (22:22 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Sat, 12 Jul 2008 22:22:42 +0000 (22:22 +0000)
variable uninitialized.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c

index 105413cd76f4217ea10b731f81dbdc3b1431861d..77993c4fa9898ac18583144869bd36599bf4d06a 100644 (file)
@@ -1,3 +1,8 @@
+2008-07-12  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * linux-low.c (handle_extended_wait): Do not use "status"
+       variable uninitialized.
+
 2008-07-07  Pedro Alves  <pedro@codesourcery.com>
 
        * server.c (handle_v_attach): Inhibit reporting dll changes.
index b41e679c6269e6eaba92e6d08daed208d8010397..956b45c3c213882bf355df6b7bc3c0f8cd4f76d6 100644 (file)
@@ -149,7 +149,7 @@ handle_extended_wait (struct process_info *event_child, int wstat)
   if (event == PTRACE_EVENT_CLONE)
     {
       unsigned long new_pid;
-      int ret, status;
+      int ret, status = W_STOPCODE (SIGSTOP);
 
       ptrace (PTRACE_GETEVENTMSG, inferior_pid, 0, &new_pid);