gdb: fix tab after space indentation issues
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 27 May 2021 19:18:49 +0000 (15:18 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 27 May 2021 19:18:49 +0000 (15:18 -0400)
I spotted some indentation issues where we had some spaces followed by
tabs at beginning of line, that I wanted to fix.  So while at it, I did
a quick grep to find and fix all I could find.

gdb/ChangeLog:

* Fix tab after space indentation issues throughout.

Change-Id: I1acb414dd9c593b474ae2b8667496584df4316fd

46 files changed:
gdb/ChangeLog
gdb/ada-lang.c
gdb/aix-thread.c
gdb/amd64-tdep.c
gdb/amd64-windows-tdep.c
gdb/arm-tdep.c
gdb/breakpoint.c
gdb/coffread.c
gdb/dbxread.c
gdb/dwarf2/index-write.c
gdb/frv-linux-tdep.c
gdb/gnu-nat.h
gdb/hppa-tdep.c
gdb/i386-fbsd-nat.c
gdb/i386-linux-tdep.h
gdb/i386-tdep.c
gdb/infcmd.c
gdb/infrun.c
gdb/macroscope.c
gdb/mi/mi-cmd-disas.c
gdb/mi/mi-cmd-var.c
gdb/mips-netbsd-tdep.c
gdb/mips-tdep.c
gdb/nat/linux-namespaces.c
gdb/nat/x86-dregs.c
gdb/nios2-tdep.c
gdb/nto-procfs.c
gdb/p-lang.c
gdb/ppc-sysv-tdep.c
gdb/printcmd.c
gdb/record-full.c
gdb/regcache.c
gdb/remote.c
gdb/rs6000-tdep.c
gdb/serial.c
gdb/sh-tdep.c
gdb/source.c
gdb/stabsread.c
gdb/stack.c
gdb/stubs/sh-stub.c
gdb/stubs/sparc-stub.c
gdb/symfile.c
gdb/symtab.c
gdb/tracepoint.c
gdb/windows-nat.c
gdb/xtensa-tdep.c

index fa3940c2c0d7f1e0fda9c0eabc31c99549fdd0ea..03910c0634c1e55eb1a6e962bdb5ba810dac1c6d 100644 (file)
@@ -1,3 +1,7 @@
+2021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * Fix tab after space indentation issues throughout.
+
 2021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * Fix some indentation mistakes throughout.
index f0c1aa2c8a67a6520c43dbad70efcdd2779ad70b..6ed6b65e705b4bb42b5c1662bb01955d9a7204d6 100644 (file)
@@ -2169,9 +2169,9 @@ decode_constrained_packed_array (struct value *arr)
       && ada_is_modular_type (value_type (arr)))
     {
        /* This is a (right-justified) modular type representing a packed
-        array with no wrapper.  In order to interpret the value through
-        the (left-justified) packed array type we just built, we must
-        first left-justify it.  */
+         array with no wrapper.  In order to interpret the value through
+         the (left-justified) packed array type we just built, we must
+         first left-justify it.  */
       int bit_size, bit_pos;
       ULONGEST mod;
 
index d4147466c00763237112566fc159d3fb72bd97a4..0ab4d7ba9b5b4ed086aac6c5ded7e89c68e547cb 100644 (file)
@@ -433,13 +433,13 @@ pdc_read_regs (pthdb_user_t user,
          if (!ptrace64aix (PTT_READ_SPRS, tid, 
                            (unsigned long) &sprs64, 0, NULL))
            memset (&sprs64, 0, sizeof (sprs64));
-         memcpy (&context->msr, &sprs64, sizeof(sprs64));
+         memcpy (&context->msr, &sprs64, sizeof(sprs64));
        }
       else
        {
          if (!ptrace32 (PTT_READ_SPRS, tid, (uintptr_t) &sprs32, 0, NULL))
            memset (&sprs32, 0, sizeof (sprs32));
-         memcpy (&context->msr, &sprs32, sizeof(sprs32));
+         memcpy (&context->msr, &sprs32, sizeof(sprs32));
        }
     }  
   return 0;
index 66a7c02f53403a608122d677f5bd14aeb8df74ee..91305ddeb4495a107f37c846884c658a447e0be2 100644 (file)
@@ -2018,8 +2018,8 @@ amd64_analyze_stack_align (CORE_ADDR pc, CORE_ADDR current_pc,
 
      "andq $-XXX, %rsp" can be either 4 bytes or 7 bytes:
      
-       0x48 0x83 0xe4 0xf0                     andq $-16, %rsp
-       0x48 0x81 0xe4 0x00 0xff 0xff 0xff      andq $-256, %rsp
+       0x48 0x83 0xe4 0xf0                     andq $-16, %rsp
+       0x48 0x81 0xe4 0x00 0xff 0xff 0xff      andq $-256, %rsp
    */
 
   gdb_byte buf[18];
@@ -2182,13 +2182,13 @@ amd64_x32_analyze_stack_align (CORE_ADDR pc, CORE_ADDR current_pc,
 
      "andq $-XXX, %rsp" can be either 4 bytes or 7 bytes:
      
-       0x48 0x83 0xe4 0xf0                     andq $-16, %rsp
-       0x48 0x81 0xe4 0x00 0xff 0xff 0xff      andq $-256, %rsp
+       0x48 0x83 0xe4 0xf0                     andq $-16, %rsp
+       0x48 0x81 0xe4 0x00 0xff 0xff 0xff      andq $-256, %rsp
 
      "andl $-XXX, %esp" can be either 3 bytes or 6 bytes:
      
-       0x83 0xe4 0xf0                  andl $-16, %esp
-       0x81 0xe4 0x00 0xff 0xff 0xff   andl $-256, %esp
+       0x83 0xe4 0xf0                  andl $-16, %esp
+       0x81 0xe4 0x00 0xff 0xff 0xff   andl $-256, %esp
    */
 
   gdb_byte buf[19];
@@ -3342,9 +3342,9 @@ void
 _initialize_amd64_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64, GDB_OSABI_NONE,
-                         amd64_none_init_abi);
+                         amd64_none_init_abi);
   gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x64_32, GDB_OSABI_NONE,
