From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) by sourceware.org (Postfix) with ESMTPS id 8C099389EC00 for ; Tue, 7 Jun 2022 15:42:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8C099389EC00 Received: by mail-il1-x129.google.com with SMTP id d6so3685661ilm.4 for ; Tue, 07 Jun 2022 08:42:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=0bMwaCuuWXnYGcHziRXsgX4Ey3cY5tltxBKCnU4OLlw=; b=4fgnezmvht+OcgsRfPhSORhHsqRUd/FHymImLdJD6doXVzxNtuLTZYEs9GrMpyO73C ZsNSZdGQKyzuk0Mr4AWdZjFZAv34RlbEHUTvrNjXkmYQilJCms6WP/v4AU2XqzeEAL9g 1Ef6CH9teMTDK9UXvBJitqc/izV78vJ0nEb4UM0kw9O8F9S3kz4ls8aLrxBPlcTxjC/U BJyECiwPMQqf2+HhiSD/lXUF8Oyrr/3YesoU0gD2HRe1CLKQzbgPSaMGKAMqG3cZICi/ x9HyC/0Si7pCSxjJynDtRKoKLSZXBbkCiS3QicninGfJbTdwmi2ODrkGWIUdY9zX4taj EYYw== X-Gm-Message-State: AOAM533+o3mJ6QbqcFVgDPmnT2HRlFMnYaQcDhcZ3OCIZFuIAY+DHSPR zJtecJh3h2xUW6+n96nF1NIs//3vP0zdCg== X-Google-Smtp-Source: ABdhPJy9lpDwKa7KeIp69kJWnpXA1E1GAkFbZ/rLLnuqMTjfG17CIfBfYx2vfZIE225s8WObZ8X4lg== X-Received: by 2002:a92:c26b:0:b0:2d3:c6b8:4c8f with SMTP id h11-20020a92c26b000000b002d3c6b84c8fmr17800483ild.49.1654616548879; Tue, 07 Jun 2022 08:42:28 -0700 (PDT) Received: from murgatroyd.Home (71-211-171-143.hlrn.qwest.net. [71.211.171.143]) by smtp.gmail.com with ESMTPSA id a30-20020a02735e000000b0032be3784b9bsm6717375jae.117.2022.06.07.08.42.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 08:42:28 -0700 (PDT) From: Tom Tromey To: gdb-patches@sourceware.org Subject: [PATCH 0/2] More introspection for Value.format_string Date: Tue, 7 Jun 2022 09:42:24 -0600 Message-Id: <20220607154226.3281521-1-tromey@adacore.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.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.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: Tue, 07 Jun 2022 15:42:30 -0000 This series addresses a longstanding wish to be able to access the value_print_options from pretty-printers. First, it exposes this information via a new API. Second, when a 'print' is in effect, it arranges for the local print options to be stored and then applied by Value.format_string. This makes it so that format_string respect the current settings by default. Finally, this series exposes the 'summary' field from value_print_options. Regression tested on x86-64 Fedora 34. Tom