From 4baf5cf4879e4953b19a581f6cafce66964cfc3e Mon Sep 17 00:00:00 2001
From: Vladimir Prus <vladimir@codesourcery.com>
Date: Wed, 24 Mar 2010 19:37:06 +0000
Subject: 	* tracepoint.c (tvariables_info_1): Actually compute 	the
 number of rows in the result.

---
 gdb/ChangeLog    | 5 +++++
 gdb/tracepoint.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

(limited to 'gdb')

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fdd2b2c..865fb15 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
+
+	* tracepoint.c (tvariables_info_1): Actually compute
+	the number of rows in the result.
+
 2010-03-24  Pedro Alves  <pedro@codesourcery.com>
 
 	* remote.c (crc32): Constify `buf' parameter.
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index aab57d7..d11f086 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -422,7 +422,7 @@ tvariables_info_1 (void)
     }
 
   /* Try to acquire values from the target.  */
-  for (ix = 0; VEC_iterate (tsv_s, tvariables, ix, tsv); ++ix)
+  for (ix = 0; VEC_iterate (tsv_s, tvariables, ix, tsv); ++ix, ++count)
     tsv->value_known = target_get_trace_state_variable_value (tsv->number,
 							      &(tsv->value));
 
-- 
cgit v1.1