summaryrefslogtreecommitdiff
path: root/gdbserver
diff options
context:
space:
mode:
Diffstat (limited to 'gdbserver')
-rw-r--r--gdbserver/ChangeLog15
-rw-r--r--gdbserver/ax.cc4
-rw-r--r--gdbserver/dll.cc2
-rw-r--r--gdbserver/inferiors.h2
-rw-r--r--gdbserver/linux-low.cc2
-rw-r--r--gdbserver/linux-nios2-low.cc2
-rw-r--r--gdbserver/linux-ppc-ipa.cc2
-rw-r--r--gdbserver/linux-ppc-low.cc28
-rw-r--r--gdbserver/linux-x86-low.cc2
-rw-r--r--gdbserver/linux-xtensa-low.cc2
-rw-r--r--gdbserver/regcache.cc4
-rw-r--r--gdbserver/server.cc12
-rw-r--r--gdbserver/tracepoint.cc2
13 files changed, 47 insertions, 32 deletions
diff --git a/gdbserver/ChangeLog b/gdbserver/ChangeLog
index e1ba057a32d..247b5e3d1d8 100644
--- a/gdbserver/ChangeLog
+++ b/gdbserver/ChangeLog
@@ -1,3 +1,18 @@
+2020-11-02 Simon Marchi <simon.marchi@efficios.com>
+
+ * ax.cc: Fix indentation.
+ * dll.cc: Fix indentation.
+ * inferiors.h: Fix indentation.
+ * linux-low.cc: Fix indentation.
+ * linux-nios2-low.cc: Fix indentation.
+ * linux-ppc-ipa.cc: Fix indentation.
+ * linux-ppc-low.cc: Fix indentation.
+ * linux-x86-low.cc: Fix indentation.
+ * linux-xtensa-low.cc: Fix indentation.
+ * regcache.cc: Fix indentation.
+ * server.cc: Fix indentation.
+ * tracepoint.cc: Fix indentation.
+
2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
* acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
diff --git a/gdbserver/ax.cc b/gdbserver/ax.cc
index 361e7a272f7..588ea61089a 100644
--- a/gdbserver/ax.cc
+++ b/gdbserver/ax.cc
@@ -873,7 +873,7 @@ ax_printf (CORE_ADDR fn, CORE_ADDR chan, const char *format,
read_inferior_memory (tem, str, j);
str[j] = 0;
- printf (current_substring, (char *) str);
+ printf (current_substring, (char *) str);
}
break;
@@ -882,7 +882,7 @@ ax_printf (CORE_ADDR fn, CORE_ADDR chan, const char *format,
{
long long val = args[i];
- printf (current_substring, val);
+ printf (current_substring, val);
break;
}
#else
diff --git a/gdbserver/dll.cc b/gdbserver/dll.cc
index fdc7becfbee..5f4f4e77018 100644
--- a/gdbserver/dll.cc
+++ b/gdbserver/dll.cc
@@ -67,7 +67,7 @@ unloaded_dll (const char *name, CORE_ADDR base_addr)
else
{
/* DLL has been found so remove the entry and free associated
- resources. */
+ resources. */
all_dlls.erase (iter);
dlls_changed = 1;
}
diff --git a/gdbserver/inferiors.h b/gdbserver/inferiors.h
index bf2a16f801e..70c09d2c231 100644
--- a/gdbserver/inferiors.h
+++ b/gdbserver/inferiors.h
@@ -119,7 +119,7 @@ find_process (Func func)
next++;
if (func (*cur))
- return *cur;
+ return *cur;
cur = next;
}
diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc
index 06ce2f090ab..db3620e0f6e 100644
--- a/gdbserver/linux-low.cc
+++ b/gdbserver/linux-low.cc
@@ -2736,7 +2736,7 @@ select_event_lwp (struct lwp_info **orig_lp)
if (event_thread == NULL)
{
/* No single-stepping LWP. Select one at random, out of those
- which have had events. */
+ which have had events. */
event_thread = find_thread_in_random ([&] (thread_info *thread)
{
diff --git a/gdbserver/linux-nios2-low.cc b/gdbserver/linux-nios2-low.cc
index 838b0e9d8a6..3f1f13ec06b 100644
--- a/gdbserver/linux-nios2-low.cc
+++ b/gdbserver/linux-nios2-low.cc
@@ -189,7 +189,7 @@ nios2_target::low_breakpoint_at (CORE_ADDR where)
ps_err_e
ps_get_thread_area (struct ps_prochandle *ph,
- lwpid_t lwpid, int idx, void **base)
+ lwpid_t lwpid, int idx, void **base)
{
if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) != 0)
return PS_ERR;
diff --git a/gdbserver/linux-ppc-ipa.cc b/gdbserver/linux-ppc-ipa.cc
index 42d668f7d37..b9dc81e276f 100644
--- a/gdbserver/linux-ppc-ipa.cc
+++ b/gdbserver/linux-ppc-ipa.cc
@@ -219,7 +219,7 @@ get_ipa_tdesc (int idx)
#endif
default:
internal_error (__FILE__, __LINE__,
- "unknown ipa tdesc index: %d", idx);
+ "unknown ipa tdesc index: %d", idx);
#ifdef __powerpc64__
return tdesc_powerpc_64l;
#else
diff --git a/gdbserver/linux-ppc-low.cc b/gdbserver/linux-ppc-low.cc
index 337d555aee7..e5976f6f8c6 100644
--- a/gdbserver/linux-ppc-low.cc
+++ b/gdbserver/linux-ppc-low.cc
@@ -249,8 +249,8 @@ ppc_target::low_collect_ptrace_register (regcache *regcache, int regno,
else if (__BYTE_ORDER == __BIG_ENDIAN)
{
/* Big-endian values sit at the right end of the buffer. In case of
- registers whose sizes are smaller than sizeof (long), we must use a
- padding to access them correctly. */
+ registers whose sizes are smaller than sizeof (long), we must use a
+ padding to access them correctly. */
int size = register_size (regcache->tdesc, regno);
if (size < sizeof (long))
@@ -274,8 +274,8 @@ ppc_target::low_supply_ptrace_register (regcache *regcache, int regno,
else if (__BYTE_ORDER == __BIG_ENDIAN)
{
/* Big-endian values sit at the right end of the buffer. In case of
- registers whose sizes are smaller than sizeof (long), we must use a
- padding to access them correctly. */
+ registers whose sizes are smaller than sizeof (long), we must use a
+ padding to access them correctly. */
int size = register_size (regcache->tdesc, regno);
if (size < sizeof (long))
@@ -1367,12 +1367,12 @@ gen_limm (uint32_t *buf, int reg, uint64_t imm, int is_64)
ori reg, reg, <imm[15:0]> */
p += GEN_LIS (p, reg, ((imm >> 48) & 0xffff));
if (((imm >> 32) & 0xffff) != 0)
- p += GEN_ORI (p, reg, reg, ((imm >> 32) & 0xffff));
+ p += GEN_ORI (p, reg, reg, ((imm >> 32) & 0xffff));
p += GEN_RLDICR (p, reg, reg, 32, 31);
if (((imm >> 16) & 0xffff) != 0)
- p += GEN_ORIS (p, reg, reg, ((imm >> 16) & 0xffff));
+ p += GEN_ORIS (p, reg, reg, ((imm >> 16) & 0xffff));
if ((imm & 0xffff) != 0)
- p += GEN_ORI (p, reg, reg, (imm & 0xffff));
+ p += GEN_ORI (p, reg, reg, (imm & 0xffff));
}
return p - buf;
@@ -1844,8 +1844,8 @@ emit_insns (uint32_t *buf, int n)
| Expand stack as needed.
|
+-
- | Some padding for minimum stack frame and 16-byte alignment.
- | 16 bytes.
+ | Some padding for minimum stack frame and 16-byte alignment.
+ | 16 bytes.
SP +- Back-chain (SP')
initial frame size
@@ -2660,8 +2660,8 @@ static struct emit_ops ppc_emit_ops_impl =
| Expand stack as needed.
|
+-
- | Some padding for minimum stack frame.
- | 112 for ELFv1.
+ | Some padding for minimum stack frame.
+ | 112 for ELFv1.
SP +- Back-chain (SP')
initial frame size
@@ -2753,7 +2753,7 @@ ppc64_emit_epilogue (void)
/* Restore registers. */
"ld 31, -8(1) \n"
"ld 30, -16(1) \n"
- /* Restore LR. */
+ /* Restore LR. */
"ld 0, 16(1) \n"
/* Return 0 for no-error. */
"li 3, 0 \n"
@@ -3386,9 +3386,9 @@ ppc_target::emit_ops ()
if (register_size (regcache->tdesc, 0) == 8)
{
if (is_elfv2_inferior ())
- return &ppc64v2_emit_ops_impl;
+ return &ppc64v2_emit_ops_impl;
else
- return &ppc64v1_emit_ops_impl;
+ return &ppc64v1_emit_ops_impl;
}
#endif
return &ppc_emit_ops_impl;
diff --git a/gdbserver/linux-x86-low.cc b/gdbserver/linux-x86-low.cc
index 65a0c075705..c2830182f9b 100644
--- a/gdbserver/linux-x86-low.cc
+++ b/gdbserver/linux-x86-low.cc
@@ -432,7 +432,7 @@ x86_fill_gregset (struct regcache *regcache, void *buf)
if (register_size (regcache->tdesc, 0) == 4)
{
void *ptr = ((gdb_byte *) buf
- + i386_regmap[find_regno (regcache->tdesc, "eax")]);
+ + i386_regmap[find_regno (regcache->tdesc, "eax")]);
*(int64_t *) ptr = *(int32_t *) ptr;
}
diff --git a/gdbserver/linux-xtensa-low.cc b/gdbserver/linux-xtensa-low.cc
index a666f52e155..431ed5405b6 100644
--- a/gdbserver/linux-xtensa-low.cc
+++ b/gdbserver/linux-xtensa-low.cc
@@ -279,7 +279,7 @@ xtensa_target::low_breakpoint_at (CORE_ADDR where)
ps_err_e
ps_get_thread_area (struct ps_prochandle *ph,
- lwpid_t lwpid, int idx, void **base)
+ lwpid_t lwpid, int idx, void **base)
{
xtensa_elf_gregset_t regs;
diff --git a/gdbserver/regcache.cc b/gdbserver/regcache.cc
index add826b2897..8ae195e0304 100644
--- a/gdbserver/regcache.cc
+++ b/gdbserver/regcache.cc
@@ -437,8 +437,8 @@ regcache_raw_read_unsigned (struct regcache *regcache, int regnum,
if (size > (int) sizeof (ULONGEST))
error (_("That operation is not available on integers of more than"
- "%d bytes."),
- (int) sizeof (ULONGEST));
+ "%d bytes."),
+ (int) sizeof (ULONGEST));
*val = 0;
collect_register (regcache, regnum, val);
diff --git a/gdbserver/server.cc b/gdbserver/server.cc
index 16014539224..95db9807a9a 100644
--- a/gdbserver/server.cc
+++ b/gdbserver/server.cc
@@ -2807,7 +2807,7 @@ resume (struct thread_resume *actions, size_t num_actions)
}
if (cs.last_status.kind != TARGET_WAITKIND_EXITED
- && cs.last_status.kind != TARGET_WAITKIND_SIGNALLED
+ && cs.last_status.kind != TARGET_WAITKIND_SIGNALLED
&& cs.last_status.kind != TARGET_WAITKIND_NO_RESUMED)
current_thread->last_status = cs.last_status;
@@ -2820,8 +2820,8 @@ resume (struct thread_resume *actions, size_t num_actions)
disable_async_io ();
if (cs.last_status.kind == TARGET_WAITKIND_EXITED
- || cs.last_status.kind == TARGET_WAITKIND_SIGNALLED)
- target_mourn_inferior (cs.last_ptid);
+ || cs.last_status.kind == TARGET_WAITKIND_SIGNALLED)
+ target_mourn_inferior (cs.last_ptid);
}
}
@@ -3829,11 +3829,11 @@ captured_main (int argc, char *argv[])
- If --once was specified, we're done.
- If not in extended-remote mode, and we're no longer
- debugging anything, simply exit: GDB has disconnected
- after processing the last process exit.
+ debugging anything, simply exit: GDB has disconnected
+ after processing the last process exit.
- Otherwise, close the connection and reopen it at the
- top of the loop. */
+ top of the loop. */
if (run_once || (!extended_protocol && !target_running ()))
throw_quit ("Quit");
diff --git a/gdbserver/tracepoint.cc b/gdbserver/tracepoint.cc
index 6881f31c0ce..878824481a1 100644
--- a/gdbserver/tracepoint.cc
+++ b/gdbserver/tracepoint.cc
@@ -3242,7 +3242,7 @@ cmd_qtstart (char *packet)
/* Tell IPA about the correct tdesc. */
if (write_inferior_integer (ipa_sym_addrs.addr_ipa_tdesc_idx,
target_get_ipa_tdesc_idx ()))
- error ("Error setting ipa_tdesc_idx variable in lib");
+ error ("Error setting ipa_tdesc_idx variable in lib");
}
/* Start out empty. */