X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fbreak-catch-sig.c;h=419d226bfffbc5a60a17a5e09e23ffdcc608ee5b;hb=3b27ef472df3b4cdcdd54629281610d594c99c97;hp=02d8b4ab6f9959be0509ecc9f747bec4a6257163;hpb=427cd150eed8c0dd4f0d0a1105448b4ebe36da6d;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/break-catch-sig.c b/gdb/break-catch-sig.c index 02d8b4ab6f..419d226bff 100644 --- a/gdb/break-catch-sig.c +++ b/gdb/break-catch-sig.c @@ -1,6 +1,6 @@ /* Everything about signal catchpoints, for GDB. - Copyright (C) 2011-2013 Free Software Foundation, Inc. + Copyright (C) 2011-2015 Free Software Foundation, Inc. This file is part of GDB. @@ -23,6 +23,7 @@ #include "breakpoint.h" #include "gdbcmd.h" #include "inferior.h" +#include "infrun.h" #include "annotate.h" #include "valprint.h" #include "cli/cli-utils.h" @@ -345,15 +346,16 @@ signal_catchpoint_print_recreate (struct breakpoint *b, struct ui_file *fp) } else if (c->catch_all) fprintf_unfiltered (fp, " all"); + fputc_unfiltered ('\n', fp); } /* Implement the "explains_signal" breakpoint_ops method for signal catchpoints. */ -static enum bpstat_signal_value +static int signal_catchpoint_explains_signal (struct breakpoint *b, enum gdb_signal sig) { - return BPSTAT_SIGNAL_PASS; + return 1; } /* Create a new signal catchpoint. TEMPFLAG is true if this should be