diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2019-07-10 12:10:51 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2019-07-10 12:10:51 -0400 |
commit | 4c462cb0efb40a7a1e5297946bed59286dd0cf02 (patch) | |
tree | 1beed7f99b455b599c6c5322b904cc7f66edd435 /gdb/breakpoint.h | |
parent | 89abbcc26d891425678b8b463bc1fa81273fb54c (diff) | |
download | binutils-4c462cb0efb40a7a1e5297946bed59286dd0cf02.zip binutils-4c462cb0efb40a7a1e5297946bed59286dd0cf02.tar.gz binutils-4c462cb0efb40a7a1e5297946bed59286dd0cf02.tar.bz2 |
Make some bpstat functions use bool
Change return type to bool and adjust function comments.
gdb/ChangeLog:
* breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
bpstat_should_step): Return bool, adjust comments.
* breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
bpstat_should_step): Likewise.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r-- | gdb/breakpoint.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index 40834ef..dfe7d15 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -1061,18 +1061,18 @@ extern void bpstat_run_callbacks (bpstat bs_head); /* Find the bpstat associated with a breakpoint. NULL otherwise. */ bpstat bpstat_find_breakpoint (bpstat, struct breakpoint *); -/* Nonzero if a signal that we got in target_wait() was due to +/* True if a signal that we got in target_wait() was due to circumstances explained by the bpstat; the signal is therefore not random. */ -extern int bpstat_explains_signal (bpstat, enum gdb_signal); +extern bool bpstat_explains_signal (bpstat, enum gdb_signal); -/* Nonzero is this bpstat causes a stop. */ -extern int bpstat_causes_stop (bpstat); +/* True if this bpstat causes a stop. */ +extern bool bpstat_causes_stop (bpstat); -/* Nonzero if we should step constantly (e.g. watchpoints on machines +/* True if we should step constantly (e.g. watchpoints on machines without hardware support). This isn't related to a specific bpstat, just to things like whether watchpoints are set. */ -extern int bpstat_should_step (void); +extern bool bpstat_should_step (); /* Print a message indicating what happened. Returns nonzero to say that only the source line should be printed after this (zero |