From patchwork Wed Jul 10 01:27:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 33642 Received: (qmail 47523 invoked by alias); 10 Jul 2019 01:28:00 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 47214 invoked by uid 89); 10 Jul 2019 01:28:00 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_SOFTFAIL autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: barracuda.ebox.ca Received: from barracuda.ebox.ca (HELO barracuda.ebox.ca) (96.127.255.19) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 10 Jul 2019 01:27:58 +0000 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id Gj6Baef49sfOnhKp (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 09 Jul 2019 21:27:55 -0400 (EDT) Received: from simark.lan (unknown [192.222.164.54]) by smtp.ebox.ca (Postfix) with ESMTP id 22AE3441B21; Tue, 9 Jul 2019 21:27:55 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [pushed] Make bpstat_what::is_longjmp a bool Date: Tue, 9 Jul 2019 21:27:54 -0400 Message-Id: <20190710012754.16891-1-simon.marchi@polymtl.ca> MIME-Version: 1.0 X-IsSubscribed: yes gdb/ChangeLog: * breakpoint.h (struct bpstat_what) : Change type to bool. (bpstat_what): Use false instead of 0. --- gdb/ChangeLog | 6 ++++++ gdb/breakpoint.c | 2 +- gdb/breakpoint.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 112b460288d0..e4dfe507ac83 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2019-07-09 Simon Marchi + + * breakpoint.h (struct bpstat_what) : Change type to + bool. + (bpstat_what): Use false instead of 0. + 2019-07-09 Pedro Alves * break-catch-throw.c (is_exception_catchpoint): New. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 5435de1601a4..f780bed27ecf 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 e25acfa7c2ec..40834eff634f 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. */