From: Ulrich Weigand Date: Sat, 12 Jul 2008 22:22:42 +0000 (+0000) Subject: * linux-low.c (handle_extended_wait): Do not use "status" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=836acd6d9a441506d62187829dd0f78774c61e9f;p=binutils-gdb.git * linux-low.c (handle_extended_wait): Do not use "status" variable uninitialized. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 105413cd76f..77993c4fa98 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2008-07-12 Ulrich Weigand + + * linux-low.c (handle_extended_wait): Do not use "status" + variable uninitialized. + 2008-07-07 Pedro Alves * server.c (handle_v_attach): Inhibit reporting dll changes. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index b41e679c626..956b45c3c21 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -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);