aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-11-15 20:10:34 +0000
committerPedro Alves <palves@redhat.com>2009-11-15 20:10:34 +0000
commit678229626ec8f1a0d0d5c494335c05e9d0b52832 (patch)
tree50c327ad9c91dcaab7a2e4c49d4b57c31dc9deb2 /gdb/breakpoint.h
parent56710373a0ab471d0891ad49b5c2a70f53cfc00d (diff)
downloadgdb-678229626ec8f1a0d0d5c494335c05e9d0b52832.zip
gdb-678229626ec8f1a0d0d5c494335c05e9d0b52832.tar.gz
gdb-678229626ec8f1a0d0d5c494335c05e9d0b52832.tar.bz2
* infrun.c (handle_inferior_event): When handling a fork or vfork
event, check if the bpstat causes a stop, instead of if it explains the signal. * breakpoint.c (bpstat_causes_stop): New. * breakpoint.h (bpstat_causes_stop): Declare.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r--gdb/breakpoint.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index d23a852..91e864c 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -629,6 +629,9 @@ extern struct breakpoint *bpstat_find_step_resume_breakpoint (bpstat);
a watchpoint enabled. */
#define bpstat_explains_signal(bs) ((bs) != NULL)
+/* Nonzero is this bpstat causes a stop. */
+extern int bpstat_causes_stop (bpstat);
+
/* Nonzero if we should step constantly (e.g. watchpoints on machines
without hardware support). This isn't related to a specific bpstat,
just to things like whether watchpoints are set. */