public inbox for gdb-testers@sourceware.org
help / color / mirror / Atom feed
From: gdb-buildbot@sergiodj.net
To: gdb-testers@sourceware.org
Subject: [binutils-gdb] gdb: Make startswith return a bool
Date: Wed, 23 Oct 2019 05:14:00 -0000	[thread overview]
Message-ID: <2377111731972d841731bc674ed6a7fb3ab90a53@gdb-build> (raw)

*** TEST RESULTS FOR COMMIT 2377111731972d841731bc674ed6a7fb3ab90a53 ***

commit 2377111731972d841731bc674ed6a7fb3ab90a53
Author:     Simon Marchi <simon.marchi@polymtl.ca>
AuthorDate: Sat Oct 19 17:00:35 2019 -0400
Commit:     Simon Marchi <simon.marchi@polymtl.ca>
CommitDate: Sat Oct 19 17:01:09 2019 -0400

    gdb: Make startswith return a bool
    
    gdb/ChangeLog:
    
            * gdbsupport/common-utils.h (startswith): Change return type to
            bool.
    
    Change-Id: I1c11b9bb7f89b3885c1bb55097adb5be6d333ad4

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d8e3fe1a2d..7c737ac9f4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2019-10-19  Simon Marchi  <simon.marchi@polymtl.ca>
+
+	* gdbsupport/common-utils.h (startswith): Change return type to
+	bool.
+
 2019-10-19  Christian Biesinger  <cbiesinger@google.com>
 
 	* bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
diff --git a/gdb/gdbsupport/common-utils.h b/gdb/gdbsupport/common-utils.h
index a5312cb0c4..e96fc21e3f 100644
--- a/gdb/gdbsupport/common-utils.h
+++ b/gdb/gdbsupport/common-utils.h
@@ -110,10 +110,9 @@ std::string extract_string_maybe_quoted (const char **arg);
 
 extern char *safe_strerror (int);
 
-/* Return non-zero if the start of STRING matches PATTERN, zero
-   otherwise.  */
+/* Return true if the start of STRING matches PATTERN, false otherwise.  */
 
-static inline int
+static inline bool
 startswith (const char *string, const char *pattern)
 {
   return strncmp (string, pattern, strlen (pattern)) == 0;


             reply	other threads:[~2019-10-23  5:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-23  5:14 gdb-buildbot [this message]
2019-10-23  5:14 ` Failures on Ubuntu-Aarch64-m64, branch master gdb-buildbot
2019-10-23  5:48 ` Failures on Ubuntu-Aarch64-native-extended-gdbserver-m64, " gdb-buildbot
2019-10-23  6:19 ` Failures on Ubuntu-Aarch64-native-gdbserver-m64, " gdb-buildbot
2019-11-05  9:53 ` Failures on Fedora-x86_64-cc-with-index, " gdb-buildbot
2019-11-05 11:41 ` Failures on Fedora-x86_64-native-extended-gdbserver-m32, " gdb-buildbot
2019-11-05 12:55 ` Failures on Fedora-x86_64-native-gdbserver-m32, " gdb-buildbot
2019-11-05 13:09 ` Failures on Fedora-x86_64-native-gdbserver-m64, " gdb-buildbot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2377111731972d841731bc674ed6a7fb3ab90a53@gdb-build \
    --to=gdb-buildbot@sergiodj.net \
    --cc=gdb-testers@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).