From patchwork Sat Sep 21 23:48:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 34631 Received: (qmail 47413 invoked by alias); 21 Sep 2019 23:48:43 -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 47405 invoked by uid 89); 21 Sep 2019 23:48:43 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.2 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=tracepoint, HX-Languages-Length:1835, architectures, 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; Sat, 21 Sep 2019 23:48:41 +0000 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id D9QcgAzGZIdHjb5B (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 21 Sep 2019 19:48:38 -0400 (EDT) Received: from simark.lan (unknown [192.222.164.54]) by smtp.ebox.ca (Postfix) with ESMTP id B82FB441B21; Sat, 21 Sep 2019 19:48:38 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [pushed] gdb: change "nonzero" to "true" in comments Date: Sat, 21 Sep 2019 19:48:38 -0400 Message-Id: <20190921234838.466561-1-simon.marchi@polymtl.ca> MIME-Version: 1.0 X-IsSubscribed: yes These int fields have been converted to bool, so their doc should say "true" and not "nonzero". gdb/ChangeLog: * breakpoint.h (bp_location) : Change "nonzero" to "true" in documentation. --- gdb/ChangeLog | 5 +++++ gdb/breakpoint.h | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3d0975afd816..48f90186ffab 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-09-21 Simon Marchi + + * breakpoint.h (bp_location) : + Change "nonzero" to "true" in documentation. + 2019-09-20 Christian Biesinger * solib-darwin.c (darwin_lookup_lib_symbol): Remove. diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index 49380e30c263..80bb11c14168 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -387,17 +387,17 @@ public: /* Is this particular location enabled. */ bool enabled = false; - /* Nonzero if this breakpoint is now inserted. */ + /* True if this breakpoint is now inserted. */ bool inserted = false; - /* Nonzero if this is a permanent breakpoint. There is a breakpoint + /* True if this is a permanent breakpoint. There is a breakpoint instruction hard-wired into the target's code. Don't try to write another breakpoint instruction on top of it, or restore its value. Step over it using the architecture's gdbarch_skip_permanent_breakpoint method. */ bool permanent = false; - /* Nonzero if this is not the first breakpoint in the list + /* True if this is not the first breakpoint in the list for the given address. location of tracepoint can _never_ be duplicated with other locations of tracepoints and other kinds of breakpoints, because two locations at the same