From ab730e720d0430afd030fb178737e15f3190f5dd Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 29 May 2009 19:06:12 +0000 Subject: [PATCH] * mi/mi-interp.c (mi_on_resume): Initialize `count' to 0. --- gdb/ChangeLog | 4 ++++ gdb/mi/mi-interp.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9af938df543..b620d98e184 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-05-29 Pedro Alves + + * mi/mi-interp.c (mi_on_resume): Initialize `count' to 0. + 2009-05-29 Eli Zaretskii * i386-tdep.c (i386_go32_init_abi): Use SVR4 register numbering diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index 0d67161250d..5ad4a51753b 100644 --- a/gdb/mi/mi-interp.c +++ b/gdb/mi/mi-interp.c @@ -447,7 +447,7 @@ mi_on_resume (ptid_t ptid) fprintf_unfiltered (raw_stdout, "*running,thread-id=\"all\"\n"); else if (ptid_is_pid (ptid)) { - int count; + int count = 0; /* Backwards compatibility. If there's only one inferior, output "all", otherwise, output each resumed thread -- 2.30.2