From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id A94813858D28; Tue, 17 Jan 2023 21:32:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A94813858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673991162; bh=dne+UGEYDcTrQi2oC/jScpV03PEWt7Fx/DtRvfkaIvs=; h=From:To:Subject:Date:From; b=nIc+QG9IExXKohoMVZMylKIYqQx2GE9rHMFZ2J0E1BO8F6UqRFhDgEguvka9Eb5Hp 8k+/st+uKwYwT/Ajlxkk99o+nqulUotPLQ6FfvGNd05mVxZf5YK+62NNx5GB97S8bw AumPpTGWRMi3WArEsDbaG7R6A6fjad51FkJtarac= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Remove two unused fields from gdbarch X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: ef497b741139492a40bee9132d29cb861926ca9c X-Git-Newrev: 2c01dcdb5a2de09a5b36655f1a90d9471278d8b3 Message-Id: <20230117213242.A94813858D28@sourceware.org> Date: Tue, 17 Jan 2023 21:32:42 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D2c01dcdb5a2d= e09a5b36655f1a90d9471278d8b3 commit 2c01dcdb5a2de09a5b36655f1a90d9471278d8b3 Author: Tom Tromey Date: Tue Jan 17 12:45:11 2023 -0700 Remove two unused fields from gdbarch =20 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. Diff: --- 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 =3D nullptr; =20 - /* per-architecture data-pointers. */ - unsigned nr_data =3D 0; - void **data =3D nullptr; - int short_bit =3D 2*TARGET_CHAR_BIT; int int_bit =3D 4*TARGET_CHAR_BIT; int long_bit =3D 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=3Df) print(" gdbarch_dump_tdep_ftype *dump_tdep =3D nullptr;", file=3Df) print(file=3Df) - print(" /* per-architecture data-pointers. */", file=3Df) - print(" unsigned nr_data =3D 0;", file=3Df) - print(" void **data =3D nullptr;", file=3Df) - print(file=3Df) for c in filter(not_info, components): if isinstance(c, Function): print(f" gdbarch_{c.name}_ftype *", file=3Df, end=3D"")