Remove two unused fields from gdbarch
authorTom Tromey <tromey@adacore.com>
Tue, 17 Jan 2023 19:45:11 +0000 (12:45 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 17 Jan 2023 19:45:11 +0000 (12:45 -0700)
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
gdb/gdbarch.py

index 46baca9c4793ed9978dd0441503675495c2467e2..04fcc92f8f940fc4da75c27753ca035094280955 100644 (file)
@@ -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;
index 7dc79386940f654d4bd1d425593308e7e492f2da..3ebc359804724640b2d4b8a853d1e4c7e6ccf1e8 100755 (executable)
@@ -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="")