aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-04-04 14:42:15 +0000
committerPedro Alves <palves@redhat.com>2012-04-04 14:42:15 +0000
commit111217b396274acdc08dd70c5f7876dcfc55b2e7 (patch)
treeb398be42734901000d76996c7bdb2528ec167148
parent6199fcc3a2f6fdb377b561a20f57d848cc913151 (diff)
downloadgdb-111217b396274acdc08dd70c5f7876dcfc55b2e7.zip
gdb-111217b396274acdc08dd70c5f7876dcfc55b2e7.tar.gz
gdb-111217b396274acdc08dd70c5f7876dcfc55b2e7.tar.bz2
2012-04-04 Pedro Alves <palves@redhat.com>
* linux-sparc-low.c (sparc_fill_gregset_to_stack) (sparc_store_gregset_from_stack, sparc_store_gregset) (sparc_breakpoint_at): Fix formatting.
-rw-r--r--gdb/gdbserver/ChangeLog6
-rw-r--r--gdb/gdbserver/linux-sparc-low.c26
2 files changed, 21 insertions, 11 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index cd53c66..47d1353 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,9 @@
+2012-04-04 Pedro Alves <palves@redhat.com>
+
+ * linux-sparc-low.c (sparc_fill_gregset_to_stack)
+ (sparc_store_gregset_from_stack, sparc_store_gregset)
+ (sparc_breakpoint_at): Fix formatting.
+
2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
* configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
diff --git a/gdb/gdbserver/linux-sparc-low.c b/gdb/gdbserver/linux-sparc-low.c
index 0460587..78d5409 100644
--- a/gdb/gdbserver/linux-sparc-low.c
+++ b/gdb/gdbserver/linux-sparc-low.c
@@ -119,19 +119,21 @@ sparc_fill_gregset_to_stack (struct regcache *regcache, const void *buf)
int i;
CORE_ADDR addr = 0;
unsigned char tmp_reg_buf[8];
- const int l0_regno = find_regno("l0");
+ const int l0_regno = find_regno ("l0");
const int i7_regno = l0_regno + 15;
/* These registers have to be stored in the stack. */
- memcpy(&addr, ((char *) buf) + sparc_regmap[find_regno("sp")], sizeof(addr));
+ memcpy (&addr,
+ ((char *) buf) + sparc_regmap[find_regno ("sp")],
+ sizeof (addr));
addr += BIAS;
for (i = l0_regno; i <= i7_regno; i++)
{
collect_register (regcache, i, tmp_reg_buf);
- (*the_target->write_memory) (addr, tmp_reg_buf, sizeof(tmp_reg_buf));
- addr += sizeof(tmp_reg_buf);
+ (*the_target->write_memory) (addr, tmp_reg_buf, sizeof (tmp_reg_buf));
+ addr += sizeof (tmp_reg_buf);
}
}
@@ -169,19 +171,21 @@ sparc_store_gregset_from_stack (struct regcache *regcache, const void *buf)
int i;
CORE_ADDR addr = 0;
unsigned char tmp_reg_buf[8];
- const int l0_regno = find_regno("l0");
+ const int l0_regno = find_regno ("l0");
const int i7_regno = l0_regno + 15;
/* These registers have to be obtained from the stack. */
- memcpy(&addr, ((char *) buf) + sparc_regmap[find_regno("sp")], sizeof(addr));
+ memcpy (&addr,
+ ((char *) buf) + sparc_regmap[find_regno ("sp")],
+ sizeof (addr));
addr += BIAS;
for (i = l0_regno; i <= i7_regno; i++)
{
- (*the_target->read_memory) (addr, tmp_reg_buf, sizeof(tmp_reg_buf));
+ (*the_target->read_memory) (addr, tmp_reg_buf, sizeof (tmp_reg_buf));
supply_register (regcache, i, tmp_reg_buf);
- addr += sizeof(tmp_reg_buf);
+ addr += sizeof (tmp_reg_buf);
}
}
@@ -192,7 +196,7 @@ sparc_store_gregset (struct regcache *regcache, const void *buf)
char zerobuf[8];
int range;
- memset (zerobuf, 0, sizeof(zerobuf));
+ memset (zerobuf, 0, sizeof (zerobuf));
for (range = 0; range < N_GREGS_RANGES; range++)
for (i = gregs_ranges[range].regno_start;
@@ -241,9 +245,9 @@ sparc_breakpoint_at (CORE_ADDR where)
{
unsigned char insn[INSN_SIZE];
- (*the_target->read_memory) (where, (unsigned char *) insn, sizeof(insn));
+ (*the_target->read_memory) (where, (unsigned char *) insn, sizeof (insn));
- if (memcmp(sparc_breakpoint, insn, sizeof(insn)) == 0)
+ if (memcmp (sparc_breakpoint, insn, sizeof (insn)) == 0)
return 1;
/* If necessary, recognize more trap instructions here. GDB only