aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-05-29 19:06:12 +0000
committerPedro Alves <palves@redhat.com>2009-05-29 19:06:12 +0000
commitab730e720d0430afd030fb178737e15f3190f5dd (patch)
treeb84c8254bcb117892792dc20ed0f98832c8624e7 /gdb/mi
parenteb4ff4d67f23a5572fce03bbf06a7bf34a0b11e6 (diff)
downloadgdb-ab730e720d0430afd030fb178737e15f3190f5dd.zip
gdb-ab730e720d0430afd030fb178737e15f3190f5dd.tar.gz
gdb-ab730e720d0430afd030fb178737e15f3190f5dd.tar.bz2
* mi/mi-interp.c (mi_on_resume): Initialize `count' to 0.
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/mi-interp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c
index 0d67161..5ad4a51 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