varobj/Ada: Missing children for interface-wide tagged types
[deliverable/binutils-gdb.git] / gdb / record-btrace.c
index e85de5e50f8ce4cc66a222987e6947c4d8b05844..5fd26e257cc41e4193a27070ac20726f5a66274f 100644 (file)
@@ -1,6 +1,6 @@
 /* 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>
 
@@ -192,6 +192,10 @@ record_btrace_stop_recording (void)
 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.  */
 }
 
@@ -465,13 +469,13 @@ btrace_func_history (struct btrace_thread_info *btinfo, struct ui_out *uiout,
       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");
This page took 0.024092 seconds and 4 git commands to generate.