From patchwork Fri Mar 9 10:45:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Zaretskii X-Patchwork-Id: 26247 Received: (qmail 64574 invoked by alias); 9 Mar 2018 10:45:37 -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 64548 invoked by uid 89); 9 Mar 2018 10:45:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 09 Mar 2018 10:45:34 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euFWh-0003Lf-34 for gdb-patches@sourceware.org; Fri, 09 Mar 2018 05:45:32 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52881) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euFWg-0003LZ-V0 for gdb-patches@sourceware.org; Fri, 09 Mar 2018 05:45:27 -0500 Received: from [176.228.60.248] (port=1207 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1euFWf-00036P-SB for gdb-patches@sourceware.org; Fri, 09 Mar 2018 05:45:26 -0500 Date: Fri, 09 Mar 2018 12:45:22 +0200 Message-Id: <838tb1wmrh.fsf@gnu.org> From: Eli Zaretskii To: gdb-patches@sourceware.org Subject: Update "gdb --configuration" Reply-to: Eli Zaretskii X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-IsSubscribed: yes The patch below adds more config information to the text we produce. OK to commit? 2018-03-09 Eli Zaretskii * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK, and LIBMPFR in the printed configuration. --- gdb/top.c~ 2018-01-31 04:58:50.000000000 +0200 +++ gdb/top.c 2018-03-09 12:34:51.078125000 +0200 @@ -1386,6 +1386,42 @@ This GDB was configured as follows:\n\ --without-lzma\n\ ")); #endif +#if HAVE_LIBBABELTRACE + fprintf_filtered (stream, _("\ + --with-babeltrace\n\ +")); +#else + fprintf_filtered (stream, _("\ + --without-babeltrace\n\ +")); +#endif +#if HAVE_LIBIPT + fprintf_filtered (stream, _("\ + --with-intel-pt\n\ +")); +#else + fprintf_filtered (stream, _("\ + --without-intel-pt\n\ +")); +#endif +#if HAVE_LIBMCHECK + fprintf_filtered (stream, _("\ + --enable-libmcheck\n\ +")); +#else + fprintf_filtered (stream, _("\ + --disable-libmcheck\n\ +")); +#endif +#if HAVE_LIBMPFR + fprintf_filtered (stream, _("\ + --with-libmpfr\n\ +")); +#else + fprintf_filtered (stream, _("\ + --without-libmpfr\n\ +")); +#endif #ifdef WITH_PYTHON_PATH fprintf_filtered (stream, _("\ --with-python=%s%s\n\ @@ -1417,15 +1453,6 @@ This GDB was configured as follows:\n\ fprintf_filtered (stream, _("\ --with-system-gdbinit=%s%s\n\ "), SYSTEM_GDBINIT, SYSTEM_GDBINIT_RELOCATABLE ? " (relocatable)" : ""); -#if HAVE_LIBBABELTRACE - fprintf_filtered (stream, _("\ - --with-babeltrace\n\ -")); -#else - fprintf_filtered (stream, _("\ - --without-babeltrace\n\ -")); -#endif /* We assume "relocatable" will be printed at least once, thus we always print this text. It's a reasonably safe assumption for now. */ fprintf_filtered (stream, _("\n\