mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
gdb/
2013-06-26 Pedro Alves <pedro@codesourcery.com> Yao Qi <yao@codesourcery.com> * ctf.c (ctf_traceframe_info): Push trace state variables present in the trace data into the traceframe info object. * breakpoint.c (DEF_VEC_I): Remove. * common/filestuff.c (DEF_VEC_I): Likewise. * dwarf2loc.c (DEF_VEC_I): Likewise. * mi/mi-main.c (DEF_VEC_I): Likewise. * common/gdb_vecs.h (DEF_VEC_I): Define vector for int. * features/traceframe-info.dtd: Add tvar element and its attributes. * tracepoint.c (free_traceframe_info): Free vector 'tvars'. (build_traceframe_info): Push trace state variables present in the trace data into the traceframe info object. (traceframe_info_start_tvar): New function. (tvar_attributes): New. (traceframe_info_children): Add "tvar" element. * tracepoint.h (struct traceframe_info) <tvars>: New field. * NEWS: Mention the change in GDB and GDBserver. gdb/doc: 2013-06-26 Pedro Alves <pedro@codesourcery.com> * gdb.texinfo (Traceframe Info Format): Document tvar element and its attributes. gdb/gdbserver: 2013-06-26 Pedro Alves <pedro@codesourcery.com> * tracepoint.c (build_traceframe_info_xml): Output trace state variables present in the trace buffer.
This commit is contained in:
12
gdb/ctf.c
12
gdb/ctf.c
@ -1778,6 +1778,18 @@ ctf_traceframe_info (void)
|
||||
def = bt_ctf_get_field (event, scope, "length");
|
||||
r->length = (uint16_t) bt_ctf_get_uint64 (def);
|
||||
}
|
||||
else if (strcmp (name, "tsv") == 0)
|
||||
{
|
||||
int vnum;
|
||||
const struct bt_definition *scope
|
||||
= bt_ctf_get_top_level_scope (event,
|
||||
BT_EVENT_FIELDS);
|
||||
const struct bt_definition *def;
|
||||
|
||||
def = bt_ctf_get_field (event, scope, "num");
|
||||
vnum = (int) bt_ctf_get_int64 (def);
|
||||
VEC_safe_push (int, info->tvars, vnum);
|
||||
}
|
||||
else
|
||||
{
|
||||
warning (_("Unhandled trace block type (%s) "
|
||||
|
Reference in New Issue
Block a user