summaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-09-16 17:26:30 -0400
committerSimon Marchi <simon.marchi@efficios.com>2020-09-16 17:26:45 -0400
commitb650a28273a1cdc4bea825f6e7ccf52c9647ff9c (patch)
tree27fc510a13b00a4e29457d968a1426ae4d5e4589 /gdb/breakpoint.h
parent4d0bcfcf62dd55d7b3e2983af7075e108b3eb37c (diff)
downloadbinutils-gdb-b650a28273a1cdc4bea825f6e7ccf52c9647ff9c.tar.gz
gdb: use bool in the solib catchpoint area
Use bool instead of int in struct solib_catchpoint and in init_catchpoint & related functions. gdb/ChangeLog: * breakpoint.h (init_catchpoint): Change int parameter to bool. (add_solib_catchpoint): Likewise. * breakpoint.c (struct solib_catchpoint) <is_load>: Change type to bool. (add_solib_catchpoint): Change int parameter/variable to bool. (catch_load_or_unload): Likewise. (init_catchpoint): Likewise. (create_fork_vfork_event_catchpoint): Likewise. (catch_fork_command_1): Likewise. (catch_exec_command_1): Likewise. Change-Id: I1faf4506e9109f3ccdd7229ba766dc7d77aa7aa0
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r--gdb/breakpoint.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index a5fead91492..b9a605e6119 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -1333,8 +1333,13 @@ extern void
int enabled,
int from_tty);
+/* Initialize a new breakpoint of the bp_catchpoint kind. If TEMP
+ is true, then make the breakpoint temporary. If COND_STRING is
+ not NULL, then store it in the breakpoint. OPS, if not NULL, is
+ the breakpoint_ops structure associated to the catchpoint. */
+
extern void init_catchpoint (struct breakpoint *b,
- struct gdbarch *gdbarch, int tempflag,
+ struct gdbarch *gdbarch, bool temp,
const char *cond_string,
const struct breakpoint_ops *ops);
@@ -1561,9 +1566,14 @@ extern void disable_breakpoints_in_shlibs (void);
extern bool is_catchpoint (struct breakpoint *b);
/* Shared helper function (MI and CLI) for creating and installing
- a shared object event catchpoint. */
-extern void add_solib_catchpoint (const char *arg, int is_load, int is_temp,
- int enabled);
+ a shared object event catchpoint. If IS_LOAD is true then
+ the events to be caught are load events, otherwise they are
+ unload events. If IS_TEMP is true the catchpoint is a
+ temporary one. If ENABLED is true the catchpoint is
+ created in an enabled state. */
+
+extern void add_solib_catchpoint (const char *arg, bool is_load, bool is_temp,
+ bool enabled);
/* Create and insert a new software single step breakpoint for the
current thread. May be called multiple times; each time will add a