aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-12-05 16:57:30 +0000
committerPedro Alves <palves@redhat.com>2011-12-05 16:57:30 +0000
commit049e32d3aafe865eb23109d4119702da07251ef2 (patch)
tree093a54e5609033fb2c060f1213445f1426dfb124 /gdb/breakpoint.c
parentddd7f988d414805a92d470b9ae6cf46390033d92 (diff)
downloadgdb-049e32d3aafe865eb23109d4119702da07251ef2.zip
gdb-049e32d3aafe865eb23109d4119702da07251ef2.tar.gz
gdb-049e32d3aafe865eb23109d4119702da07251ef2.tar.bz2
* breakpoint.c: Include record.h.
(breakpoints_always_inserted_mode): Return false when the record target is in use.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index c6b8e05..6f8fd21 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -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);