* tracepoint.c (tvariables_info_1): Actually compute
authorVladimir Prus <vladimir@codesourcery.com>
Wed, 24 Mar 2010 19:37:06 +0000 (19:37 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Wed, 24 Mar 2010 19:37:06 +0000 (19:37 +0000)
the number of rows in the result.

gdb/ChangeLog
gdb/tracepoint.c

index fdd2b2c3d4ec6c3df6048f77db46d0219d80efcd..865fb151a46c33e2cedb4490712d3601c351f6a2 100644 (file)
@@ -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.
index aab57d7c383f59ccb591901605218be43fbf8ac9..d11f086a6a78e25e0c0a0a9d805af1d8d9f31cec 100644 (file)
@@ -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));
 
This page took 0.041482 seconds and 4 git commands to generate.