* breakpoint.c: Include record.h.
authorPedro Alves <palves@redhat.com>
Mon, 5 Dec 2011 16:57:30 +0000 (16:57 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 5 Dec 2011 16:57:30 +0000 (16:57 +0000)
(breakpoints_always_inserted_mode): Return false when the record
target is in use.

gdb/ChangeLog
gdb/breakpoint.c

index 262ca616f992223c1d0cc10c0ee500141a5c50a8..5b8691cb42edf830160c0e00ed9ed233f445fd5e 100644 (file)
@@ -1,3 +1,9 @@
+2011-12-05  Pedro Alves  <pedro@codesourcery.com>
+
+       * breakpoint.c: Include record.h.
+       (breakpoints_always_inserted_mode): Return false when the record
+       target is in use.
+
 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
 
        * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
index c6b8e05baa28a7e8bfd3f6d88761980952d49113..6f8fd2120db6c7a20d9a35fd4e0b8bf04b2f4d5b 100644 (file)
@@ -67,6 +67,7 @@
 #include "continuations.h"
 #include "stack.h"
 #include "skip.h"
+#include "record.h"
 
 /* readline include files */
 #include "readline/readline.h"
@@ -377,8 +378,9 @@ show_always_inserted_mode (struct ui_file *file, int from_tty,
 int
 breakpoints_always_inserted_mode (void)
 {
-  return (always_inserted_mode == always_inserted_on
-         || (always_inserted_mode == always_inserted_auto && non_stop));
+  return ((always_inserted_mode == always_inserted_on
+          || (always_inserted_mode == always_inserted_auto && non_stop))
+         && !RECORD_IS_USED);
 }
 
 void _initialize_breakpoint (void);