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);
}
}
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);
}
}
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;
{
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