From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id gHdYDyos/WIppigAWB0awg (envelope-from ) for ; Wed, 17 Aug 2022 13:58:02 -0400 Received: by simark.ca (Postfix, from userid 112) id 3BD831E745; Wed, 17 Aug 2022 13:58:02 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=IpU72L8Q; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id D52E01E227 for ; Wed, 17 Aug 2022 13:58:01 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8673B385841A for ; Wed, 17 Aug 2022 17:58:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8673B385841A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1660759081; bh=9hJRE6BFXfDjJX2mTXJvh4E/iVKySrLRkkOqqYpvT4I=; h=Date:To:In-Reply-To:Subject:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=IpU72L8QW7iaxdj+cvrK4l391plQAgkqmH5gzY9k4q86uAixPJTuPrVbvpopymRpd ali1Au3iPnYZ/OVpGcN4FiHSFslBMK+7snDQIRfO/C9XeiN1mgP+ZnNpgWZE0lesf5 5ziS+4k4ooSPNi8eMINtOKfCmWL7wY/UJa9BxzxM= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id DE6BE3858D37 for ; Wed, 17 Aug 2022 17:57:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DE6BE3858D37 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42906) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oONIU-0000jd-21; Wed, 17 Aug 2022 13:57:42 -0400 Received: from [87.69.77.57] (port=3725 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oONIT-0001bC-FG; Wed, 17 Aug 2022 13:57:41 -0400 Date: Wed, 17 Aug 2022 20:57:31 +0300 Message-Id: <83fshuda7o.fsf@gnu.org> To: Andrei Pikas In-Reply-To: <20220815211534.33740-1-gdb@mail.api.win> (message from Andrei Pikas on Tue, 16 Aug 2022 00:15:34 +0300) Subject: Re: [PATCH] Add an option with a color type. References: <20220815211534.33740-1-gdb@mail.api.win> X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Eli Zaretskii via Gdb-patches Reply-To: Eli Zaretskii Cc: gdb@mail.api.win, gdb-patches@sourceware.org Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" > From: Andrei Pikas > Date: Tue, 16 Aug 2022 00:15:34 +0300 > Cc: Andrei Pikas > > Colors can be specified as name of one of the basic colors "none", "black", > "white", etc., as a number up to 255, or as RGB hexadecimal tripplet #RRGGBB. > --- > gdb/NEWS | 3 + > gdb/cli/cli-cmds.c | 8 ++ > gdb/cli/cli-decode.c | 200 +++++++++++++++++++++++++++++++ > gdb/cli/cli-decode.h | 30 +++++ > gdb/cli/cli-option.c | 42 +++++++ > gdb/cli/cli-option.h | 21 ++++ > gdb/cli/cli-setshow.c | 53 ++++++++ > gdb/cli/cli-setshow.h | 6 + > gdb/cli/cli-style.c | 49 ++------ > gdb/cli/cli-style.h | 4 +- > gdb/command.h | 26 +++- > gdb/guile/scm-param.c | 69 ++++++++++- > gdb/python/py-param.c | 63 +++++++++- > gdb/python/python.c | 18 +++ > gdb/testsuite/gdb.base/style.exp | 15 +++ > gdb/ui-style.h | 16 ++- > 16 files changed, 575 insertions(+), 48 deletions(-) > > diff --git a/gdb/NEWS b/gdb/NEWS > index d2efe2a0a58..5234d4f8501 100644 > --- a/gdb/NEWS > +++ b/gdb/NEWS > @@ -55,6 +55,9 @@ > Python Pygments is still used. For supported targets, libopcodes > styling is used by default. > > + "set style" commands now supports numeric format for basic colors > + from -1 to 255 and #RRGGBB format for truecolor. > + > * New commands OK for the NEWS part. Thanks.