From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id +RBnNTQXLGpxTAMAWB0awg (envelope-from ) for ; Fri, 12 Jun 2026 10:27:00 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=RazISRyB; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id D563F1E098; Fri, 12 Jun 2026 10:27:00 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 7934B1E070 for ; Fri, 12 Jun 2026 10:27:00 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A99C14BA799B for ; Fri, 12 Jun 2026 14:26:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A99C14BA799B Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=RazISRyB Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id 38D7F4BA2E07 for ; Fri, 12 Jun 2026 14:25:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 38D7F4BA2E07 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 38D7F4BA2E07 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=44.202.169.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1781274325; cv=none; b=kmbbbMLX532ArIETNUS+dtGdk+y2Q1Z2H0iEroHnU2drl0XbqkOZQUhF9bYR1mH9AbK9Uhn1aegkNnixPIoiii64Hal+FRtsDUEkRi4XXHyN89rO8oxh/o+PrXe6dif1kch50xLUKqLyX/usQRuzEzVB6rskag57Aa7fSG+c1fM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1781274325; c=relaxed/simple; bh=qpNZh5MoTUtCCidn2Epo2Ic3sPnaVrPrPVGUS93wgrE=; h=DKIM-Signature:From:Subject:Date:Message-Id:MIME-Version:To; b=XUDDNN/yNiaVSuWKCHssMYFyqrpmsdRpUDAw8SN8RgBFJ1tn6j68srMQcKic9LlD14g6MmdCD3UAAKqpqiSG4N8x9E/CsLgJpnGVol58oL4HPUjn7chP2PedPVMPdBYLKGvHge/KjjC1l6yOuAHx47yFXfVFw+fnX7hcb6BTsLM= ARC-Authentication-Results: i=1; sourceware.org; dkim=policy (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=RazISRyB reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 38D7F4BA2E07 Received: from eig-obgw-5007b.ext.cloudfilter.net ([10.0.29.167]) by cmsmtp with ESMTPS id Y2eCwXcSnVGUKY2p2w1AUi; Fri, 12 Jun 2026 14:25:24 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id Y2p1we7NG9e09Y2p1wkTJ9; Fri, 12 Jun 2026 14:25:24 +0000 X-Authority-Analysis: v=2.4 cv=SY/3duRu c=1 sm=1 tr=0 ts=6a2c16d4 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=ItBw4LHWJt0A:10 a=zstS-IiYAAAA:8 a=BIEnq0qPu6_clXcGhEUA:9 a=QEXdDO2ut3YA:10 a=4G6NA9xxw8l3yy4pmD5M:22 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Cc:To:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-Id:Date:Subject:From:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=AcyFIS21OyPkuBij09N2uKwbSkF+C8dplBvfF2uk4hU=; b=RazISRyBbXKQBx/1zNLHIROTXu qSRHGVRox0RGsiz+ujBh4YInWMIS07Q1bpbP+bMVGZNb4SfQwub8ech5u3PepPFYkHeVBQpi7mFzt Eb3U6pCWvxhVuzhFPCAbT6Msr; Received: from 75-166-225-82.hlrn.qwest.net ([75.166.225.82]:50348 helo=[192.168.122.1]) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.2) (envelope-from ) id 1wY2p1-00000001fM4-1IsL; Fri, 12 Jun 2026 08:25:23 -0600 From: Tom Tromey Subject: [PATCH 0/5] Add zebra-striping to CLI tables Date: Fri, 12 Jun 2026 08:25:20 -0600 Message-Id: <20260612-submit-zebra-style-v1-0-cfd00b5c984c@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIANAWLGoC/x3MMQ7CMAyF4atUnrFoPGTgKoghbtzWEk2RHVCh6 t0JjJ/03r+Di6k4XLodTF7qupaGcOpgmFOZBDU3A/UU+xgI/cmLVvwIW0Kv77tg4EyZKY4pErT jw2TU7R+93po5uWCbl2H+pVbTSct5SV7F4Di+sQNr4IQAAAA= X-Change-ID: 20260612-submit-zebra-style-1bd2db26fa62 To: gdb-patches@sourceware.org Cc: Tom Tromey X-Mailer: b4 0.14.3 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.225.82 X-Source-L: No X-Exim-ID: 1wY2p1-00000001fM4-1IsL X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-225-82.hlrn.qwest.net ([192.168.122.1]) [75.166.225.82]:50348 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfKS3d1JhTdNuLnDYn1S3qXztliNp7WS/WStvhqCPbxsje9P62WyMMwYqP6gfqvqAXtMGI4Fda+z51ITj6UdubsFBcgDY06fIv0d8/Ay4yIYNtYc3IGak KDiYUw2kIHg2Yw4rcRWj6cAaH6q2nklcW6tgsRPJJo9gZ/3EOxUC3HVUO1e3YksdLLMqFD6HNKh1eO3A3hguwTQaMIfgwNhig14= X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org This series changes gdb to allow zebra-striping of tables in the CLI. That is, with this patch, the user can set the "background" style of even and odd lines of a table; this background style will be merged with the relevant foreground styles of the items being printed. Signed-off-by: Tom Tromey --- Tom Tromey (5): Ensure tgetent is called before tgetnum Make two ui_out methods 'private' Allow "phony" ui-out tables Add ui_file_style::merge Add zebra-striping to CLI table display gdb/NEWS | 10 +++++ gdb/cli-out.c | 26 ++++++++--- gdb/cli-out.h | 18 +++++++- gdb/cli/cli-style.c | 43 +++++++++++++++++- gdb/cli/cli-style.h | 6 ++- gdb/doc/gdb.texinfo | 8 ++++ gdb/mi/mi-out.c | 9 ++-- gdb/mi/mi-out.h | 2 +- gdb/mingw-hdep.c | 6 +-- gdb/posix-hdep.c | 6 +-- gdb/python/py-uiout.h | 5 ++- gdb/stack.c | 6 +++ gdb/testsuite/gdb.base/style.exp | 17 ++++++++ gdb/testsuite/gdb.base/zebra-style.c | 32 ++++++++++++++ gdb/testsuite/gdb.base/zebra-style.exp | 79 ++++++++++++++++++++++++++++++++++ gdb/testsuite/lib/gdb-utils.exp | 14 +++--- gdb/ui-out.c | 33 ++++++++++++-- gdb/ui-out.h | 29 +++++++++++-- gdb/ui-style.c | 30 +++++++++++++ gdb/ui-style.h | 18 ++++++++ gdb/unittests/style-selftests.c | 8 ++++ gdb/utils.c | 6 +++ 22 files changed, 374 insertions(+), 37 deletions(-) --- base-commit: 2b675b263dfd5c780b8b77ae6b97543a6fb42d1c change-id: 20260612-submit-zebra-style-1bd2db26fa62 Best regards, -- Tom Tromey