This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
fix "info tvariables"
- From: Vladimir Prus <vladimir at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 24 Mar 2010 22:38:02 +0300
- Subject: fix "info tvariables"
I've fixed the below obvious patch to fix breakage in "info travariables"
that my MI tracepoint patches have introduced.
--
Vladimir Prus
CodeSourcery
vladimir@codesourcery.com
(650) 331-3385 x722
? .kdev4
Index: gdb/ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.11523
diff -u -p -r1.11523 ChangeLog
--- gdb/ChangeLog 24 Mar 2010 01:12:12 -0000 1.11523
+++ gdb/ChangeLog 24 Mar 2010 19:35:11 -0000
@@ -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: gdb/tracepoint.c
===================================================================
RCS file: /cvs/src/src/gdb/tracepoint.c,v
retrieving revision 1.153
diff -u -p -r1.153 tracepoint.c
--- gdb/tracepoint.c 23 Mar 2010 22:05:45 -0000 1.153
+++ gdb/tracepoint.c 24 Mar 2010 19:35:12 -0000
@@ -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));