aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc-ravenscar-thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/sparc-ravenscar-thread.c')
-rw-r--r--gdb/sparc-ravenscar-thread.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/gdb/sparc-ravenscar-thread.c b/gdb/sparc-ravenscar-thread.c
index 3455677..d28979e 100644
--- a/gdb/sparc-ravenscar-thread.c
+++ b/gdb/sparc-ravenscar-thread.c
@@ -61,7 +61,7 @@ static const int sparc_register_offsets[] =
static void
supply_register_at_address (struct regcache *regcache, int regnum,
- CORE_ADDR register_addr)
+ CORE_ADDR register_addr)
{
struct gdbarch *gdbarch = regcache->arch ();
int buf_size = register_size (gdbarch, regnum);
@@ -125,19 +125,19 @@ sparc_ravenscar_ops::fetch_registers (struct regcache *regcache, int regnum)
for (current_regnum = 0; current_regnum < num_regs; current_regnum ++)
{
if (register_in_thread_descriptor_p (current_regnum))
- {
- current_address = thread_descriptor_address
- + sparc_register_offsets [current_regnum];
- supply_register_at_address (regcache, current_regnum,
- current_address);
- }
+ {
+ current_address = thread_descriptor_address
+ + sparc_register_offsets [current_regnum];
+ supply_register_at_address (regcache, current_regnum,
+ current_address);
+ }
else if (register_on_stack_p (current_regnum))
- {
- current_address = stack_address
- + sparc_register_offsets [current_regnum];
- supply_register_at_address (regcache, current_regnum,
- current_address);
- }
+ {
+ current_address = stack_address
+ + sparc_register_offsets [current_regnum];
+ supply_register_at_address (regcache, current_regnum,
+ current_address);
+ }
}
}
@@ -158,7 +158,7 @@ sparc_ravenscar_ops::store_registers (struct regcache *regcache, int regnum)
else if (register_on_stack_p (regnum))
{
regcache_cooked_read_unsigned (regcache, SPARC_SP_REGNUM,
- &register_address);
+ &register_address);
register_address += sparc_register_offsets [regnum];
}
else
@@ -166,8 +166,8 @@ sparc_ravenscar_ops::store_registers (struct regcache *regcache, int regnum)
regcache->raw_collect (regnum, buf);
write_memory (register_address,
- buf,
- buf_size);
+ buf,
+ buf_size);
}
static struct sparc_ravenscar_ops sparc_ravenscar_ops;