From patchwork Wed Dec 18 17:03:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Zaretskii X-Patchwork-Id: 36944 Received: (qmail 100191 invoked by alias); 18 Dec 2019 17:04:12 -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 99772 invoked by uid 89); 18 Dec 2019 17:04:12 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (209.51.188.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Dec 2019 17:04:10 +0000 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ihck4-0005YK-Pa for gdb-patches@sourceware.org; Wed, 18 Dec 2019 12:04:09 -0500 Received: from [176.228.60.248] (port=3103 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ihck3-0004ge-Ni for gdb-patches@sourceware.org; Wed, 18 Dec 2019 12:04:08 -0500 Date: Wed, 18 Dec 2019 19:03:56 +0200 Message-Id: <83pngl36rn.fsf@gnu.org> From: Eli Zaretskii To: gdb-patches@sourceware.org Subject: "gdb --config" to show the xxHash option X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-IsSubscribed: yes I've noticed that HAVE_LIBXXHASH is not reflected in the --config output. Okay to commit the below? including to the GDB 9 branch? diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 91b81f2..98c9361 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-12-18 Eli Zaretskii + + * top.c (print_gdb_configuration): Print "--with-xxhash" or + "--without-xxhash" according to HAVE_LIBXXHASH. + 2019-12-17 Christian Biesinger * bsd-kvm.c: Include gdbsupport/pathstuff.h. diff --git a/gdb/top.c b/gdb/top.c index bc300e4..796a423 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -1496,6 +1496,15 @@ This GDB was configured as follows:\n\ --without-mpfr\n\ ")); #endif +#if HAVE_LIBXXHASH + fprintf_filtered (stream, _("\ + --with-xxhash\n\ +")); +#else + fprintf_filtered (stream, _("\ + --without-xxhash\n\ +")); +#endif #ifdef WITH_PYTHON_PATH fprintf_filtered (stream, _("\ --with-python=%s%s\n\