diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2019-07-09 21:20:16 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2019-07-09 21:20:16 -0400 |
commit | e2d0f9803e3054b05c2de716f3c928e510009436 (patch) | |
tree | 3d7a8094816599836e55c3f6b3d6ad2526e190da /gdb | |
parent | eb6ad40f244ea6dedca1440b0ce3d89c1ecdac0c (diff) | |
download | gdb-e2d0f9803e3054b05c2de716f3c928e510009436.zip gdb-e2d0f9803e3054b05c2de716f3c928e510009436.tar.gz gdb-e2d0f9803e3054b05c2de716f3c928e510009436.tar.bz2 |
Make bpstat_what::is_longjmp a bool
gdb/ChangeLog:
* breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
bool.
(bpstat_what): Use false instead of 0.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/breakpoint.c | 2 | ||||
-rw-r--r-- | gdb/breakpoint.h | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 112b460..e4dfe50 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2019-07-09 Simon Marchi <simon.marchi@polymtl.ca> + + * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to + bool. + (bpstat_what): Use false instead of 0. + 2019-07-09 Pedro Alves <palves@redhat.com> * break-catch-throw.c (is_exception_catchpoint): New. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 5435de1..f780bed 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -5491,7 +5491,7 @@ bpstat_what (bpstat bs_head) retval.main_action = BPSTAT_WHAT_KEEP_CHECKING; retval.call_dummy = STOP_NONE; - retval.is_longjmp = 0; + retval.is_longjmp = false; for (bs = bs_head; bs != NULL; bs = bs->next) { diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index e25acfa..40834ef 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -1048,7 +1048,7 @@ struct bpstat_what /* Used for BPSTAT_WHAT_SET_LONGJMP_RESUME and BPSTAT_WHAT_CLEAR_LONGJMP_RESUME. True if we are handling a longjmp, false if we are handling an exception. */ - int is_longjmp; + bool is_longjmp; }; /* Tell what to do about this bpstat. */ |