This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/6 V2] New MI command -trace-frame-collected
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Thu, 13 Jun 2013 09:28:28 +0800
- Subject: [PATCH 0/6 V2] New MI command -trace-frame-collected
- References: <1370610493-26468-1-git-send-email-yao at codesourcery dot com>
Hi,
In a given traceframe, there are explicitly collected variables,
registers, trace state variables, memories, and computed expressions.
In MI, we don't have a command to dump these contents, and this patch
adds -trace-frame-collected to do so.
Patch 5/6 is the major part of this series, and patch 6/6 is the test
to -trace-frame-collected. GDB needs to know what trace state
variables are collected in a traceframe, so we extended the
qXfer:traceframe-info object to report the set of collected trace
state variables in the current traceframe. That is what patch 4/5 does.
Patch 1/6, 2/6 and 3/6 is code refactor.
The whole series are tested on x86_64-linux with native and gdbserver.
This is the V2 of this series. In V2, there are several changes:
- Mention some changes in ChangeLog entry and correct comments.
- Split the changes on encode_actions in a different way, which is more
readable.
- Move the change from warning to error to a separate patch.
- Explain what 'tvar' element does in NEWS.
The V1 can be found <http://sourceware.org/ml/gdb-patches/2013-06/msg00148.html>
*** BLURB HERE ***
Yao Qi (6):
Remove global variable tracepoint_list and stepping_list.
Emit error in tdump command when traceframe is not selected.
Move code to get_traceframe_location.
Add id of TSV into traceframe_info.
New MI command -trace-frame-collected
New test: gdb.trace/mi-trace-frame-collected.exp
gdb/NEWS | 11 +
gdb/breakpoint.c | 2 -
gdb/common/filestuff.c | 2 -
gdb/common/gdb_vecs.h | 2 +
gdb/ctf.c | 12 +
gdb/doc/gdb.texinfo | 122 ++++++++-
gdb/dwarf2loc.c | 2 -
gdb/features/traceframe-info.dtd | 5 +-
gdb/gdbserver/tracepoint.c | 7 +
gdb/mi/mi-cmds.c | 2 +
gdb/mi/mi-cmds.h | 1 +
gdb/mi/mi-main.c | 299 +++++++++++++++++++-
gdb/remote.c | 2 +-
.../gdb.trace/mi-trace-frame-collected.exp | 154 ++++++++++
gdb/tracepoint.c | 304 +++++++++++++-------
gdb/tracepoint.h | 50 +++-
16 files changed, 858 insertions(+), 119 deletions(-)
create mode 100644 gdb/testsuite/gdb.trace/mi-trace-frame-collected.exp
--
1.7.7.6