summaryrefslogtreecommitdiff
path: root/gdb/arc-linux-tdep.c
diff options
context:
space:
mode:
authorShahab Vahedi <shahab@synopsys.com>2020-12-22 12:27:00 +0100
committerShahab Vahedi <shahab@synopsys.com>2020-12-22 12:27:00 +0100
commitacf10cacc6bd596ef7327063038bb1ee020c07d0 (patch)
treeaef79e39f306f72f00cb42db4746e7d4bf0b645d /gdb/arc-linux-tdep.c
parent04c9f85efcd8df5fc482ce97c0104cc7dd5d19e6 (diff)
downloadbinutils-gdb-acf10cacc6bd596ef7327063038bb1ee020c07d0.tar.gz
arc: Make variable name in comments uppercase
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.
Diffstat (limited to 'gdb/arc-linux-tdep.c')
-rw-r--r--gdb/arc-linux-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/arc-linux-tdep.c b/gdb/arc-linux-tdep.c
index db17fcfce51..62e34616867 100644
--- a/gdb/arc-linux-tdep.c
+++ b/gdb/arc-linux-tdep.c
@@ -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);