From patchwork Tue Jan 17 19:46:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 63283 Return-Path: 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 AA90B3858C27 for ; Tue, 17 Jan 2023 19:46:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA90B3858C27 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673984805; bh=eBxfQE1nRl/h/PnoQluqtKjxwt0dPf5tm/PheMU4oSc=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=tAzkEm1xmIDocddC5Wf/ZlUmfjW1Bc5rWOxgiA5y4GXtQxCHh5z4WCjHeC5y1gmnT gx2cBwboEpOYSAxM6dR/7zvcJSfW8iCdoRCHCeknDoEhn4+ismj5T6ynsOQ1dHOV57 4D3P8PTyFnjnt7CyGjE+l2wkJaETL8+oG6f/9M3w= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by sourceware.org (Postfix) with ESMTPS id 005E13858D35 for ; Tue, 17 Jan 2023 19:46:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 005E13858D35 Received: by mail-il1-x130.google.com with SMTP id u8so15958484ilg.0 for ; Tue, 17 Jan 2023 11:46:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eBxfQE1nRl/h/PnoQluqtKjxwt0dPf5tm/PheMU4oSc=; b=WpWnX0msGn+1KkwbfZrKz8SK+P3uwWv+JpqfbKsZ3C++GJLpUAEDbBCmo8vIbG/fYB ZtuqTPXw7Ha3m0gdpCLVxQzyVvHcn0K36ueIplpx5AoJGGFMT/s+JVTaQOVQlqeiR86s DFeBwcW1/2mDzzQFRu8phG2ttzt5NAXQOQl7lTqVUFPxlkS5rZU3emJcFa27xt+W+cpW 3ckRPgIwxcHgdCYlnyyG9ZGh84shXxV6VoPTDqmTSDvYsLobu2lHM3/5gfBw2Qc9C3JW +2S/pGxlAyUKCrX8emm1g2b6yRt6FwFffCA7aAuwS6aM5AYdakluEzvZ6LcUySkWhRpc 25WQ== X-Gm-Message-State: AFqh2kpfrgnmOiwUcZl/1mm8IZx+IJVi8QuVtewcghHwLsq0C1DCVrxA Ki6d7/M11TJEi1xnz3iYUpiHAuZtRAjfEM/o X-Google-Smtp-Source: AMrXdXt81aVbd91rtmb7kK4ISRsYeTd4j0+FqJatwD/b0tEhT23r5jCtrzuYDPAx/oVn/EstQEBdbw== X-Received: by 2002:a05:6e02:1d82:b0:30c:41:558 with SMTP id h2-20020a056e021d8200b0030c00410558mr4183122ila.18.1673984782259; Tue, 17 Jan 2023 11:46:22 -0800 (PST) Received: from localhost.localdomain (97-122-76-186.hlrn.qwest.net. [97.122.76.186]) by smtp.gmail.com with ESMTPSA id b32-20020a0295a3000000b003a4b24f08d4sm2203121jai.165.2023.01.17.11.46.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 11:46:21 -0800 (PST) To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] Remove two unused fields from gdbarch Date: Tue, 17 Jan 2023 12:46:12 -0700 Message-Id: <20230117194612.3433270-1-tromey@adacore.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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-Patchwork-Original-From: Tom Tromey via Gdb-patches From: Tom Tromey Reply-To: Tom Tromey Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" When I converted gdbarch to use the registry, I forgot to remove the two fields that were used to implement the previous approach. This patch removes them. Tested by rebuilding. --- gdb/gdbarch.c | 4 ---- gdb/gdbarch.py | 4 ---- 2 files changed, 8 deletions(-) diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 46baca9c479..04fcc92f8f9 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -48,10 +48,6 @@ struct gdbarch gdbarch_tdep_up tdep; gdbarch_dump_tdep_ftype *dump_tdep = nullptr; - /* per-architecture data-pointers. */ - unsigned nr_data = 0; - void **data = nullptr; - int short_bit = 2*TARGET_CHAR_BIT; int int_bit = 4*TARGET_CHAR_BIT; int long_bit = 4*TARGET_CHAR_BIT; diff --git a/gdb/gdbarch.py b/gdb/gdbarch.py index 7dc79386940..3ebc3598047 100755 --- a/gdb/gdbarch.py +++ b/gdb/gdbarch.py @@ -289,10 +289,6 @@ with open("gdbarch.c", "w") as f: print(" gdbarch_tdep_up tdep;", file=f) print(" gdbarch_dump_tdep_ftype *dump_tdep = nullptr;", file=f) print(file=f) - print(" /* per-architecture data-pointers. */", file=f) - print(" unsigned nr_data = 0;", file=f) - print(" void **data = nullptr;", file=f) - print(file=f) for c in filter(not_info, components): if isinstance(c, Function): print(f" gdbarch_{c.name}_ftype *", file=f, end="")