/* Branch trace support for GDB, the GNU debugger.
- Copyright (C) 2013 Free Software Foundation, Inc.
+ Copyright (C) 2013-2014 Free Software Foundation, Inc.
Contributed by Intel Corp. <markus.t.metzger@intel.com>
static void
record_btrace_close (void)
{
+ /* Make sure automatic recording gets disabled even if we did not stop
+ recording before closing the record-btrace target. */
+ record_btrace_auto_disable ();
+
/* We already stopped recording. */
}
ui_out_field_uint (uiout, "index", idx);
ui_out_text (uiout, "\t");
- if ((flags & record_print_insn_range) != 0)
+ if ((flags & RECORD_PRINT_INSN_RANGE) != 0)
{
btrace_func_history_insn_range (uiout, bfun);
ui_out_text (uiout, "\t");
}
- if ((flags & record_print_src_line) != 0)
+ if ((flags & RECORD_PRINT_SRC_LINE) != 0)
{
btrace_func_history_src_line (uiout, bfun);
ui_out_text (uiout, "\t");