Make bpstat_what::is_longjmp a bool
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 10 Jul 2019 01:20:16 +0000 (21:20 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 10 Jul 2019 01:20:16 +0000 (21:20 -0400)
gdb/ChangeLog:

* breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
bool.
(bpstat_what): Use false instead of 0.

gdb/ChangeLog
gdb/breakpoint.c
gdb/breakpoint.h

index 112b460288d02bcd2e37062d8dc69146d20c2a1c..e4dfe507ac8333126af5de35ea918840cd779cf1 100644 (file)
@@ -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.
index 5435de1601a4e8064c5bfaf53e89bc7b55113073..f780bed27ecf842415fe5858cc1c6d5714a0a2bd 100644 (file)
@@ -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)
     {
index e25acfa7c2ec14b3850a05c80327ba34382e0ba0..40834eff634f86b4cb00a1f9c82f2b0526183224 100644 (file)
@@ -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.  */