From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by sourceware.org (Postfix) with ESMTPS id E62D0385840C for ; Wed, 30 Mar 2022 10:23:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E62D0385840C 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-wm1-x336.google.com with SMTP id r64so11924841wmr.4 for ; Wed, 30 Mar 2022 03:23:42 -0700 (PDT) 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=d0JdTXN+gPW7xFn2Bx2InRfuUAPjBJJUUxnMTClFifc=; b=Q0Yr8XZ0DIrtMC9iVNGJpqIx2cWeffk/sqXYsNb+y2oHfdIxkLUlWhDiGD9i72Nuj9 6bsJYQW/MWqjN+ojebSBEAytXlUcyhCLxXJuXWwQUnoyakwb5RmRse4bItQXLu7Xl34Q XLTiIT3+8jfrJ3bfAc/xrtsgvgou1oiYtvVh/xGuB/zThdYZTJz59BbZ1QTJeM4sw+g2 vYgvPAhWfEyNvYnozz+fXbX3v/IFHkq6MSpOa2X9bkZ+gIemvU41x0invcoWZn5eKBEx uHF8wOOXMWewuHsFR2S8+0zWiVQjFnI0c/i6WQHs303P2udg33zui78PgSJxTMC03v+V tFQA== 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=d0JdTXN+gPW7xFn2Bx2InRfuUAPjBJJUUxnMTClFifc=; b=PUrVomPT+9C+jfwuNSNMCE1MJsE2X1lecvYORpKRSS3UwkfAUeG9tSAL0Lr41ZXDAf PTbDbwO/cGpYRRInvS4rY9wWuGPCfeKqj3BofYOCWphzx5DRDLFIZSQE0PEnS/vs/b7o ubgzH5TC26nniMpVHyLi5QxmK3Uc2fLSkUlIn0pj/NQLkNj2RTUAChSxGTqR0RPMmtvQ INqLpDEV3GHYkDk2/ysu2qSu1drBFAoBswqYDKWYj3Ut0WvD1yu4OjBYWQwTwtCoU9Cx DYla7U8qsuCTCRvUrX66zfOO432Qa3S5e5wqcfXzG8lzn+e6deY8LkbaoaYKsL7OsYAq jHmQ== X-Gm-Message-State: AOAM530K0pnH/hZeNziZWAbiqug3XqnZlBRnsZZZX+43LSl6yM6jlNcz MXYIBtIVhmV0KglfLYt1M9TJ/bPC4KD9nA== X-Google-Smtp-Source: ABdhPJzL1gnNy7RezO4H0JmXPx77RLfBBmm/WFLbi0kACbVntEdV9p+Xg863AwWtzbg5F5xd6i+1CA== X-Received: by 2002:a05:600c:1e85:b0:38c:ef05:ba5d with SMTP id be5-20020a05600c1e8500b0038cef05ba5dmr3605296wmb.119.1648635821627; Wed, 30 Mar 2022 03:23:41 -0700 (PDT) Received: from [192.168.0.201] ([212.69.42.53]) by smtp.gmail.com with ESMTPSA id l20-20020a05600c1d1400b0038cba2f88c0sm5986310wms.26.2022.03.30.03.23.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Mar 2022 03:23:41 -0700 (PDT) Date: Wed, 30 Mar 2022 11:23:40 +0100 (BST) From: "Maciej W. Rozycki" To: gdb-patches@sourceware.org cc: Andrew Burgess , Simon Marchi , Tom Tromey , Simon Sobisch Subject: [PATCH v5 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=-3.2 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, 30 Mar 2022 10:23:44 -0000 Hi, Sadly I have received no feedback for v4 of the series other than the docs (thank you, Eli!), so here is v5 with the documentation parts updated only 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). Since I have noticed some v4 hunks to apply with significant line number changes (meaning larger code rearrangements) and also Python 2 support to have been removed (my original builds used it) I have re-regression-tested the changes (with the build switched to Python 3), again with a native `x86_64-linux-gnu' configuration. I have also visually examined the result of the updated changes to the GDB manual in the info and PDF formats. See individual change descriptions for details. OK to apply? Maciej