From: Pedro Alves Date: Fri, 29 May 2009 19:06:12 +0000 (+0000) Subject: * mi/mi-interp.c (mi_on_resume): Initialize `count' to 0. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab730e720d0430afd030fb178737e15f3190f5dd;p=binutils-gdb.git * mi/mi-interp.c (mi_on_resume): Initialize `count' to 0. --- 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