-                         amd64_x32_none_init_abi);
+                         amd64_x32_none_init_abi);
 }
 \f
 
index 4d719d259a1822f12282ba047d5e2da72c3440e3..e95b8330fd671bd1d9f95a85b1978d54d693166a 100644 (file)
@@ -429,17 +429,17 @@ amd64_skip_main_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
       gdb_byte buf[4];
 
       if (target_read_memory (pc + 1, buf, sizeof buf) == 0)
-       {
-         struct bound_minimal_symbol s;
-         CORE_ADDR call_dest;
+       {
+         struct bound_minimal_symbol s;
+         CORE_ADDR call_dest;
 
          call_dest = pc + 5 + extract_signed_integer (buf, 4, byte_order);
-         s = lookup_minimal_symbol_by_pc (call_dest);
-         if (s.minsym != NULL
-             && s.minsym->linkage_name () != NULL
-             && strcmp (s.minsym->linkage_name (), "__main") == 0)
-           pc += 5;
-       }
+         s = lookup_minimal_symbol_by_pc (call_dest);
+         if (s.minsym != NULL
+             && s.minsym->linkage_name () != NULL
+             && strcmp (s.minsym->linkage_name (), "__main") == 0)
+           pc += 5;
+       }
     }
 
   return pc;
index f8da6388047c527ccbabfc7488f397d11a481d5d..857a52a9a5137c5e95d9d2f811d3645802f6d2d1 100644 (file)
@@ -4614,15 +4614,15 @@ displaced_write_reg (regcache *regs, arm_displaced_step_copy_insn_closure *dsc,
 
        case BX_WRITE_PC:
          bx_write_pc (regs, val);
-         break;
+         break;
 
        case LOAD_WRITE_PC:
          load_write_pc (regs, dsc, val);
-         break;
+         break;
 
        case ALU_WRITE_PC:
          alu_write_pc (regs, dsc, val);
-         break;
+         break;
 
        case CANNOT_WRITE_PC:
          warning (_("Instruction wrote to PC in an unexpected way when "
index fd98ded8e7575b9523274cc2b96e005d3c6dfbd8..aa6b348dffde8a6b9d612c0604d248d13b491413 100644 (file)
@@ -785,7 +785,7 @@ set_condition_evaluation_mode (const char *args, int from_tty,
             target.  */
          for (bp_location *loc : all_bp_locations ())
            mark_breakpoint_location_modified (loc);
-       }
+       }
       else
        {
          /* Manually mark non-duplicate locations to synch conditions
@@ -10712,7 +10712,7 @@ watch_command_1 (const char *arg, int accessflag, int from_tty,
          gdbarch *caller_arch = frame_unwind_caller_arch (wp_frame);
          CORE_ADDR caller_pc = frame_unwind_caller_pc (wp_frame);
 
-         scope_breakpoint
+         scope_breakpoint
            = create_internal_breakpoint (caller_arch, caller_pc,
                                          bp_watchpoint_scope,
                                          &momentary_breakpoint_ops);
index b527f934c95f086360db92a5f1bc8038191f2295..0135363bc5a5d98d29bb84f4435d7a3fdc7a2383 100644 (file)
@@ -968,25 +968,25 @@ coff_symtab_read (minimal_symbol_reader &reader,
                   symbol lookup which returned no match.  */
                break;
              }
-           else if (cs->c_secnum == N_ABS)
-             {
-               /* Use the correct minimal symbol type (and don't
-                  relocate) for absolute values.  */
-               ms_type = mst_abs;
-               sec = cs_to_section (cs, objfile);
-               tmpaddr = cs->c_value;
-             }
+           else if (cs->c_secnum == N_ABS)
+             {
+               /* Use the correct minimal symbol type (and don't
+                  relocate) for absolute values.  */
+               ms_type = mst_abs;
+               sec = cs_to_section (cs, objfile);
+               tmpaddr = cs->c_value;
+             }
            else
              {
                asection *bfd_section = cs_to_bfd_section (cs, objfile);
 
                sec = cs_to_section (cs, objfile);
                tmpaddr = cs->c_value;
-               /* Statics in a PE file also get relocated.  */
-               if (cs->c_sclass == C_EXT
-                   || cs->c_sclass == C_THUMBEXTFUNC
-                   || cs->c_sclass == C_THUMBEXT
-                   || (pe_file && (cs->c_sclass == C_STAT)))
+               /* Statics in a PE file also get relocated.  */
+               if (cs->c_sclass == C_EXT
+                   || cs->c_sclass == C_THUMBEXTFUNC
+                   || cs->c_sclass == C_THUMBEXT
+                   || (pe_file && (cs->c_sclass == C_STAT)))
                  offset = objfile->section_offsets[sec];
 
                if (bfd_section->flags & SEC_CODE)
index 5cf77e9c08a10aeecbe5a9ea84ac761dc55b661c..cf35880b509b48735804a9e861ad3d9232037717 100644 (file)
@@ -1434,10 +1434,10 @@ read_dbx_symtab (minimal_symbol_reader &reader,
          if (!p)
            continue;           /* Not a debugging symbol.   */
 
-         sym_len = 0;
+         sym_len = 0;
          sym_name = NULL;      /* pacify "gcc -Werror" */
-         if (psymtab_language == language_cplus)
-           {
+         if (psymtab_language == language_cplus)
+           {
              std::string name (namestring, p - namestring);
              gdb::unique_xmalloc_ptr<char> new_name
                = cp_canonicalize_string (name.c_str ());
@@ -1449,11 +1449,11 @@ read_dbx_symtab (minimal_symbol_reader &reader,
                }
            }
 
-         if (sym_len == 0)
-           {
-             sym_name = namestring;
-             sym_len = p - namestring;
-           }
+         if (sym_len == 0)
+           {
+             sym_name = namestring;
+             sym_len = p - namestring;
+           }
 
          /* Main processing section for debugging symbols which
             the initial read through the symbol tables needs to worry
@@ -2400,10 +2400,10 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, const char *name,
          struct block *block;
 
          if (outermost_context_p ())
-           {
+           {
              lbrac_mismatch_complaint (symnum);
-             break;
-           }
+             break;
+           }
 
          /* The following check is added before recording line 0 at
             end of function so as to handle hand-generated stabs
index 8cdfac7980592c934c33492d92bb6337b7eeb83d..4b78add0a5af84f0eb61d57654a0215deb916e79 100644 (file)
@@ -1649,7 +1649,7 @@ struct index_wip_file
                  const char *suffix)
   {
     filename = (std::string (dir) + SLASH_STRING + basename
-               + suffix);
+               + suffix);
 
     filename_temp = make_temp_filename (filename);
 
index c1f1027fbeee48fa140102aca6182deb960cde90..098df173c087c2d80bc45fcb7a0c83e9f3d81023 100644 (file)
@@ -200,19 +200,19 @@ frv_linux_sigcontext_reg_addr (struct frame_info *this_frame, int regno,
       else if (tramp_type == RT_SIGTRAMP)
        {
          /* For a realtime sigtramp frame, SP + 12 contains a pointer
-            to a ucontext struct.  The ucontext struct contains a
-            sigcontext struct starting 24 bytes in.  (The offset of
-            uc_mcontext within struct ucontext is derived as follows: 
-            stack_t is a 12-byte struct and struct sigcontext is
-            8-byte aligned.  This gives an offset of 8 + 12 + 4 (for
-            padding) = 24.)  */
+            to a ucontext struct.  The ucontext struct contains a
+            sigcontext struct starting 24 bytes in.  (The offset of
+            uc_mcontext within struct ucontext is derived as follows: 
+            stack_t is a 12-byte struct and struct sigcontext is
+            8-byte aligned.  This gives an offset of 8 + 12 + 4 (for
+            padding) = 24.)  */
          if (target_read_memory (sp + 12, buf, sizeof buf) != 0)
            {
              warning (_("Can't read realtime sigtramp frame."));
              return 0;
            }
          sc_addr = extract_unsigned_integer (buf, sizeof buf, byte_order);
-         sc_addr += 24;
+         sc_addr += 24;
        }
       else
        internal_error (__FILE__, __LINE__, _("not a signal trampoline"));
index 962fee1851136d168e958910fef33e0150cbc10a..1773aa336075ff8b048e313ac652b2d2d3f1c892 100644 (file)
@@ -165,8 +165,8 @@ private:
   void inf_validate_task_sc (struct inf *inf);
   void inf_restore_exc_ports (struct inf *inf);
   void inf_set_threads_resume_sc (struct inf *inf,
-                               struct proc *run_thread,
-                               int run_others);
+                                 struct proc *run_thread,
+                                 int run_others);
   int inf_set_threads_resume_sc_for_signal_thread (struct inf *inf);
   void inf_resume (struct inf *inf);
   void inf_set_step_thread (struct inf *inf, struct proc *proc);
index 70a518ed1020077b2c840255d7a9f58d4d4ffe7d..21e58f3c392603e037d20a57227a1557f21bb2a9 100644 (file)
@@ -2156,9 +2156,9 @@ hppa_frame_cache (struct frame_info *this_frame, void **this_cache)
      if (get_frame_pc (this_frame) >= prologue_end
         && (u->Save_SP || u->alloca_frame) && fp != 0)
       {
-       cache->base = fp;
+       cache->base = fp;
  
-       if (hppa_debug)
+       if (hppa_debug)
          fprintf_unfiltered (gdb_stdlog, " (base=%s) [frame pointer]",
                              paddress (gdbarch, cache->base));
       }
@@ -2976,7 +2976,7 @@ hppa_skip_trampoline_code (struct frame_info *frame, CORE_ADDR pc)
       if (in_plt_section (pc))
        {
          /* Sanity check: are we pointing to the PLT stub?  */
-         if (!hppa_match_insns (gdbarch, pc, hppa_plt_stub, insn))
+         if (!hppa_match_insns (gdbarch, pc, hppa_plt_stub, insn))
            {
              warning (_("Cannot resolve PLT stub at %s."),
                       paddress (gdbarch, pc));
index 76c760940a08262d14eb060e3999185f9f78dc4b..f15fd625b121ffa44ec870b9cc19b2d200ba86f3 100644 (file)
@@ -73,14 +73,14 @@ i386_fbsd_nat_target::resume (ptid_t ptid, int step, enum gdb_signal signal)
       ULONGEST eflags;
 
       /* Workaround for a bug in FreeBSD.  Make sure that the trace
-        flag is off when doing a continue.  There is a code path
-        through the kernel which leaves the flag set when it should
-        have been cleared.  If a process has a signal pending (such
-        as SIGALRM) and we do a PT_STEP, the process never really has
-        a chance to run because the kernel needs to notify the
-        debugger that a signal is being sent.  Therefore, the process
-        never goes through the kernel's trap() function which would
-        normally clear it.  */
+        flag is off when doing a continue.  There is a code path
+        through the kernel which leaves the flag set when it should
+        have been cleared.  If a process has a signal pending (such
+        as SIGALRM) and we do a PT_STEP, the process never really has
+        a chance to run because the kernel needs to notify the
+        debugger that a signal is being sent.  Therefore, the process
+        never goes through the kernel's trap() function which would
+        normally clear it.  */
 
       regcache_cooked_read_unsigned (regcache, I386_EFLAGS_REGNUM,
                                     &eflags);
index f1de4ccbb1c9d353cb0ae724be5ebb23f7b05403..7d7b464f8d9bb4c60431bb890fee83fadcff0d33 100644 (file)
@@ -47,7 +47,7 @@ extern void i386_linux_report_signal_info (struct gdbarch *gdbarch,
 extern const struct target_desc *i386_linux_read_description (uint64_t xcr0);
 
 /* Format of XSAVE extended state is:
-       struct
+       struct
        {
          fxsave_bytes[0..463]
          sw_usable_bytes[464..511]
index 7f9405ce3dd46c8dfc1fbca97e0212a03ed60936..973085ef3370d5d6be52d357803edae2c188dc4f 100644 (file)
@@ -1276,8 +1276,8 @@ i386_analyze_stack_align (CORE_ADDR pc, CORE_ADDR current_pc,
 
      "andl $-XXX, %esp" can be either 3 bytes or 6 bytes:
      
-       0x83 0xe4 0xf0                  andl $-16, %esp
-       0x81 0xe4 0x00 0xff 0xff 0xff   andl $-256, %esp
+       0x83 0xe4 0xf0                  andl $-16, %esp
+       0x81 0xe4 0x00 0xff 0xff 0xff   andl $-256, %esp
    */
 
   gdb_byte buf[14];
@@ -1941,20 +1941,20 @@ i386_skip_main_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
       gdb_byte buf[4];
 
       if (target_read_code (pc + 1, buf, sizeof buf) == 0)
-       {
+       {
          /* Make sure address is computed correctly as a 32bit
             integer even if CORE_ADDR is 64 bit wide.  */
-         struct bound_minimal_symbol s;
-         CORE_ADDR call_dest;
+         struct bound_minimal_symbol s;
+         CORE_ADDR call_dest;
 
          call_dest = pc + 5 + extract_signed_integer (buf, 4, byte_order);
          call_dest = call_dest & 0xffffffffU;
-         s = lookup_minimal_symbol_by_pc (call_dest);
-         if (s.minsym != NULL
-             && s.minsym->linkage_name () != NULL
-             && strcmp (s.minsym->linkage_name (), "__main") == 0)
-           pc += 5;
-       }
+         s = lookup_minimal_symbol_by_pc (call_dest);
+         if (s.minsym != NULL
+             && s.minsym->linkage_name () != NULL
+             && strcmp (s.minsym->linkage_name (), "__main") == 0)
+           pc += 5;
+       }
     }
 
   return pc;
index 3cb05e564c32abc739d296f31a24793a95ca8201..38947ca265e84a4a4333c31a1ca2ee57c22fff31 100644 (file)
@@ -1472,7 +1472,7 @@ get_return_value (struct value *function, struct type *value_type)
      calls are made async, this will likely be made the norm.  */
 
   switch (gdbarch_return_value (gdbarch, function, value_type,
-                               NULL, NULL, NULL))
+                               NULL, NULL, NULL))
     {
     case RETURN_VALUE_REGISTER_CONVENTION:
     case RETURN_VALUE_ABI_RETURNS_ADDRESS:
index 427c694bb7606452d3099c8973ad978428adebb0..e9624d2a9b6e55c5ebd418e0800aa8a03a61c31f 100644 (file)
@@ -7248,7 +7248,7 @@ process_event_stop_test (struct execution_control_state *ecs)
   bool refresh_step_info = true;
   if ((ecs->event_thread->suspend.stop_pc == stop_pc_sal.pc)
       && (ecs->event_thread->current_line != stop_pc_sal.line
-         || ecs->event_thread->current_symtab != stop_pc_sal.symtab))
+         || ecs->event_thread->current_symtab != stop_pc_sal.symtab))
     {
       /* We are at a different line.  */
 
index e2abdd1bdde2a1a1d1035ec8cf09403b710af065..eb1eac20af7363d069a0fd59593c916a88beb455 100644 (file)
@@ -121,8 +121,8 @@ default_macro_scope (void)
         symbol files loaded, then get_current_or_default would raise an
         error.  But `set width' shouldn't raise an error just because
         it can't decide which scope to macro-expand its argument in.  */
-      struct symtab_and_line cursal = 
-                       get_current_source_symtab_and_line ();
+      struct symtab_and_line cursal
+       = get_current_source_symtab_and_line ();
       
       sal.symtab = cursal.symtab;
       sal.line = cursal.line;
index e789f4cbf010ae83b9f94749de5142d7212faf24..e386bacdcf2f2e0f85e27d827f85cb9461ee27d2 100644 (file)
@@ -202,6 +202,6 @@ mi_cmd_disassemble (const char *command, char **argv, int argc)
     }
 
   gdb_disassembly (gdbarch, uiout,
-                  disasm_flags,
+                  disasm_flags,
                   how_many, low, high);
 }
index 61bc169304b12df3fa4eff79c219d97d80f5ae64..38f1cb80b861a32f67e90f20d9449e83c3f8f788 100644 (file)
@@ -701,7 +701,7 @@ varobj_update_one (struct varobj *var, enum print_values print_values,
          break;
        case VAROBJ_INVALID:
          uiout->field_string ("in_scope", "invalid");
-         break;
+         break;
        }
 
       if (r.status != VAROBJ_INVALID)
index 21ab43c462083511ce0c15fe5b4984af5f85cc69..a32ae5e3a29a27157fbc156b36f7244fcac3730e 100644 (file)
@@ -266,7 +266,7 @@ mipsnbsd_get_longjmp_target (struct frame_info *frame, CORE_ADDR *pc)
   jb_addr = get_frame_register_unsigned (frame, MIPS_A0_REGNUM);
 
   if (target_read_memory (jb_addr + NBSD_MIPS_JB_OFFSET (gdbarch), buf,
-                         NBSD_MIPS_JB_ELEMENT_SIZE (gdbarch)))
+                         NBSD_MIPS_JB_ELEMENT_SIZE (gdbarch)))
     return 0;
 
   *pc = extract_unsigned_integer (buf, NBSD_MIPS_JB_ELEMENT_SIZE (gdbarch),
index 31cac9384e9ee4121aad3d03438717fa20ea9d58..dbace1212508d9286f847e5c36c75d18c0f5326e 100644 (file)
@@ -4284,7 +4284,7 @@ heuristic-fence-post' command.\n",
 
        /* On MIPS16, any one of the following is likely to be the
           start of a function:
-          extend save
+          extend save
           save
           entry
           addiu sp,-n
index 801a81b5f8c22b3b5c087727def0c88c39d28daa..0c4fadd49f7b0a0a5518047f1feb368af6e8c0c1 100644 (file)
@@ -771,15 +771,15 @@ mnsh_maybe_mourn_peer (void)
 
 #define mnsh_send_open(helper, filename, flags, mode) \
   mnsh_send_message (helper->sock, MNSH_REQ_OPEN, -1, flags, mode, \
-                    filename, strlen (filename) + 1)
+                    filename, strlen (filename) + 1)
 
 #define mnsh_send_unlink(helper, filename) \
   mnsh_send_message (helper->sock, MNSH_REQ_UNLINK, -1, 0, 0, \
-                    filename, strlen (filename) + 1)
+                    filename, strlen (filename) + 1)
 
 #define mnsh_send_readlink(helper, filename) \
   mnsh_send_message (helper->sock, MNSH_REQ_READLINK, -1, 0, 0, \
-                    filename, strlen (filename) + 1)
+                    filename, strlen (filename) + 1)
 
 /* Receive a message from the helper.  Issue an assertion failure if
    the message isn't a correctly-formatted MNSH_RET_INT.  Set RESULT
index 7ef959be571938bea92cc72a22a8f26a01d60822..b4eb7bf6d27b695e32c129f482ad7940e5980dde 100644 (file)
@@ -252,7 +252,7 @@ Invalid hardware breakpoint type %d in x86_length_and_rw_bits.\n"),
        return (DR_LEN_4 | rw);
       case 8:
        if (TARGET_HAS_DR_LEN_8)
-         return (DR_LEN_8 | rw);
+         return (DR_LEN_8 | rw);
        /* FALL THROUGH */
       default:
        internal_error (__FILE__, __LINE__, _("\
index 5d4ab5dc071271c224488f9445b9a1fb396b66dd..8fd3695da2d251ff9be139c31d75e6c8160fd1cb 100644 (file)
@@ -1375,7 +1375,7 @@ nios2_analyze_prologue (struct gdbarch *gdbarch, const CORE_ADDR start_pc,
          /* ORHI  rb, ra, uimm   (also used for MOVHI) */
          if (rb != 0)
            {
-             value[rb].reg    = (value[ra].reg == 0) ? 0 : -1;
+             value[rb].reg    = (value[ra].reg == 0) ? 0 : -1;
              value[rb].offset = value[ra].offset | (uimm << 16);
            }
        }
index 41b436cfa27fc2b2ff3aeca583cf1b811fcf5e3f..1d21153bb4c0620e95bcaf2941af09302890332b 100644 (file)
@@ -1142,7 +1142,7 @@ nto_procfs_target::mourn_inferior ()
    the string "a b c d", and as output it would fill in argv with
    the four arguments "a", "b", "c", "d".  The only additional
    functionality is simple quoting.  The gdb command:
-       run a "b c d" f
+       run a "b c d" f
    will fill in argv with the three args "a", "b c d", "e".  */
 static void
 breakup_args (char *scratch, char **argv)
index 1d8e9408e54004df4cb30e9009fdf86eed728964..3dcc75a4c83ca1ae94ad82e05234c2cccd3df424 100644 (file)
@@ -109,7 +109,7 @@ pascal_is_string_type (struct type *type,int *length_pos, int *length_size,
            *string_pos = TYPE_FIELD_BITPOS (type, 1) / TARGET_CHAR_BIT;
          if (char_type)
            *char_type = TYPE_TARGET_TYPE (type->field (1).type ());
-         if (arrayname)
+         if (arrayname)
            *arrayname = TYPE_FIELD_NAME (type, 1);
         return 2;
        };
@@ -135,7 +135,7 @@ pascal_is_string_type (struct type *type,int *length_pos, int *length_size,
              if ((*char_type)->code () == TYPE_CODE_ARRAY)
                *char_type = TYPE_TARGET_TYPE (*char_type);
            }
-         if (arrayname)
+         if (arrayname)
            *arrayname = TYPE_FIELD_NAME (type, 2);
         return 3;
        };
index c83d47c258aaf9e3d360e4f668b9ef065f471b39..3abb9877e8031c71c96022eac3214a8fc7d39584 100644 (file)
@@ -1326,7 +1326,7 @@ ppc64_sysv_abi_push_freg (struct gdbarch *gdbarch,
       && type->code () == TYPE_CODE_FLT)
     {
       /* Floats and doubles go in f1 .. f13.  32-bit floats are converted
-        to double first.  */
+        to double first.  */
       if (argpos->regcache && argpos->freg <= 13)
        {
          int regnum = tdep->ppc_fp0_regnum + argpos->freg;
index 7eba2993fb2e4a187e95c23e075b6783eb2e3850..22fa5c074d1c9ad6fab1064901b9c2608a09e1ab 100644 (file)
@@ -508,7 +508,7 @@ print_scalar_formatted (const gdb_byte *valaddr, struct type *type,
        opts.format = 0;
        if (type->is_unsigned ())
          type = builtin_type (gdbarch)->builtin_true_unsigned_char;
-       else
+       else
          type = builtin_type (gdbarch)->builtin_true_char;
 
        value_print (value_from_longest (type, *val_long), stream, &opts);
index e3b8abc4929ce31cb906aa9147fd58709e2e0c88..9e157c6e04892b2db66cd62540b288d5a7295ae2 100644 (file)
@@ -1236,11 +1236,11 @@ record_full_wait_1 (struct target_ops *ops,
 
                      if (!record_full_message_wrapper_safe (regcache,
                                                             GDB_SIGNAL_0))
-                       {
+                       {
                           status->kind = TARGET_WAITKIND_STOPPED;
                           status->value.sig = GDB_SIGNAL_0;
                           break;
-                       }
+                       }
 
                      process_stratum_target *proc_target
                        = current_inferior ()->process_target ();
index 2d50f3efc85a105bf7274ea2e9e0ff6e1bf84320..fde0c612975a34bf89ca97d640250b00ab83b549 100644 (file)
@@ -2102,13 +2102,13 @@ _initialize_regcache ()
 
 #if GDB_SELF_TEST
   selftests::register_test ("get_thread_arch_aspace_regcache",
-                           selftests::get_thread_arch_aspace_regcache_test);
+                           selftests::get_thread_arch_aspace_regcache_test);
   selftests::register_test ("registers_changed_ptid_all",
                            selftests::registers_changed_ptid_all_test);
   selftests::register_test ("registers_changed_ptid_target",
-                           selftests::registers_changed_ptid_target_test);
+                           selftests::registers_changed_ptid_target_test);
   selftests::register_test ("registers_changed_ptid_target_pid",
-                           selftests::registers_changed_ptid_target_pid_test);
+                           selftests::registers_changed_ptid_target_pid_test);
   selftests::register_test ("registers_changed_ptid_target_ptid",
                            selftests::registers_changed_ptid_target_ptid_test);
 
index 9a6dd33634fd9ec0c8e1dc35a9b7bfafe4bb90ba..9b465d77343feee261147b413062e8d67ac12e27 100644 (file)
@@ -9790,7 +9790,7 @@ remote_target::read_frame (gdb::char_vector *buf_p)
          {
            int repeat;
 
-           csum += c;
+           csum += c;
            c = readchar (remote_timeout);
            csum += c;
            repeat = c - ' ' + 3;       /* Compute repeat count.  */
index d45a15c16ca1be6854ea9b829ead0be0bb6e9f6c..ed73f90316ad8484cc235254a60d6ec562340136 100644 (file)
@@ -1872,12 +1872,12 @@ skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR lim_pc,
          continue;
        }
       else if ((op & 0xffff0000) == 0x38210000)
-       {                       /* addi r1,r1,SIMM */
-         fdata->frameless = 0;
-         fdata->offset += SIGNED_SHORT (op);
-         offset = fdata->offset;
-         continue;
-       }
+       {                       /* addi r1,r1,SIMM */
+         fdata->frameless = 0;
+         fdata->offset += SIGNED_SHORT (op);
+         offset = fdata->offset;
+         continue;
+       }
       /* Load up minimal toc pointer.  Do not treat an epilogue restore
         of r31 as a minimal TOC load.  */
       else if (((op >> 22) == 0x20f    ||      /* l r31,... or l r30,...  */
@@ -1890,7 +1890,7 @@ skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR lim_pc,
 
          /* move parameters from argument registers to local variable
             registers */
-       }
+       }
       else if ((op & 0xfc0007fe) == 0x7c000378 &&      /* mr(.)  Rx,Ry */
               (((op >> 21) & 31) >= 3) &&              /* R3 >= Ry >= R10 */
               (((op >> 21) & 31) <= 10) &&
@@ -2081,7 +2081,7 @@ skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR lim_pc,
            }
 
          continue;
-       }
+       }
       /* Store gen register S at (r31+r0).
         Store param on stack when offset from SP bigger than 4 bytes.  */
       /* 000100 sssss 11111 00000 01100100000 */
index 719cd66c08cf7abbb69f1085d91e34db3218da9c..7d1bc535ed94da087b4de1859756cff5ace1609f 100644 (file)
@@ -284,7 +284,7 @@ serial_fdopen_ops (const int fd, const struct serial_ops *ops)
     {
       ops = serial_interface_lookup ("terminal");
       if (!ops)
-       ops = serial_interface_lookup ("hardwire");
+       ops = serial_interface_lookup ("hardwire");
     }
 
   if (!ops)
index 31d912db018dddb6cd85b1a662a2c4e4d9c8d5f6..4dd5d9fbb3085d56ae3a0644a7f1584a0c429fa7 100644 (file)
@@ -1406,8 +1406,8 @@ sh_return_value_nofpu (struct gdbarch *gdbarch, struct value *function,
 {
   struct type *func_type = function ? value_type (function) : NULL;
 
-  if (sh_use_struct_convention_nofpu (
-       sh_is_renesas_calling_convention (func_type), type))
+  if (sh_use_struct_convention_nofpu
+       (sh_is_renesas_calling_convention (func_type), type))
     return RETURN_VALUE_STRUCT_CONVENTION;
   if (writebuf)
     sh_store_return_value_nofpu (type, regcache, writebuf);
index 94e61cc79a60e560908dcb4ba3d8a401d1b86cb8..c993e25a892e0abbcc1d87a4a0eb180b2bb75fd7 100644 (file)
@@ -1322,7 +1322,7 @@ print_source_lines_base (struct symtab *s, int line, int stopline,
            uiout->field_string ("file", symtab_to_filename_for_display (s),
                                 file_name_style.style ());
          if (uiout->is_mi_like_p () || !uiout->test_flags (ui_source_list))
-           {
+           {
              const char *s_fullname = symtab_to_fullname (s);
              char *local_fullname;
 
@@ -1333,7 +1333,7 @@ print_source_lines_base (struct symtab *s, int line, int stopline,
              strcpy (local_fullname, s_fullname);
 
              uiout->field_string ("fullname", local_fullname);
-           }
+           }
 
          uiout->text ("\n");
        }
index d83f4b40a6a2bbf75f950ef1aa1388821b5de416..72cb351d2f8ff380bd04cd46bf279d31e4e7e286 100644 (file)
@@ -3001,7 +3001,7 @@ read_struct_fields (struct stab_field_info *fip, const char **pp,
    the type for the base class, and a terminating semicolon.
 
    A typical example, with two base classes, would be "!2,020,19;0264,21;".
-                                                      ^^ ^ ^ ^  ^ ^  ^
+                                                      ^^ ^ ^ ^  ^ ^  ^
        Baseclass information marker __________________|| | | |  | |  |
        Number of baseclasses __________________________| | | |  | |  |
        Visibility specifiers (2) ________________________| | |  | |  |
index a38fa4d8082769a5846b9d82922545cfa189360d..aa20018ad9f0646471e1964e4d0cf60a9207cbd7 100644 (file)
@@ -2769,7 +2769,7 @@ return_command (const char *retval_exp, int from_tty)
       if (thisfun != NULL)
        return_type = TYPE_TARGET_TYPE (SYMBOL_TYPE (thisfun));
       if (return_type == NULL)
-       {
+       {
          if (retval_expr->first_opcode () != UNOP_CAST
              && retval_expr->first_opcode () != UNOP_CAST_TYPE)
            error (_("Return value type not available for selected "
index 379824c1c98a120543f3651ebde208dbdfd64a33..03a865eeded343be4d1f46b30cfba2575db95a4f 100644 (file)
@@ -418,10 +418,10 @@ retry:
 
       if (ch == '#')
        {
-         ch = getDebugChar ();
-         xmitcsum = hex (ch) << 4;
-         ch = getDebugChar ();
-         xmitcsum += hex (ch);
+         ch = getDebugChar ();
+         xmitcsum = hex (ch) << 4;
+         ch = getDebugChar ();
+         xmitcsum += hex (ch);
 
          if (checksum != xmitcsum)
            {
@@ -437,7 +437,7 @@ retry:
                  putDebugChar (buffer[0]);
                  putDebugChar (buffer[1]);
 
-                 return &buffer[3];
+                 return &buffer[3];
                }
 
              return &buffer[0];
index 24631cebc43e775c9338a2a31c2b2c920e0593b1..acb7743184de10638b1a906b3f22577a772ee2a5 100644 (file)
@@ -204,7 +204,7 @@ window_fine:
 recursive_trap:
        st      %l5, [%lo(in_trap_handler) + %l4]
        sub     %sp,(16+1+6+1+72)*4,%sp ! Make room for input & locals
-                                       ! + hidden arg + arg spill
+                                       ! + hidden arg + arg spill
                                        ! + doubleword alignment
                                        ! + registers[72] local var
 
index b2034c6e0c3605a6a598980e980a3fccebeb4c90..5ae3093095cc69866c200e7e011a5f14271beec2 100644 (file)
@@ -415,7 +415,7 @@ relative_addr_info_to_section_offsets (section_offsets &section_offsets,
 
       osp = &addrs[i];
       if (osp->sectindex == -1)
-       continue;
+       continue;
 
       /* Record all sections in offsets.  */
       /* The section_offsets in the objfile are here filled in using
index cacf2d3c5553a7788df13c1c2e0d6a15120959a0..5ad1c8a817db62ea0421770d852f66ebee3928f4 100644 (file)
@@ -1609,7 +1609,7 @@ maintenance_print_symbol_cache_statistics (const char *args, int from_tty)
       /* If the cache hasn't been created yet, avoid creating one.  */
       cache = symbol_cache_key.get (pspace);
       if (cache == NULL)
-       printf_filtered ("  empty, no stats available\n");
+       printf_filtered ("  empty, no stats available\n");
       else
        symbol_cache_stats (cache);
     }
index f88968afbcfc5d13b43bd3cea8dde9c999fbe1b5..83a32ec8252d0156fdb911ed2922b9a2ce95bcb4 100644 (file)
@@ -2388,7 +2388,7 @@ tfind_line_command (const char *args, int from_tty)
   if (sal.line > 0 && find_line_pc_range (sal, &start_pc, &end_pc))
     {
       if (start_pc == end_pc)
-       {
+       {
          printf_filtered ("Line %d of \"%s\"",
                           sal.line,
                           symtab_to_filename_for_display (sal.symtab));
@@ -2403,9 +2403,9 @@ tfind_line_command (const char *args, int from_tty)
              && start_pc != end_pc)
            printf_filtered ("Attempting to find line %d instead.\n",
                             sal.line);
-         else
+         else
            error (_("Cannot find a good line."));
-       }
+       }
       }
     else
       {
index 22f8b7a2028aa97023fe95080fa18f3a85bbef35..05d95ea7d6ad8b862a625d17af4029a12fb357aa 100644 (file)
@@ -2600,7 +2600,7 @@ windows_nat_target::create_inferior (const char *exec_file,
     {
       sh = get_shell ();
       if (cygwin_conv_path (CCP_POSIX_TO_WIN_W, sh, shell, __PMAX) < 0)
-       error (_("Error starting executable via shell: %d"), errno);
+       error (_("Error starting executable via shell: %d"), errno);
 #ifdef __USEWIDE
       len = sizeof (L" -c 'exec  '") + mbstowcs (NULL, exec_file, 0)
            + mbstowcs (NULL, allargs, 0) + 2;
index d1c24a16f2a71047bbb179d59c0a918bb5ecbffb..246921253d2b0ba75d54095347bb3fc5857eceb5 100644 (file)
@@ -768,7 +768,7 @@ xtensa_coprocessor_register_group (struct reggroup *group)
 static int
 xtensa_register_reggroup_p (struct gdbarch *gdbarch,
                            int regnum,
-                           struct reggroup *group)
+                           struct reggroup *group)
 {
   xtensa_register_t* reg = &gdbarch_tdep (gdbarch)->regmap[regnum];
   xtensa_register_type_t type = reg->type;
@@ -2852,7 +2852,7 @@ execute_code (struct gdbarch *gdbarch, CORE_ADDR current_pc, CORE_ADDR wb)
                  xtensa_write_register (arreg, a7_saved);
                }
              return xtWindowUnderflow;
-           default: /* Simply skip this insns.  */
+           default: /* Simply skip this insns.  */
              continue;
            }
 
@@ -2965,7 +2965,7 @@ Unable to decode Xtensa Window Interrupt Handler's code."));
 
    int main()
    {   int local_var = 1;
-       ....
+       ....
    }
 
    because, for this source code, both Xtensa compilers will generate two
This page took 0.079063 seconds and 4 git commands to generate.