| Message ID | 20231221191716.257256-1-simon.marchi@efficios.com |
|---|---|
| Headers |
Return-Path: <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3F862384DB53 for <patchwork@sourceware.org>; Thu, 21 Dec 2023 19:17:32 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id AE3193858C56 for <gdb-patches@sourceware.org>; Thu, 21 Dec 2023 19:17:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AE3193858C56 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=efficios.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=efficios.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AE3193858C56 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703186240; cv=none; b=TlWasOHPPxvBganT/d7BThBPY1BrLzJSWFHbYP4wbkxiDU31iOpw6qPB5WcFtGRFuG2xig/Fdfsg7i7xZyMw5K3BJzhuosT2g0d+tvwnNl8ftclrg8qpx5y4DyXeUH66aG8yy5y084YR+96og8zup6rNXKJt9ciTMbuB4D0DkWk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703186240; c=relaxed/simple; bh=n4pVp+oF/lNC/xRQ0VE+4J+N6GwDXb5MNNm1YUX3IYY=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=C95ilqwZ2a7p3u/kFzgrc/hhV2OC6pcYLqF2MeL+sLRSiJJCKB0z6ebl/bKDwE34cpCdEamDhgabA0j1yIwb8ypysoBZ2JroAg8UPNHoUajOEUS5yZkVJlhrRUvKoYS8vB6b1cyfV4i5sMoepTRbM987qU4E1eC8GvYN5UOl8nE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from smarchi-efficios.internal.efficios.com (192-222-143-198.qc.cable.ebox.net [192.222.143.198]) (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 ESMTPSA id D93461E0AC; Thu, 21 Dec 2023 14:17:17 -0500 (EST) From: Simon Marchi <simon.marchi@efficios.com> To: gdb-patches@sourceware.org Cc: Simon Marchi <simon.marchi@efficios.com> Subject: [PATCH 0/9] Some register value cleanups Date: Thu, 21 Dec 2023 14:16:21 -0500 Message-ID: <20231221191716.257256-1-simon.marchi@efficios.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3490.6 required=5.0 tests=BAYES_00, KAM_DMARC_NONE, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_SOFTFAIL, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no 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.30 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org |
| Series |
Some register value cleanups
|
|
Message
Simon Marchi
Dec. 21, 2023, 7:16 p.m. UTC
I'm currently investigating some things related to register read and
spotted some improvements that could be made to make the code a bit
simpler or more robust, here they are.
Simon Marchi (9):
gdb: don't set frame id after calling cooked_read_value
gdb: pass frame_info_ptr to gdbarch_value_from_register
gdb: pass non-nullptr frame to gdbarch_value_from_register in
address_from_register
gdb: add type parameter to value::allocate_register and add
value::allocate_register_lazy
gdb: remove read_frame_register_value's frame parameter
gdb: implement address_from_register using value_from_register
gdb: remove VALUE_NEXT_FRAME_ID, add value::next_frame_id
gdb: remove VALUE_REGNUM, add value::regnum
gdb: make value::allocate_register_lazy store id of next non-inline
frame
gdb/findvar.c | 126 +++++++++-----------------------------
gdb/frame.c | 7 +--
gdb/gdbarch-gen.h | 6 +-
gdb/gdbarch.c | 4 +-
gdb/gdbarch_components.py | 4 +-
gdb/python/py-unwind.c | 2 +-
gdb/rs6000-tdep.c | 26 +++-----
gdb/s390-tdep.c | 10 +--
gdb/sentinel-frame.c | 1 -
gdb/stack.c | 3 +-
gdb/valops.c | 22 +++----
gdb/value.c | 84 +++++++++++++++----------
gdb/value.h | 50 ++++++++-------
13 files changed, 138 insertions(+), 207 deletions(-)
base-commit: 333a6b1a6399992cc98ac34727acf38136b770e6
Comments
>>>>> "Simon" == Simon Marchi <simon.marchi@efficios.com> writes:
Simon> I'm currently investigating some things related to register read and
Simon> spotted some improvements that could be made to make the code a bit
Simon> simpler or more robust, here they are.
Thank you for doing this. I sent a few minor notes, but overall I'm
very happy to see this series.
Tom
On 2023-12-22 11:53, Tom Tromey wrote: >>>>>> "Simon" == Simon Marchi <simon.marchi@efficios.com> writes: > > Simon> I'm currently investigating some things related to register read and > Simon> spotted some improvements that could be made to make the code a bit > Simon> simpler or more robust, here they are. > > Thank you for doing this. I sent a few minor notes, but overall I'm > very happy to see this series. > > Tom Thanks, I'll apply your comments, and I'll push it if there are no significant changes that need re-review. Simon
>>>>> "Simon" == Simon Marchi <simon.marchi@efficios.com> writes:
Simon> Thanks, I'll apply your comments, and I'll push it if there are no
Simon> significant changes that need re-review.
Feel free to stick this on:
Approved-By: Tom Tromey <tom@tromey.com>
Tom
On 2023-12-22 12:02, Tom Tromey wrote: >>>>>> "Simon" == Simon Marchi <simon.marchi@efficios.com> writes: > > Simon> Thanks, I'll apply your comments, and I'll push it if there are no > Simon> significant changes that need re-review. > > Feel free to stick this on: > Approved-By: Tom Tromey <tom@tromey.com> > > Tom I pushed the series with the small comments addressed, I left out the one to change value::next_frame_id to return a frame_info_ptr. I forgot to add the Approved-By, sorry :(. Simon