diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 589aa19..e798d1a 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -8325,10 +8325,9 @@ breakpoint_hit_catch_syscall (const struct bp_location *bl, VEC_iterate (int, c->syscalls_to_be_caught, i, iter); i++) if (syscall_number == iter) - break; + return 1; /* Not the same. */ - if (!iter) - return 0; + return 0; } return 1;