Index: gdb/gdbserver/linux-sparc-low.c |
diff --git a/gdb/gdbserver/linux-sparc-low.c b/gdb/gdbserver/linux-sparc-low.c |
index 834f63f4f7861edc7b8eea610a85d1102cd26a01..78d5409fb552e406de612b50ad0d6759c675aac2 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 |
@@ -281,8 +285,10 @@ struct linux_target_ops the_low_target = { |
sparc_num_regs, |
/* No regmap needs to be provided since this impl. doesn't use USRREGS. */ |
NULL, |
+ NULL, |
sparc_cannot_fetch_register, |
sparc_cannot_store_register, |
+ NULL, /* fetch_register */ |
sparc_get_pc, |
/* No sparc_set_pc is needed. */ |
NULL, |