From patchwork Fri Dec 21 18:01:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joel Brobecker X-Patchwork-Id: 30796 Received: (qmail 31274 invoked by alias); 21 Dec 2018 18:02:09 -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 31241 invoked by uid 89); 21 Dec 2018 18:02:07 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.9 required=5.0 tests=BAYES_00, BODY_8BITS, GARBLED_BODY, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=him X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 21 Dec 2018 18:02:00 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 06F4E116A18; Fri, 21 Dec 2018 13:01:59 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WvH9bAypJvTF; Fri, 21 Dec 2018 13:01:58 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 9217E11690B; Fri, 21 Dec 2018 13:01:58 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 004C586760; Fri, 21 Dec 2018 22:01:53 +0400 (+04) Date: Fri, 21 Dec 2018 22:01:53 +0400 From: Joel Brobecker To: =?utf-8?B?0JTQuNC70Y/QvSDQn9Cw0LvQsNGD0LfQvtCy?= Cc: gdb-patches@sourceware.org Subject: pushed: [PATCH] show configuration --without-python (2) Message-ID: <20181221180153.GB5246@adacore.com> References: <55A4E839.504@aegee.org> <20181221072915.GA5246@adacore.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20181221072915.GA5246@adacore.com> User-Agent: Mutt/1.9.4 (2018-02-28) > Sorry for the late reply. This looks fine. Do you have write access > to the GDB repository? Дилян confirmed privately that he does not have write access to the repository, so I pushed the change for him (attached). From 50c7c5b8df15aad66a9d2f6759e85689a2a74271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD=20=D0=9F=D0=B0=D0=BB=D0=B0?= =?UTF-8?q?=D1=83=D0=B7=D0=BE=D0=B2?= Date: Fri, 21 Dec 2018 19:09:40 +0400 Subject: [PATCH] when printing the GDB config, explicitly say if configured without python When using the --configuration command line switch, or using the "show configuration" command with a version of GDB which was configured without Python supoprt, this patch changes the resulting output to include... --without-python ... instead of not printing anything about Python support. gdb/ChangeLog: * top.c (print_gdb_configuration): Print "--without-python" if GDB was configured without Python. Tested on x86_64-linux by rebuilding GDB with and without Python, and checking the output of "gdb --configuration" in both cases. --- gdb/ChangeLog | 5 +++++ gdb/top.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 900a4c70e1f..4ead538e674 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-12-21 Дилян Палаузов + + * top.c (print_gdb_configuration): Print "--without-python" + if GDB was configured without Python. + 2018-12-21 Andrew Burgess * riscv-tdep.c (riscv_scan_prologue): Use plongest to format diff --git a/gdb/top.c b/gdb/top.c index 4a0fedb6a87..ac74cb3a226 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -1428,6 +1428,10 @@ This GDB was configured as follows:\n\ fprintf_filtered (stream, _("\ --with-python=%s%s\n\ "), WITH_PYTHON_PATH, PYTHON_PATH_RELOCATABLE ? " (relocatable)" : ""); +#else + fprintf_filtered (stream, _("\ + --without-python\n\ +")); #endif #if HAVE_GUILE fprintf_filtered (stream, _("\ -- 2.17.1