aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
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.c
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.c')
-rw-r--r--gdb/breakpoint.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 0034338..c6140b0 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -3816,6 +3816,16 @@ bpstat_should_step (void)
return 0;
}
+int
+bpstat_causes_stop (bpstat bs)
+{
+ for (; bs != NULL; bs = bs->next)
+ if (bs->stop)
+ return 1;
+
+ return 0;
+}
+
static void print_breakpoint_location (struct breakpoint *b,