aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2008-07-12 22:22:42 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2008-07-12 22:22:42 +0000
commit836acd6d9a441506d62187829dd0f78774c61e9f (patch)
treee08c397c643e27c2f3489d89b4f3eec7f055dae9 /gdb/gdbserver
parentd5b254911b8762c87f380aec389be5bf0d6ff4b0 (diff)
downloadgdb-836acd6d9a441506d62187829dd0f78774c61e9f.zip
gdb-836acd6d9a441506d62187829dd0f78774c61e9f.tar.gz
gdb-836acd6d9a441506d62187829dd0f78774c61e9f.tar.bz2
* linux-low.c (handle_extended_wait): Do not use "status"
variable uninitialized.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/linux-low.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 105413c..77993c4 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -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.
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index b41e679..956b45c 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);