]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb] Fix codespell false positives by renaming
authorTom de Vries <tdevries@suse.de>
Mon, 15 Jun 2026 11:24:08 +0000 (13:24 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 15 Jun 2026 11:24:08 +0000 (13:24 +0200)
Fix codespell false positives in gdb dir, by renaming identifiers and
splitting words.

15 files changed:
gdb/amd64-tdep.c
gdb/arm-linux-nat.c
gdb/arm-tdep.c
gdb/completer.c
gdb/gdbtypes.c
gdb/i386-tdep.c
gdb/mips-linux-nat.c
gdb/ppc-linux-nat.c
gdb/printcmd.c
gdb/remote.c
gdb/ser-event.c
gdb/symtab.c
gdb/windows-nat.c
gdb/windows-nat.h
gdb/xtensa-tdep.c

index 0d23abb31641437522a5aac834a71b40ca1bc14b..99448a98f61f10a2bb0a9186c5afd1e44d4e84fb 100644 (file)
@@ -725,7 +725,7 @@ amd64_classify (struct type *type, enum amd64_reg_class theclass[2])
   /* Arguments of complex T - where T is one of the types _Float16, float or
      double - get treated as if they are implemented as:
 
-     struct complexT {
+     struct complex_T {
        T real;
        T imag;
      };
index 02251e9fa4802f2d5f2c36ef355adede81e1e11f..8f31e2bc56aca503fc9f6e77f3a116da062f810d 100644 (file)
@@ -659,7 +659,7 @@ arm_linux_get_hw_watchpoint_count (void)
    there is not an appropriate resource available, otherwise returns 1.  */
 int
 arm_linux_nat_target::can_use_hw_breakpoint (enum bptype type,
-                                            int cnt, int ot)
+                                            int cnt, int othertype)
 {
   if (type == bp_hardware_watchpoint || type == bp_read_watchpoint
       || type == bp_access_watchpoint || type == bp_watchpoint)
@@ -668,7 +668,7 @@ arm_linux_nat_target::can_use_hw_breakpoint (enum bptype type,
 
       if (count == 0)
        return 0;
-      else if (cnt + ot > count)
+      else if (cnt + othertype > count)
        return -1;
     }
   else if (type == bp_hardware_breakpoint)
index 7f2ddb31a64affe038f7d29d8b2f63fe70909362..13f45b8dfd50a128c96302f3c5f01f73b2d84522 100644 (file)
@@ -4450,7 +4450,7 @@ arm_vfp_cprc_sub_candidate (struct type *t,
       /* Arguments of complex T where T is one of the types float or
         double get treated as if they are implemented as:
 
-        struct complexT
+        struct complex_T
         {
           T real;
           T imag;
index 49189ac183f2c12df37286e97f9e9e60b264f097..0925891379af6ba8623112b6c20b11b656960902 100644 (file)
@@ -3034,7 +3034,7 @@ gdb_fnwidth (const char *string)
 #if defined (HANDLE_MULTIBYTE)
   mbstate_t ps;
   int left, w;
-  size_t clen;
+  size_t c_len;
   wchar_t wc;
 
   left = strlen (string) + 1;
@@ -3052,18 +3052,18 @@ gdb_fnwidth (const char *string)
       else
        {
 #if defined (HANDLE_MULTIBYTE)
-         clen = mbrtowc (&wc, string + pos, left - pos, &ps);
-         if (MB_INVALIDCH (clen))
+         c_len = mbrtowc (&wc, string + pos, left - pos, &ps);
+         if (MB_INVALIDCH (c_len))
            {
              width++;
              pos++;
              memset (&ps, 0, sizeof (mbstate_t));
            }
-         else if (MB_NULLWCH (clen))
+         else if (MB_NULLWCH (c_len))
            break;
          else
            {
-             pos += clen;
+             pos += c_len;
              w = wcwidth (wc);
              width += (w >= 0) ? w : 1;
            }
index 2f566583509ed4637868c154542b2ffb83ab3181..eac5cb87fe2f418ac0da241e1e7fe9a0c2387dc0 100644 (file)
@@ -1641,14 +1641,14 @@ struct type *
 lookup_template_type (const char *name, struct type *type,
                      const struct block *block)
 {
-  std::string nam;
-  nam.reserve (strlen (name) + strlen (type->name ()) + strlen ("< >"));
-  nam = name;
-  nam += "<";
-  nam += type->name ();
-  nam += " >"; /* FIXME, extra space still introduced in gcc?  */
-
-  symbol *sym = lookup_symbol (nam.c_str (), block,
+  std::string str;
+  str.reserve (strlen (name) + strlen (type->name ()) + strlen ("< >"));
+  str = name;
+  str += "<";
+  str += type->name ();
+  str += " >"; /* FIXME, extra space still introduced in gcc?  */
+
+  symbol *sym = lookup_symbol (str.c_str (), block,
                               SEARCH_STRUCT_DOMAIN, 0).symbol;
 
   if (sym == NULL)
index c21e19d1576c002a6ead440da3cec33966c6b340..a19d774841c8a50b0d8457e9cc9c6ad869651f8d 100644 (file)
@@ -4399,7 +4399,7 @@ struct i386_record_s
   int override;
   uint8_t modrm;
   uint8_t mod, reg, rm;
-  int ot;
+  int operand_type;  /* OT_BYTE/OT_WORD/OT_LONG/OT_QUAD/OT_DQUAD.  */
   uint8_t rex_x;
   uint8_t rex_b;
   int rip_offset;
@@ -4657,7 +4657,7 @@ Do you want to stop the program?"),
   if (i386_record_lea_modrm_addr (irp, &addr))
     return -1;
 
-  if (record_full_arch_list_add_mem (addr, 1 << irp->ot))
+  if (record_full_arch_list_add_mem (addr, 1 << irp->operand_type))
     return -1;
 
   return 0;
@@ -4807,9 +4807,9 @@ i386_record_vex (struct i386_record_s *ir, uint8_t vex_w, uint8_t vex_r,
             latter works exactly like 0x29, but the former encodes the size
             on VEX.pp itself.  */
          if (opcode == 0x11 && (ir->pp & 2) != 0)
-           ir->ot = ir->pp;
+           ir->operand_type = ir->pp;
          else
-           ir->ot = 4 + ir->l;
+           ir->operand_type = 4 + ir->l;
          i386_record_lea_modrm (ir);
        }
       break;
@@ -4848,15 +4848,15 @@ i386_record_vex (struct i386_record_s *ir, uint8_t vex_w, uint8_t vex_r,
          else
            {
              /* Calculate the size of memory that will be modified
-                and store it in the form of 1 << ir->ot, since that
+                and store it in the form of 1 << ir->operand_type, since that
                 is how the function uses it.  In theory, VEX.W is supposed
                 to indicate the size of the memory. In practice, I only
                 ever seen it set to 0, and for 16 bytes, 0xD6 opcode
                 is used.  */
              if (vex_w)
-               ir->ot = 4;
+               ir->operand_type = 4;
              else
-               ir->ot = 3;
+               ir->operand_type = 3;
 
              i386_record_lea_modrm (ir);
            }
@@ -4888,7 +4888,7 @@ i386_record_vex (struct i386_record_s *ir, uint8_t vex_w, uint8_t vex_r,
       else
        {
          /* We know that this operation is always 64 bits.  */
-         ir->ot = 4;
+         ir->operand_type = 4;
          i386_record_lea_modrm (ir);
        }
       break;
@@ -4936,7 +4936,7 @@ i386_record_vex (struct i386_record_s *ir, uint8_t vex_w, uint8_t vex_r,
          else
            {
              /* We're writing 256 bits, so 1<<8.  */
-             ir->ot = 8;
+             ir->operand_type = 8;
              i386_record_lea_modrm (ir);
            }
        }
@@ -5008,9 +5008,9 @@ i386_record_vex (struct i386_record_s *ir, uint8_t vex_w, uint8_t vex_r,
                   address, so all of them are passed along.  */
                /* Size is mostly based on the opcode, except for
                   double/quadword difference.  */
-               ir->ot = opcode - 0x14;
+               ir->operand_type = opcode - 0x14;
                if (opcode == 0x16 && vex_w == 1)
-                 ir->ot ++;
+                 ir->operand_type ++;
                /* I'm not sure if this is the original use, but in here
                   rip_offset is used to indicate that the RIP pointer will
                   be 1 byte away from where the instruction expects it to
@@ -5068,7 +5068,7 @@ i386_record_vex (struct i386_record_s *ir, uint8_t vex_w, uint8_t vex_r,
       i386_record_modrm (ir);
       if (ir->map_select == 1) /* This is the VMOV family.  */
        {
-         ir->ot = 3;
+         ir->operand_type = 3;
          i386_record_lea_modrm (ir);
        }
       else
@@ -5455,9 +5455,9 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
       if (((opcode >> 3) & 7) != OP_CMPL)
        {
          if ((opcode & 1) == 0)
-           ir.ot = OT_BYTE;
+           ir.operand_type = OT_BYTE;
          else
-           ir.ot = ir.dflag + OT_WORD;
+           ir.operand_type = ir.dflag + OT_WORD;
 
          switch ((opcode >> 1) & 3)
            {
@@ -5472,7 +5472,7 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
              else
                {
                  ir.rm |= ir.rex_b;
-                 if (ir.ot == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
+                 if (ir.operand_type == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
                    ir.rm &= 0x3;
                  I386_RECORD_FULL_ARCH_LIST_ADD_REG (ir.rm);
                }
@@ -5481,7 +5481,7 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
              if (i386_record_modrm (&ir))
                return -1;
              ir.reg |= rex_r;
-             if (ir.ot == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
+             if (ir.operand_type == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
                ir.reg &= 0x3;
              I386_RECORD_FULL_ARCH_LIST_ADD_REG (ir.reg);
              break;
@@ -5503,16 +5503,16 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
       if (ir.reg != OP_CMPL)
        {
          if ((opcode & 1) == 0)
-           ir.ot = OT_BYTE;
+           ir.operand_type = OT_BYTE;
          else
-           ir.ot = ir.dflag + OT_WORD;
+           ir.operand_type = ir.dflag + OT_WORD;
 
          if (ir.mod != 3)
            {
              if (opcode == 0x83)
                ir.rip_offset = 1;
              else
-               ir.rip_offset = (ir.ot > OT_LONG) ? 4 : (1 << ir.ot);
+               ir.rip_offset = (ir.operand_type > OT_LONG) ? 4 : (1 << ir.operand_type);
              if (i386_record_lea_modrm (&ir))
                return -1;
            }
@@ -5547,14 +5547,14 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
     case 0xf6:    /* GRP3 */
     case 0xf7:
       if ((opcode & 1) == 0)
-       ir.ot = OT_BYTE;
+       ir.operand_type = OT_BYTE;
       else
-       ir.ot = ir.dflag + OT_WORD;
+       ir.operand_type = ir.dflag + OT_WORD;
       if (i386_record_modrm (&ir))
        return -1;
 
       if (ir.mod != 3 && ir.reg == 0)
-       ir.rip_offset = (ir.ot > OT_LONG) ? 4 : (1 << ir.ot);
+       ir.rip_offset = (ir.operand_type > OT_LONG) ? 4 : (1 << ir.operand_type);
 
       switch (ir.reg)
        {
@@ -5571,7 +5571,7 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
          else
            {
              ir.rm |= ir.rex_b;
-             if (ir.ot == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
+             if (ir.operand_type == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
                ir.rm &= 0x3;
              I386_RECORD_FULL_ARCH_LIST_ADD_REG (ir.rm);
            }
@@ -5583,7 +5583,7 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
        case 6:    /* div  */
        case 7:    /* idiv */
          I386_RECORD_FULL_ARCH_LIST_ADD_REG (X86_RECORD_REAX_REGNUM);
-         if (ir.ot != OT_BYTE)
+         if (ir.operand_type != OT_BYTE)
            I386_RECORD_FULL_ARCH_LIST_ADD_REG (X86_RECORD_REDX_REGNUM);
          I386_RECORD_FULL_ARCH_LIST_ADD_REG (X86_RECORD_EFLAGS_REGNUM);
          break;
@@ -5610,9 +5610,9 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
        case 0:    /* inc */
        case 1:    /* dec */
          if ((opcode & 1) == 0)
-           ir.ot = OT_BYTE;
+           ir.operand_type = OT_BYTE;
          else
-           ir.ot = ir.dflag + OT_WORD;
+           ir.operand_type = ir.dflag + OT_WORD;
          if (ir.mod != 3)
            {
              if (i386_record_lea_modrm (&ir))
@@ -5621,7 +5621,7 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
          else
            {
              ir.rm |= ir.rex_b;
-             if (ir.ot == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
+             if (ir.operand_type == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
                ir.rm &= 0x3;
              I386_RECORD_FULL_ARCH_LIST_ADD_REG (ir.rm);
            }
@@ -5677,15 +5677,15 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
     case 0x0faf:  /* imul */
     case 0x69:
     case 0x6b:
-      ir.ot = ir.dflag + OT_WORD;
+      ir.operand_type = ir.dflag + OT_WORD;
       if (i386_record_modrm (&ir))
        return -1;
       if (opcode == 0x69)
-       ir.rip_offset = (ir.ot > OT_LONG) ? 4 : (1 << ir.ot);
+       ir.rip_offset = (ir.operand_type > OT_LONG) ? 4 : (1 << ir.operand_type);
       else if (opcode == 0x6b)
        ir.rip_offset = 1;
       ir.reg |= rex_r;
-      if (ir.ot == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
+      if (ir.operand_type == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
        ir.reg &= 0x3;
       I386_RECORD_FULL_ARCH_LIST_ADD_REG (ir.reg);
       I386_RECORD_FULL_ARCH_LIST_ADD_REG (X86_RECORD_EFLAGS_REGNUM);
@@ -5694,18 +5694,18 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
     case 0x0fc0:  /* xadd */
     case 0x0fc1:
       if ((opcode & 1) == 0)
-       ir.ot = OT_BYTE;
+       ir.operand_type = OT_BYTE;
       else
-       ir.ot = ir.dflag + OT_WORD;
+       ir.operand_type = ir.dflag + OT_WORD;
       if (i386_record_modrm (&ir))
        return -1;
       ir.reg |= rex_r;
       if (ir.mod == 3)
        {
-         if (ir.ot == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
+         if (ir.operand_type == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
            ir.reg &= 0x3;
          I386_RECORD_FULL_ARCH_LIST_ADD_REG (ir.reg);
-         if (ir.ot == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
+         if (ir.operand_type == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
            ir.rm &= 0x3;
          I386_RECORD_FULL_ARCH_LIST_ADD_REG (ir.rm);
        }
@@ -5713,7 +5713,7 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
        {
          if (i386_record_lea_modrm (&ir))
            return -1;
-         if (ir.ot == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
+         if (ir.operand_type == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
            ir.reg &= 0x3;
          I386_RECORD_FULL_ARCH_LIST_ADD_REG (ir.reg);
        }
@@ -5723,16 +5723,16 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
     case 0x0fb0:  /* cmpxchg */
     case 0x0fb1:
       if ((opcode & 1) == 0)
-       ir.ot = OT_BYTE;
+       ir.operand_type = OT_BYTE;
       else
-       ir.ot = ir.dflag + OT_WORD;
+       ir.operand_type = ir.dflag + OT_WORD;
       if (i386_record_modrm (&ir))
        return -1;
       if (ir.mod == 3)
        {
          ir.reg |= rex_r;
          I386_RECORD_FULL_ARCH_LIST_ADD_REG (X86_RECORD_REAX_REGNUM);
-         if (ir.ot == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
+         if (ir.operand_type == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
            ir.reg &= 0x3;
          I386_RECORD_FULL_ARCH_LIST_ADD_REG (ir.reg);
        }
@@ -5859,16 +5859,16 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
 
     case 0x8f:    /* pop */
       if (ir.regmap[X86_RECORD_R8_REGNUM])
-       ir.ot = ir.dflag ? OT_QUAD : OT_WORD;
+       ir.operand_type = ir.dflag ? OT_QUAD : OT_WORD;
       else
-       ir.ot = ir.dflag + OT_WORD;
+       ir.operand_type = ir.dflag + OT_WORD;
       if (i386_record_modrm (&ir))
        return -1;
       if (ir.mod == 3)
        I386_RECORD_FULL_ARCH_LIST_ADD_REG (ir.rm | ir.rex_b);
       else
        {
-         ir.popl_esp_hack = 1 << ir.ot;
+         ir.popl_esp_hack = 1 << ir.operand_type;
          if (i386_record_lea_modrm (&ir))
            return -1;
        }
@@ -5938,9 +5938,9 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
     case 0xc6:
     case 0xc7:
       if ((opcode & 1) == 0)
-       ir.ot = OT_BYTE;
+       ir.operand_type = OT_BYTE;
       else
-       ir.ot = ir.dflag + OT_WORD;
+       ir.operand_type = ir.dflag + OT_WORD;
 
       if (i386_record_modrm (&ir))
        return -1;
@@ -5948,7 +5948,7 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
       if (ir.mod != 3)
        {
          if (opcode == 0xc6 || opcode == 0xc7)
-           ir.rip_offset = (ir.ot > OT_LONG) ? 4 : (1 << ir.ot);
+           ir.rip_offset = (ir.operand_type > OT_LONG) ? 4 : (1 << ir.operand_type);
          if (i386_record_lea_modrm (&ir))
            return -1;
        }
@@ -5956,7 +5956,7 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
        {
          if (opcode == 0xc6 || opcode == 0xc7)
            ir.rm |= ir.rex_b;
-         if (ir.ot == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
+         if (ir.operand_type == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
            ir.rm &= 0x3;
          I386_RECORD_FULL_ARCH_LIST_ADD_REG (ir.rm);
        }
@@ -5965,13 +5965,13 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
     case 0x8a:    /* mov */
     case 0x8b:
       if ((opcode & 1) == 0)
-       ir.ot = OT_BYTE;
+       ir.operand_type = OT_BYTE;
       else
-       ir.ot = ir.dflag + OT_WORD;
+       ir.operand_type = ir.dflag + OT_WORD;
       if (i386_record_modrm (&ir))
        return -1;
       ir.reg |= rex_r;
-      if (ir.ot == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
+      if (ir.operand_type == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
        ir.reg &= 0x3;
       I386_RECORD_FULL_ARCH_LIST_ADD_REG (ir.reg);
       break;
@@ -5990,7 +5990,7 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
        I386_RECORD_FULL_ARCH_LIST_ADD_REG (ir.rm);
       else
        {
-         ir.ot = OT_WORD;
+         ir.operand_type = OT_WORD;
          if (i386_record_lea_modrm (&ir))
            return -1;
        }
@@ -6044,9 +6044,9 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
          opcode = opcode << 8 | ir.modrm;
          goto no_support;
        }
-      ir.ot = ir.dflag;
+      ir.operand_type = ir.dflag;
       ir.reg |= rex_r;
-      if (ir.ot == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
+      if (ir.operand_type == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
        ir.reg &= 0x3;
       I386_RECORD_FULL_ARCH_LIST_ADD_REG (ir.reg);
       break;
@@ -6075,9 +6075,9 @@ Do you want to stop the program?"),
       else
        {
          if ((opcode & 1) == 0)
-           ir.ot = OT_BYTE;
+           ir.operand_type = OT_BYTE;
          else
-           ir.ot = ir.dflag + OT_WORD;
+           ir.operand_type = ir.dflag + OT_WORD;
          if (ir.aflag == 2)
            {
              if (record_read_memory (gdbarch, ir.addr, buf, 8))
@@ -6099,7 +6099,7 @@ Do you want to stop the program?"),
              ir.addr += 2;
              addr = extract_unsigned_integer (buf, 2, byte_order);
            }
-         if (record_full_arch_list_add_mem (addr, 1 << ir.ot))
+         if (record_full_arch_list_add_mem (addr, 1 << ir.operand_type))
            return -1;
        }
       break;
@@ -6142,15 +6142,15 @@ Do you want to stop the program?"),
     case 0x86:    /* xchg Ev, Gv */
     case 0x87:
       if ((opcode & 1) == 0)
-       ir.ot = OT_BYTE;
+       ir.operand_type = OT_BYTE;
       else
-       ir.ot = ir.dflag + OT_WORD;
+       ir.operand_type = ir.dflag + OT_WORD;
       if (i386_record_modrm (&ir))
        return -1;
       if (ir.mod == 3)
        {
          ir.rm |= ir.rex_b;
-         if (ir.ot == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
+         if (ir.operand_type == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
            ir.rm &= 0x3;
          I386_RECORD_FULL_ARCH_LIST_ADD_REG (ir.rm);
        }
@@ -6160,7 +6160,7 @@ Do you want to stop the program?"),
            return -1;
        }
       ir.reg |= rex_r;
-      if (ir.ot == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
+      if (ir.operand_type == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
        ir.reg &= 0x3;
       I386_RECORD_FULL_ARCH_LIST_ADD_REG (ir.reg);
       break;
@@ -6217,9 +6217,9 @@ Do you want to stop the program?"),
     case 0xd2:
     case 0xd3:
       if ((opcode & 1) == 0)
-       ir.ot = OT_BYTE;
+       ir.operand_type = OT_BYTE;
       else
-       ir.ot = ir.dflag + OT_WORD;
+       ir.operand_type = ir.dflag + OT_WORD;
       if (i386_record_modrm (&ir))
        return -1;
       if (ir.mod != 3 && (opcode == 0xd2 || opcode == 0xd3))
@@ -6230,7 +6230,7 @@ Do you want to stop the program?"),
       else
        {
          ir.rm |= ir.rex_b;
-         if (ir.ot == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
+         if (ir.operand_type == OT_BYTE && !ir.regmap[X86_RECORD_R8_REGNUM])
            ir.rm &= 0x3;
          I386_RECORD_FULL_ARCH_LIST_ADD_REG (ir.rm);
        }
@@ -6715,9 +6715,9 @@ Do you want to stop the program?"),
          ULONGEST es, ds;
 
          if ((opcode & 1) == 0)
-           ir.ot = OT_BYTE;
+           ir.operand_type = OT_BYTE;
          else
-           ir.ot = ir.dflag + OT_WORD;
+           ir.operand_type = ir.dflag + OT_WORD;
          regcache_raw_read_unsigned (ir.regcache,
                                      ir.regmap[X86_RECORD_REDI_REGNUM],
                                      &addr);
@@ -6743,7 +6743,7 @@ Do you want to stop the program?"),
            }
          else
            {
-             if (record_full_arch_list_add_mem (addr, 1 << ir.ot))
+             if (record_full_arch_list_add_mem (addr, 1 << ir.operand_type))
                return -1;
            }
 
@@ -6891,7 +6891,7 @@ Do you want to stop the program?"),
     case 0x0f9e:
     case 0x0f9f:
       I386_RECORD_FULL_ARCH_LIST_ADD_REG (X86_RECORD_EFLAGS_REGNUM);
-      ir.ot = OT_BYTE;
+      ir.operand_type = OT_BYTE;
       if (i386_record_modrm (&ir))
        return -1;
       if (ir.mod == 3)
@@ -6969,7 +6969,7 @@ Do you want to stop the program?"),
 
       /* bit operations */
     case 0x0fba:    /* bt/bts/btr/btc Gv, im */
-      ir.ot = ir.dflag + OT_WORD;
+      ir.operand_type = ir.dflag + OT_WORD;
       if (i386_record_modrm (&ir))
        return -1;
       if (ir.reg < 4)
@@ -6998,7 +6998,7 @@ Do you want to stop the program?"),
     case 0x0fab:    /* bts */
     case 0x0fb3:    /* btr */
     case 0x0fbb:    /* btc */
-      ir.ot = ir.dflag + OT_WORD;
+      ir.operand_type = ir.dflag + OT_WORD;
       if (i386_record_modrm (&ir))
        return -1;
       if (ir.mod == 3)
@@ -7023,7 +7023,7 @@ Do you want to stop the program?"),
              addr64 += ((int64_t) addr >> 6) << 6;
              break;
            }
-         if (record_full_arch_list_add_mem (addr64, 1 << ir.ot))
+         if (record_full_arch_list_add_mem (addr64, 1 << ir.operand_type))
            return -1;
          if (i386_record_lea_modrm (&ir))
            return -1;
@@ -7038,12 +7038,14 @@ Do you want to stop the program?"),
       break;
 
       /* bcd */
+    /* codespell:ignore-begin.  */
     case 0x27:    /* daa */
     case 0x2f:    /* das */
     case 0x37:    /* aaa */
     case 0x3f:    /* aas */
     case 0xd4:    /* aam */
     case 0xd5:    /* aad */
+    /* codespell:ignore-end.  */
       if (ir.regmap[X86_RECORD_R8_REGNUM])
        {
          ir.addr -= 1;
@@ -7258,7 +7260,7 @@ Do you want to stop the program?"),
            I386_RECORD_FULL_ARCH_LIST_ADD_REG (ir.rm | ir.rex_b);
          else
            {
-             ir.ot = OT_WORD;
+             ir.operand_type = OT_WORD;
              if (i386_record_lea_modrm (&ir))
                return -1;
            }
@@ -7415,7 +7417,7 @@ Do you want to stop the program?"),
            }
          else
            {
-             ir.ot = OT_WORD;
+             ir.operand_type = OT_WORD;
              if (i386_record_lea_modrm (&ir))
                return -1;
            }
@@ -7461,7 +7463,7 @@ Do you want to stop the program?"),
        }
       else
        {
-         ir.ot = ir.dflag ? OT_LONG : OT_WORD;
+         ir.operand_type = ir.dflag ? OT_LONG : OT_WORD;
          if (i386_record_lea_modrm (&ir))
            return -1;
        }
@@ -7670,7 +7672,7 @@ no_support_3dnow_data:
          break;
 
        case 3:    /* stmxcsr */
-         ir.ot = OT_LONG;
+         ir.operand_type = OT_LONG;
          if (i386_record_lea_modrm (&ir))
            return -1;
          break;
@@ -7688,7 +7690,7 @@ no_support_3dnow_data:
       break;
 
     case 0x0fc3:    /* movnti */
-      ir.ot = (ir.dflag == 2) ? OT_QUAD : OT_LONG;
+      ir.operand_type = (ir.dflag == 2) ? OT_QUAD : OT_LONG;
       if (i386_record_modrm (&ir))
        return -1;
       if (ir.mod == 3)
@@ -8086,19 +8088,19 @@ reswitch_prefix_add:
              switch (opcode)
                {
                  case 0x660f3a14:
-                   ir.ot = OT_BYTE;
+                   ir.operand_type = OT_BYTE;
                    break;
                  case 0x660f3a15:
-                   ir.ot = OT_WORD;
+                   ir.operand_type = OT_WORD;
                    break;
                  case 0x660f3a16:
-                   ir.ot = OT_LONG;
+                   ir.operand_type = OT_LONG;
                    break;
                  case 0x660f3a17:
-                   ir.ot = OT_QUAD;
+                   ir.operand_type = OT_QUAD;
                    break;
                  default:
-                   ir.ot = OT_DQUAD;
+                   ir.operand_type = OT_DQUAD;
                    break;
                }
              if (i386_record_lea_modrm (&ir))
@@ -8113,9 +8115,9 @@ reswitch_prefix_add:
          if (ir.mod == 3)
            goto no_support;
          if (opcode == 0x0fe7)
-           ir.ot = OT_QUAD;
+           ir.operand_type = OT_QUAD;
          else
-           ir.ot = OT_DQUAD;
+           ir.operand_type = OT_DQUAD;
          if (i386_record_lea_modrm (&ir))
            return -1;
          break;
@@ -8269,9 +8271,9 @@ reswitch_prefix_add:
          else
            {
              if (ir.dflag == 2)
-               ir.ot = OT_QUAD;
+               ir.operand_type = OT_QUAD;
              else
-               ir.ot = OT_LONG;
+               ir.operand_type = OT_LONG;
              if (i386_record_lea_modrm (&ir))
                return -1;
            }
@@ -8289,7 +8291,7 @@ reswitch_prefix_add:
            }
          else
            {
-             ir.ot = OT_QUAD;
+             ir.operand_type = OT_QUAD;
              if (i386_record_lea_modrm (&ir))
                return -1;
            }
@@ -8316,7 +8318,7 @@ reswitch_prefix_add:
            }
          else
            {
-             ir.ot = OT_QUAD;
+             ir.operand_type = OT_QUAD;
              if (i386_record_lea_modrm (&ir))
                return -1;
            }
index d3a043dc5af4ae53fc2f40ca4bf672004619701e..9356431cbc1828a93b3644ac0e6543d3f41a8f5f 100644 (file)
@@ -539,7 +539,7 @@ mips_show_dr (const char *func, CORE_ADDR addr,
 
 int
 mips_linux_nat_target::can_use_hw_breakpoint (enum bptype type,
-                                             int cnt, int ot)
+                                             int cnt, int othertype)
 {
   int i;
   uint32_t wanted_mask, irw_mask;
index 102a51c85090b8908572d545d8158f8eb3f90496..48fde142d6241a0aef0ef1c9157c7a8810be1e06 100644 (file)
@@ -2044,7 +2044,7 @@ ppc_linux_nat_target::read_description ()
 
 int
 ppc_linux_nat_target::can_use_hw_breakpoint (enum bptype type, int cnt,
-                                            int ot)
+                                            int othertype)
 {
   int total_hw_wp, total_hw_bp;
 
@@ -2076,7 +2076,7 @@ ppc_linux_nat_target::can_use_hw_breakpoint (enum bptype type, int cnt,
     {
       if (total_hw_wp == 0)
        return 0;
-      else if (cnt + ot > total_hw_wp)
+      else if (cnt + othertype > total_hw_wp)
        return -1;
       else
        return 1;
index 0485670c4b2195b311c9a6411f12728f03293260..a337a6b7db97d91c02de536ac54724e5e7eb1171 100644 (file)
@@ -538,7 +538,7 @@ set_next_address (struct gdbarch *gdbarch, CORE_ADDR addr)
 }
 
 /* Optionally print address ADDR symbolically as <SYMBOL+OFFSET> on STREAM,
-   after LEADIN.  Print nothing if no symbolic name is found nearby.
+   after LEAD_IN.  Print nothing if no symbolic name is found nearby.
    Optionally also print source file and line number, if available.
    DO_DEMANGLE controls whether to print a symbol in its native "raw" form,
    or to interpret it as a possible C++ name and convert it back to source
@@ -549,7 +549,7 @@ set_next_address (struct gdbarch *gdbarch, CORE_ADDR addr)
 int
 print_address_symbolic (struct gdbarch *gdbarch, CORE_ADDR addr,
                        struct ui_file *stream,
-                       int do_demangle, const char *leadin)
+                       int do_demangle, const char *lead_in)
 {
   std::string name, filename;
   int unmapped = 0;
@@ -560,7 +560,7 @@ print_address_symbolic (struct gdbarch *gdbarch, CORE_ADDR addr,
                              &offset, &filename, &line, &unmapped))
     return 0;
 
-  gdb_puts (leadin, stream);
+  gdb_puts (lead_in, stream);
   if (unmapped)
     gdb_puts ("<*", stream);
   else
index 5443864ced7f69335a1c661c177161e9ad896c7d..f8c7383cb037261aed3437033b98bc4663fbf19e 100644 (file)
@@ -11853,7 +11853,7 @@ remote_target::region_ok_for_hw_watchpoint (CORE_ADDR addr, int len)
 }
 
 int
-remote_target::can_use_hw_breakpoint (enum bptype type, int cnt, int ot)
+remote_target::can_use_hw_breakpoint (enum bptype type, int cnt, int othertype)
 {
   if (type == bp_hardware_breakpoint)
     {
@@ -11870,7 +11870,7 @@ remote_target::can_use_hw_breakpoint (enum bptype type, int cnt, int ot)
        return 0;
       else if (remote_hw_watchpoint_limit < 0)
        return 1;
-      else if (ot)
+      else if (othertype)
        return -1;
       else if (cnt <= remote_hw_watchpoint_limit)
        return 1;
index ddb3e74b2c65796590ea6240bbb4e860a9fbe859..cd61e985393be197d7f77110ac37dd99fe6d4b9c 100644 (file)
@@ -167,9 +167,9 @@ make_serial_event (void)
 int
 serial_event_fd (struct serial_event *event)
 {
-  struct serial *ser = (struct serial *) event;
+  struct serial *serial = (struct serial *) event;
 
-  return ser->fd;
+  return serial->fd;
 }
 
 /* See ser-event.h.  */
@@ -177,8 +177,8 @@ serial_event_fd (struct serial_event *event)
 void
 serial_event_set (struct serial_event *event)
 {
-  struct serial *ser = (struct serial *) event;
-  struct serial_event_state *state = (struct serial_event_state *) ser->state;
+  struct serial *serial = (struct serial *) event;
+  struct serial_event_state *state = (struct serial_event_state *) serial->state;
 #ifndef USE_WIN32API
   char c = '+';                /* Anything.  */
 
@@ -193,7 +193,7 @@ serial_event_set (struct serial_event *event)
 void
 serial_event_clear (struct serial_event *event)
 {
-  struct serial *ser = (struct serial *) event;
+  struct serial *serial = (struct serial *) event;
 #ifndef USE_WIN32API
   int r;
 
@@ -201,11 +201,11 @@ serial_event_clear (struct serial_event *event)
     {
       char c;
 
-      r = gdb::read (ser->fd, &c, 1);
+      r = gdb::read (serial->fd, &c, 1);
     }
   while (r > 0);
 #else
-  struct serial_event_state *state = (struct serial_event_state *) ser->state;
+  struct serial_event_state *state = (struct serial_event_state *) serial->state;
   ResetEvent (state->event);
 #endif
 }
index 1aaaf446a87323db381fe9e553c6f58d851751bb..b38362e6fccebfee56fbf6fb2b356679c9fc7f9c 100644 (file)
@@ -4944,8 +4944,8 @@ global_symbol_searcher::search () const
         This is just a courtesy to make the matching less sensitive
         to how many spaces the user leaves between 'operator'
         and <TYPENAME> or <OPERATOR>.  */
-      const char *opend;
-      const char *opname = operator_chars (symbol_name_regexp, &opend);
+      const char *op_end;
+      const char *opname = operator_chars (symbol_name_regexp, &op_end);
 
       if (*opname)
        {
index 1ee782b242abff5c82e627dadbc127a405e5e937..3399b8c3303ec52d076561cf107ef321865c8396 100644 (file)
@@ -2310,14 +2310,14 @@ windows_nat_target::detach (inferior *inf, int from_tty)
     {
       if (thr.internal_state () != THREAD_INT_RUNNING)
        {
-         windows_thread_info *wth = windows_process->find_thread (thr.ptid);
+         windows_thread_info *w_th = windows_process->find_thread (thr.ptid);
          gdb_signal signo = get_detach_signal (this, thr.ptid);
 
-         if (signo != wth->last_sig
+         if (signo != w_th->last_sig
              || (signo != GDB_SIGNAL_0 && !signal_pass_state (signo)))
            signo = GDB_SIGNAL_0;
 
-         DWORD cstatus = prepare_resume (wth, &thr, 0, signo);
+         DWORD cstatus = prepare_resume (w_th, &thr, 0, signo);
 
          if (!m_continued && thr.ptid == get_last_debug_event_ptid ())
            continue_status = cstatus;
index cbfe026b23026b5b83bbca4195080494c4e4bb6c..cbe5429fd8454ade94797cf138ae3e93d5e867d7 100644 (file)
@@ -321,7 +321,7 @@ private:
   DWORD continue_status_for_event_detaching
     (const DEBUG_EVENT &event, size_t *reply_later_events_left = nullptr);
 
-  DWORD prepare_resume (windows_thread_info *wth,
+  DWORD prepare_resume (windows_thread_info *th,
                        thread_info *tp,
                        int step, gdb_signal sig);
 
index 3b70678b16732f23d6e258fb2d8a6f4bb242f366..8641915e8aa100550db492c73ddd8e404980dfe6 100644 (file)
@@ -2330,7 +2330,7 @@ call0_track_op (struct gdbarch *gdbarch, xtensa_c0reg_t dst[], xtensa_c0reg_t sr
              If 0, avoids infinite run-on in corrupt code memory by bounding
              the scan to the end of the function if that can be determined.
       nregs   Number of general registers to track.
-   InOut args:
+   In/Out args:
       cache   Xtensa frame cache.
 
       Note that these may produce useful results even if decoding fails