forked from Imagelibrary/binutils-gdb
btrace: Enable auxiliary instructions in record function-call-history.
Print the auxiliary data when a btrace_insn of type BTRACE_INSN_AUX is encountered in the function-call-history. Printing is active by default, it can be silenced with the /a modifier. 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>
This commit is contained in:
@@ -664,6 +664,9 @@ ftrace_update_insns (struct btrace_function *bfun, const btrace_insn &insn)
|
||||
{
|
||||
bfun->insn.push_back (insn);
|
||||
|
||||
if (insn.iclass == BTRACE_INSN_AUX)
|
||||
bfun->flags |= BFUN_CONTAINS_AUX;
|
||||
|
||||
if (record_debug > 1)
|
||||
ftrace_debug (bfun, "update insn");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user