aboutsummaryrefslogtreecommitdiff
path: root/gdb/btrace.c
diff options
context:
space:
mode:
authorFelix Willgerodt <felix.willgerodt@intel.com>2019-02-18 13:49:25 +0100
committerFelix Willgerodt <felix.willgerodt@intel.com>2024-08-14 11:20:55 +0200
commitd894edfcc40e63be9b6efa0950c1752f249f16e5 (patch)
tree9a04a58948e8b06b216e77a18359d82d688d49ba /gdb/btrace.c
parenta4c88987f0795d9fd0a2bafc3d5ee1484b5d168b (diff)
downloadgdb-d894edfcc40e63be9b6efa0950c1752f249f16e5.zip
gdb-d894edfcc40e63be9b6efa0950c1752f249f16e5.tar.gz
gdb-d894edfcc40e63be9b6efa0950c1752f249f16e5.tar.bz2
btrace: Introduce auxiliary instructions.
Auxiliary instructions are pseudo instructions pointing to auxiliary data. This auxiliary data can be printed in all commands displaying (record function-call-history, record instruction-history) or stepping through (stepi etc.) the execution history, which will be introduced in the next commits. This patch is in preparation for the new ptwrite feature, which is based on auxiliary instructions. Approved-By: Markus Metzger <markus.t.metzger@intel.com> Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Diffstat (limited to 'gdb/btrace.c')
-rw-r--r--gdb/btrace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/btrace.c b/gdb/btrace.c
index 5544c62..da219da 100644
--- a/gdb/btrace.c
+++ b/gdb/btrace.c
@@ -1819,6 +1819,8 @@ btrace_clear_history (struct btrace_thread_info *btinfo)
btinfo->insn_history = NULL;
btinfo->call_history = NULL;
btinfo->replay = NULL;
+
+ btinfo->aux_data.clear ();
}
/* Clear the branch trace maintenance histories in BTINFO. */