* tracepoint.c (tvariables_info_1): Actually compute

the number of rows in the result.
This commit is contained in:
Vladimir Prus 2010-03-24 19:37:06 +00:00
parent 4ebf39dbf4
commit 4baf5cf487
2 changed files with 6 additions and 1 deletions

View 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.

View 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));