From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id 7310E3858C74 for ; Wed, 9 Mar 2022 19:17:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7310E3858C74 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-wr1-x42a.google.com with SMTP id p9so4565070wra.12 for ; Wed, 09 Mar 2022 11:17:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=date:from:to:cc:subject:message-id:user-agent:mime-version; bh=FNQWz4xmqXZBF2a7+QDgGlHBcAJjA5nEimEimBAQvTg=; b=WR3X5wqZ31ufOa5hBmNhYMDMRvI3DW8a+jpK8R5QsdRMvCTH3sr96AG5AEOz0mlAct EwldMANW3Any72gvphTB/IfCkMSakJ9Fxu6orgeuuPmzVpP78D9cAlHYMnPJpzMLroRL Gl4Aj5G2CadGFZuJWOAXCqttOayFQkL4reUalvjLQ1AR/5pQQpOor4u/QRF4FDNwFcG9 c/wMZ0AmngIxgeV/Oy9ABq/3e1igUpvRWSlICZ6mY7kA9nfG2YmtlsiS5BxGB3BHtmp6 dApZs4O79ZJo2KfL8ZJS9bkV2C+Uf5h/YcLng1Y4dxR1OW5DbEHPrXNMlFzLCJGnmb21 Hfsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:user-agent :mime-version; bh=FNQWz4xmqXZBF2a7+QDgGlHBcAJjA5nEimEimBAQvTg=; b=Khi8BlsxuW5JQZbB2TYJDeBePiF0pMJP7BE4dGgvPqZ0+B/fH6P9//iSr9/DTy0bjw VmiPSTvOpVfMGlgPnNlhVXMMXWNAc86l8a58BUS+UDCiNKfGX4XWhG6oUgh19DeHshI4 f8oofRbxI+i0RectfKJBDJs/VMkrVpnbJdNP1dnku5QnXE7HfSlWBHt061yC8LiILpM2 V35HEXlI5vFvCX7SNoDAjkVSVQJrlnjwr9DOTxvT3NfJSAki2vYZ1bQnRgn2Wg+J04iM EWHqS3S3w+zllXCM5c3jt221Z8H1+UMG9d7NA11ydXxWB0NAdvW6V54Zo08osxzSn/Ia EI7w== X-Gm-Message-State: AOAM530HxizHz8CANzKu9NCVy6bvVcDAcnmCaZLEVs29AgWEVzJc62am 7atUpiKIWeaCEuCSLWekHzI+YGlT/GHR3g== X-Google-Smtp-Source: ABdhPJz4c08y1l0dBZPcnDDCi/gzB4foiPDHms+VTvs2gPSDIsgD9HyVGTjjmH63yePS2jvAoXu35w== X-Received: by 2002:a05:6000:137a:b0:1f1:d6ec:7b69 with SMTP id q26-20020a056000137a00b001f1d6ec7b69mr845534wrz.78.1646853463594; Wed, 09 Mar 2022 11:17:43 -0800 (PST) Received: from tpp.orcam.me.uk (tpp.orcam.me.uk. [2001:8b0:154:0:ea6a:64ff:fe24:f2fc]) by smtp.gmail.com with ESMTPSA id n16-20020a5d4850000000b0020373b34961sm2311586wrs.66.2022.03.09.11.17.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Mar 2022 11:17:43 -0800 (PST) Date: Wed, 9 Mar 2022 19:17:42 +0000 (GMT) From: "Maciej W. Rozycki" To: gdb-patches@sourceware.org cc: Andrew Burgess , Simon Marchi , Tom Tromey , Simon Sobisch Subject: [PATCH v4 0/8] gdb: split array and string limiting options Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org 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: , X-List-Received-Date: Wed, 09 Mar 2022 19:17:45 -0000 Hi, I have retained the original subject for the cover letter for threading purposes, however this has now otherwise become a small patch series and Andrew's original change has a different heading now. This is v4 for Andrew's original proposal to split the `set/show print elements' options into two, so that there are separate `set/show print characters' options to control how many characters of a string are printed. Following earlier discussion for compatibility with existing setups I have implemented a mechanism to make the `set print characters' setting follow that of `set print elements' by default. Consequently what was a single change has now grown into a patch series. In this series I fix some preexisting issues in the area first, implement the general framework for extra literals used with integer settings second and then add the original change for `set print characters' from Andrew, adjusted accordingly, followed by a testsuite update as a separate change. This is so as to ensure the semantics of the existing `set print elements' knob hasn't changed in the default `set print characters' state (a small update for the test suite is nevertheless included with the `set print characters' command proper, because inevitably the relevant commands that list commands now print additional entries, plus there's been a minimal test case update included for the verification of setting defaults). I think there's little more to say here except that changes in the series have been individually regression-tested with a native `x86_64-linux-gnu' configuration, and that I have visually examined the result of changes to the GDB manual in the info and PDF formats. See individual change descriptions for details. OK to apply? Maciej