Update comments about removed function
authorChristian Biesinger <cbiesinger@google.com>
Thu, 23 Jan 2020 14:52:05 +0000 (15:52 +0100)
committerChristian Biesinger <cbiesinger@google.com>
Fri, 24 Jan 2020 11:34:48 +0000 (12:34 +0100)
regset_from_core_section doesn't exist anymore; it has been replaced
by the iterate_over_regset_sections gdbarch method.  Update comments
accordingly to not confuse readers.

gdb/ChangeLog:

2020-01-24  Christian Biesinger  <cbiesinger@google.com>

* aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
Update comment.
* aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
Likewise.
* arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
* gdbcore.h (deprecated_add_core_fns): Update comment to point to
the correct replacement (iterate_over_regset_sections).
* riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
Update comment.

Change-Id: I5eea4d18e15edae5d6dfd5d0d6241e5b2ae40daa

gdb/ChangeLog
gdb/aarch64-fbsd-tdep.c
gdb/aarch64-linux-tdep.c
gdb/arm-fbsd-tdep.c
gdb/gdbcore.h
gdb/riscv-fbsd-tdep.c

index ca2e49eb508a913b6ccc15cbce3ee2c2460fc579..964a01d6f1ba025b14d4b7ad1887850fa1bd1e35 100644 (file)
@@ -1,3 +1,15 @@
+2020-01-24  Christian Biesinger  <cbiesinger@google.com>
+
+       * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
+       Update comment.
+       * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
+       Likewise.
+       * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
+       * gdbcore.h (deprecated_add_core_fns): Update comment to point to
+       the correct replacement (iterate_over_regset_sections).
+       * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
+       Update comment.
+
 2020-01-24  Graham Markall  <graham.markall@embecosm.com>
 
        PR gdb/23718
index b923c5c47404bcde5d1c63d83550fb4b3e414996..0d41198ecd8a0f650f5a802c45654bad11966972 100644 (file)
@@ -134,7 +134,7 @@ const struct regset aarch64_fbsd_fpregset =
     regcache_supply_regset, regcache_collect_regset
   };
 
-/* Implement the "regset_from_core_section" gdbarch method.  */
+/* Implement the "iterate_over_regset_sections" gdbarch method.  */
 
 static void
 aarch64_fbsd_iterate_over_regset_sections (struct gdbarch *gdbarch,
index 67046c4271a36fee0f5ce8a1f16267df5d4f775a..34ba0d87baaff12f1f9711e777ab15a0a394f59b 100644 (file)
@@ -582,7 +582,7 @@ aarch64_linux_collect_sve_regset (const struct regset *regset,
                            size - SVE_HEADER_SIZE);
 }
 
-/* Implement the "regset_from_core_section" gdbarch method.  */
+/* Implement the "iterate_over_regset_sections" gdbarch method.  */
 
 static void
 aarch64_linux_iterate_over_regset_sections (struct gdbarch *gdbarch,
index 417a805e672f7183dd94fc1300957bee1f5bdb28..de94d06c70d59c7fc69e37deefbc542f126ab8c0 100644 (file)
@@ -150,7 +150,7 @@ const struct regset arm_fbsd_vfpregset =
     regcache_supply_regset, regcache_collect_regset
   };
 
-/* Implement the "regset_from_core_section" gdbarch method.  */
+/* Implement the "iterate_over_regset_sections" gdbarch method.  */
 
 static void
 arm_fbsd_iterate_over_regset_sections (struct gdbarch *gdbarch,
index 66e81dfe950f5a244d702eaa38a2d2fd89493d03..0a69d36ad760fabd9796a1ca1d6273395bf4275c 100644 (file)
@@ -269,8 +269,7 @@ private:
   std::string m_storage;
 };
 
-/* NOTE: cagney/2004-04-05: Replaced by "regset.h" and
-   regset_from_core_section().  */
+/* Replaced by the "iterate_over_regset_sections" gdbarch method.  */
 extern void deprecated_add_core_fns (struct core_fns *cf);
 extern int default_core_sniffer (struct core_fns *cf, bfd * abfd);
 extern int default_check_format (bfd * abfd);
index 8a9295904de74ad8da4ef78ebf812c86e7385a1b..6e0eb2bb788d9ff87a2cc0c96ae3a63ede6c0596 100644 (file)
@@ -81,7 +81,7 @@ const struct regset riscv_fbsd_fpregset =
     regcache_supply_regset, regcache_collect_regset
   };
 
-/* Implement the "regset_from_core_section" gdbarch method.  */
+/* Implement the "iterate_over_regset_sections" gdbarch method.  */
 
 static void
 riscv_fbsd_iterate_over_regset_sections (struct gdbarch *gdbarch,