]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
arc: Make variable name in comments uppercase
authorShahab Vahedi <shahab@synopsys.com>
Tue, 22 Dec 2020 11:27:00 +0000 (12:27 +0100)
committerShahab Vahedi <shahab@synopsys.com>
Tue, 22 Dec 2020 11:27:00 +0000 (12:27 +0100)
The word "regnum" in comments should be uppercase, because it
reflects a variable name in the code.

gdb/ChangeLog

* arc-linux-tdep.c: Replace "regnum" with "REGNUM" in comments.

gdb/ChangeLog
gdb/arc-linux-tdep.c

index c961d72a66ccd88ef5d7e0600ee1d4b1f6c26a1a..84b006e699b248e8b57af573fd0e9632646b52c3 100644 (file)
@@ -1,3 +1,7 @@
+2020-12-22  Shahab Vahedi  <shahab@synopsys.com>
+
+       * arc-linux-tdep.c: Replace "regnum" with "REGNUM" in comments.
+
 2020-12-22  Anton Kolesov  <anton.kolesov@synopsys.com>
 
        * Makefile.in (ALLDEPFILES): Add arc-linux-nat.c.
index db17fcfce51eb5070ca821aae95a03041e895cef..62e3461686711af76a14b5b06247ac024b82960a 100644 (file)
@@ -483,7 +483,7 @@ arc_linux_supply_gregset (const struct regset *regset,
 
   const bfd_byte *buf = (const bfd_byte *) gregs;
 
-  /* regnum == -1 means writing all the registers.  */
+  /* REGNUM == -1 means writing all the registers.  */
   if (regnum == -1)
     for (int reg = 0; reg <= ARC_LAST_REGNUM; reg++)
       supply_register (regcache, reg, buf);
@@ -547,7 +547,7 @@ arc_linux_collect_gregset (const struct regset *regset,
   gdb_byte *buf = (gdb_byte *) gregs;
   struct gdbarch *gdbarch = regcache->arch ();
 
-  /* regnum == -1 means writing all the registers.  */
+  /* REGNUM == -1 means writing all the registers.  */
   if (regnum == -1)
     for (int reg = 0; reg <= ARC_LAST_REGNUM; reg++)
       collect_register (regcache, gdbarch, reg, buf);