From b0627500e819fcaaa42538046b0bf069a7c2edc5 Mon Sep 17 00:00:00 2001 From: Markus Metzger Date: Mon, 3 Feb 2014 14:35:28 +0100 Subject: btrace: maintenance commands Add maintenance commands that help debugging the btrace record target. The following new commands are added: maint info btrace Print information about branch tracing internals. maint btrace packet-history Print the raw branch tracing data. maint btrace clear-packet-history Discard the stored raw branch tracing data. maint btrace clear Discard all branch tracing data. It will be fetched and processed anew by the next "record" command. maint set|show btrace pt skip-pad Set and show whether PAD packets are skipped when computing the packet history. gdb/ * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h. (maint_btrace_cmdlist, maint_btrace_set_cmdlist) (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist) (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad) (btrace_maint_clear): New. (btrace_fetch, btrace_clear): Call btrace_maint_clear. (pt_print_packet, btrace_maint_decode_pt) (btrace_maint_update_pt_packets, btrace_maint_update_packets) (btrace_maint_print_packets, get_uint, get_context_size, no_chunk) (maint_btrace_packet_history_cmd) (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd) (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd) (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd) (maint_info_btrace_cmd, _initialize_btrace): New. * btrace.h (btrace_pt_packet, btrace_pt_packet_s) (btrace_maint_packet_history, btrace_maint_info): New. (btrace_thread_info) : New. * NEWS: Announce it. doc/ * gdb.texinfo (Maintenance Commands): Document "maint btrace" commands. --- gdb/NEWS | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'gdb/NEWS') diff --git a/gdb/NEWS b/gdb/NEWS index 6e0fe6d..748fc00 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -116,6 +116,19 @@ record btrace pt record pt Start branch trace recording using Intel(R) Processor Trace format. +maint info btrace + Print information about branch tracing internals. + +maint btrace packet-history + Print the raw branch tracing data. + +maint btrace clear-packet-history + Discard the stored raw branch tracing data. + +maint btrace clear + Discard all branch tracing data. It will be fetched and processed + anew by the next "record" command. + * New options set debug dwarf-die @@ -173,6 +186,10 @@ set|show record btrace pt buffer-size The obtained size may differ from the requested size. Use "info record" to see the obtained buffer size. +maint set|show btrace pt skip-pad + Set and show whether PAD packets are skipped when computing the + packet history. + * The command 'thread apply all' can now support new option '-ascending' to call its specified command for all threads in ascending order. -- cgit v1.1