projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux-nat.c: fix a few lin_lwp_attach_lwp issues
[deliverable/binutils-gdb.git]
/
gdb
/
break-catch-sig.c
diff --git
a/gdb/break-catch-sig.c
b/gdb/break-catch-sig.c
index 4b5ffae926d9842d2e15142e2c3a2fa9e83e5c0f..419d226bfffbc5a60a17a5e09e23ffdcc608ee5b 100644
(file)
--- a/
gdb/break-catch-sig.c
+++ b/
gdb/break-catch-sig.c
@@
-1,6
+1,6
@@
/* Everything about signal catchpoints, for GDB.
/* Everything about signal catchpoints, for GDB.
- Copyright (C) 2011-201
3
Free Software Foundation, Inc.
+ Copyright (C) 2011-201
5
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-23,6
+23,7
@@
#include "breakpoint.h"
#include "gdbcmd.h"
#include "inferior.h"
#include "breakpoint.h"
#include "gdbcmd.h"
#include "inferior.h"
+#include "infrun.h"
#include "annotate.h"
#include "valprint.h"
#include "cli/cli-utils.h"
#include "annotate.h"
#include "valprint.h"
#include "cli/cli-utils.h"
@@
-199,13
+200,13
@@
signal_catchpoint_breakpoint_hit (const struct bp_location *bl,
VEC_iterate (gdb_signal_type, c->signals_to_be_caught, i, iter);
i++)
if (signal_number == iter)
VEC_iterate (gdb_signal_type, c->signals_to_be_caught, i, iter);
i++)
if (signal_number == iter)
-
break
;
+
return 1
;
/* Not the same. */
/* Not the same. */
- if (!iter)
-
return 0;
+ gdb_assert (!iter);
+ return 0;
}
}
-
- return c->catch_all || !INTERNAL_SIGNAL (signal_number);
+ else
+
return c->catch_all || !INTERNAL_SIGNAL (signal_number);
}
/* Implement the "print_it" breakpoint_ops method for signal
}
/* Implement the "print_it" breakpoint_ops method for signal
@@
-345,15
+346,16
@@
signal_catchpoint_print_recreate (struct breakpoint *b, struct ui_file *fp)
}
else if (c->catch_all)
fprintf_unfiltered (fp, " all");
}
else if (c->catch_all)
fprintf_unfiltered (fp, " all");
+ fputc_unfiltered ('\n', fp);
}
/* Implement the "explains_signal" breakpoint_ops method for signal
catchpoints. */
}
/* Implement the "explains_signal" breakpoint_ops method for signal
catchpoints. */
-static
enum bpstat_signal_value
-signal_catchpoint_explains_signal (struct breakpoint *b)
+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
}
/* Create a new signal catchpoint. TEMPFLAG is true if this should be
This page took
0.024414 seconds
and
4
git commands to generate.