* mips-linux-tdep.c: Adjust formatting throughout.
This commit is contained in:
parent
0f900f54b5
commit
7d26658403
2 changed files with 60 additions and 59 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
|
||||||
|
|
||||||
|
* mips-linux-tdep.c: Adjust formatting throughout.
|
||||||
|
|
||||||
2013-05-30 Tom Tromey <tromey@redhat.com>
|
2013-05-30 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
|
* mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
|
||||||
|
|
|
@ -63,8 +63,8 @@ mips_linux_get_longjmp_target (struct frame_info *frame, CORE_ADDR *pc)
|
||||||
|
|
||||||
jb_addr = get_frame_register_unsigned (frame, MIPS_A0_REGNUM);
|
jb_addr = get_frame_register_unsigned (frame, MIPS_A0_REGNUM);
|
||||||
|
|
||||||
if (target_read_memory (jb_addr
|
if (target_read_memory ((jb_addr
|
||||||
+ MIPS_LINUX_JB_PC * MIPS_LINUX_JB_ELEMENT_SIZE,
|
+ MIPS_LINUX_JB_PC * MIPS_LINUX_JB_ELEMENT_SIZE),
|
||||||
buf, gdbarch_ptr_bit (gdbarch) / TARGET_CHAR_BIT))
|
buf, gdbarch_ptr_bit (gdbarch) / TARGET_CHAR_BIT))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -469,7 +469,8 @@ mips64_supply_fpregset (struct regcache *regcache,
|
||||||
if (register_size (gdbarch, gdbarch_fp0_regnum (gdbarch)) == 4)
|
if (register_size (gdbarch, gdbarch_fp0_regnum (gdbarch)) == 4)
|
||||||
for (regi = 0; regi < 32; regi++)
|
for (regi = 0; regi < 32; regi++)
|
||||||
{
|
{
|
||||||
const gdb_byte *reg_ptr = (const gdb_byte *)(*fpregsetp + (regi & ~1));
|
const gdb_byte *reg_ptr
|
||||||
|
= (const gdb_byte *) (*fpregsetp + (regi & ~1));
|
||||||
if ((gdbarch_byte_order (gdbarch) == BFD_ENDIAN_BIG) != (regi & 1))
|
if ((gdbarch_byte_order (gdbarch) == BFD_ENDIAN_BIG) != (regi & 1))
|
||||||
reg_ptr += 4;
|
reg_ptr += 4;
|
||||||
regcache_raw_supply (regcache,
|
regcache_raw_supply (regcache,
|
||||||
|
@ -567,8 +568,7 @@ mips64_fill_fpregset (const struct regcache *regcache,
|
||||||
mips64_fill_fpregset (regcache, fpregsetp,
|
mips64_fill_fpregset (regcache, fpregsetp,
|
||||||
mips_regnum (gdbarch)->fp_control_status);
|
mips_regnum (gdbarch)->fp_control_status);
|
||||||
mips64_fill_fpregset (regcache, fpregsetp,
|
mips64_fill_fpregset (regcache, fpregsetp,
|
||||||
(mips_regnum (gdbarch)
|
mips_regnum (gdbarch)->fp_implementation_revision);
|
||||||
->fp_implementation_revision));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -999,10 +999,10 @@ mips_linux_o32_sigframe_init (const struct tramp_frame *self,
|
||||||
|
|
||||||
for (ireg = 1; ireg < 32; ireg++)
|
for (ireg = 1; ireg < 32; ireg++)
|
||||||
trad_frame_set_reg_addr (this_cache,
|
trad_frame_set_reg_addr (this_cache,
|
||||||
ireg + MIPS_ZERO_REGNUM
|
(ireg + MIPS_ZERO_REGNUM
|
||||||
+ gdbarch_num_regs (gdbarch),
|
+ gdbarch_num_regs (gdbarch)),
|
||||||
regs_base + SIGCONTEXT_REGS
|
(regs_base + SIGCONTEXT_REGS
|
||||||
+ ireg * SIGCONTEXT_REG_SIZE);
|
+ ireg * SIGCONTEXT_REG_SIZE));
|
||||||
|
|
||||||
/* The way that floating point registers are saved, unfortunately,
|
/* The way that floating point registers are saved, unfortunately,
|
||||||
depends on the architecture the kernel is built for. For the r3000 and
|
depends on the architecture the kernel is built for. For the r3000 and
|
||||||
|
@ -1015,24 +1015,22 @@ mips_linux_o32_sigframe_init (const struct tramp_frame *self,
|
||||||
for (ireg = 0; ireg < 32; ireg++)
|
for (ireg = 0; ireg < 32; ireg++)
|
||||||
if ((gdbarch_byte_order (gdbarch) == BFD_ENDIAN_BIG) != (ireg & 1))
|
if ((gdbarch_byte_order (gdbarch) == BFD_ENDIAN_BIG) != (ireg & 1))
|
||||||
trad_frame_set_reg_addr (this_cache,
|
trad_frame_set_reg_addr (this_cache,
|
||||||
ireg + regs->fp0 +
|
ireg + regs->fp0 + gdbarch_num_regs (gdbarch),
|
||||||
gdbarch_num_regs (gdbarch),
|
(sigcontext_base + SIGCONTEXT_FPREGS + 4
|
||||||
sigcontext_base + SIGCONTEXT_FPREGS + 4
|
+ (ireg & ~1) * SIGCONTEXT_REG_SIZE));
|
||||||
+ (ireg & ~1) * SIGCONTEXT_REG_SIZE);
|
|
||||||
else
|
else
|
||||||
trad_frame_set_reg_addr (this_cache,
|
trad_frame_set_reg_addr (this_cache,
|
||||||
ireg + regs->fp0
|
ireg + regs->fp0 + gdbarch_num_regs (gdbarch),
|
||||||
+ gdbarch_num_regs (gdbarch),
|
(sigcontext_base + SIGCONTEXT_FPREGS
|
||||||
sigcontext_base + SIGCONTEXT_FPREGS
|
+ (ireg & ~1) * SIGCONTEXT_REG_SIZE));
|
||||||
+ (ireg & ~1) * SIGCONTEXT_REG_SIZE);
|
|
||||||
|
|
||||||
trad_frame_set_reg_addr (this_cache,
|
trad_frame_set_reg_addr (this_cache,
|
||||||
regs->pc + gdbarch_num_regs (gdbarch),
|
regs->pc + gdbarch_num_regs (gdbarch),
|
||||||
regs_base + SIGCONTEXT_PC);
|
regs_base + SIGCONTEXT_PC);
|
||||||
|
|
||||||
trad_frame_set_reg_addr (this_cache,
|
trad_frame_set_reg_addr (this_cache,
|
||||||
regs->fp_control_status
|
(regs->fp_control_status
|
||||||
+ gdbarch_num_regs (gdbarch),
|
+ gdbarch_num_regs (gdbarch)),
|
||||||
sigcontext_base + SIGCONTEXT_FPCSR);
|
sigcontext_base + SIGCONTEXT_FPCSR);
|
||||||
|
|
||||||
if (regs->dspctl != -1)
|
if (regs->dspctl != -1)
|
||||||
|
@ -1192,25 +1190,24 @@ mips_linux_n32n64_sigframe_init (const struct tramp_frame *self,
|
||||||
|
|
||||||
for (ireg = 1; ireg < 32; ireg++)
|
for (ireg = 1; ireg < 32; ireg++)
|
||||||
trad_frame_set_reg_addr (this_cache,
|
trad_frame_set_reg_addr (this_cache,
|
||||||
ireg + MIPS_ZERO_REGNUM
|
(ireg + MIPS_ZERO_REGNUM
|
||||||
+ gdbarch_num_regs (gdbarch),
|
+ gdbarch_num_regs (gdbarch)),
|
||||||
sigcontext_base + N64_SIGCONTEXT_REGS
|
(sigcontext_base + N64_SIGCONTEXT_REGS
|
||||||
+ ireg * N64_SIGCONTEXT_REG_SIZE);
|
+ ireg * N64_SIGCONTEXT_REG_SIZE));
|
||||||
|
|
||||||
for (ireg = 0; ireg < 32; ireg++)
|
for (ireg = 0; ireg < 32; ireg++)
|
||||||
trad_frame_set_reg_addr (this_cache,
|
trad_frame_set_reg_addr (this_cache,
|
||||||
ireg + regs->fp0
|
ireg + regs->fp0 + gdbarch_num_regs (gdbarch),
|
||||||
+ gdbarch_num_regs (gdbarch),
|
(sigcontext_base + N64_SIGCONTEXT_FPREGS
|
||||||
sigcontext_base + N64_SIGCONTEXT_FPREGS
|
+ ireg * N64_SIGCONTEXT_REG_SIZE));
|
||||||
+ ireg * N64_SIGCONTEXT_REG_SIZE);
|
|
||||||
|
|
||||||
trad_frame_set_reg_addr (this_cache,
|
trad_frame_set_reg_addr (this_cache,
|
||||||
regs->pc + gdbarch_num_regs (gdbarch),
|
regs->pc + gdbarch_num_regs (gdbarch),
|
||||||
sigcontext_base + N64_SIGCONTEXT_PC);
|
sigcontext_base + N64_SIGCONTEXT_PC);
|
||||||
|
|
||||||
trad_frame_set_reg_addr (this_cache,
|
trad_frame_set_reg_addr (this_cache,
|
||||||
regs->fp_control_status
|
(regs->fp_control_status
|
||||||
+ gdbarch_num_regs (gdbarch),
|
+ gdbarch_num_regs (gdbarch)),
|
||||||
sigcontext_base + N64_SIGCONTEXT_FPCSR);
|
sigcontext_base + N64_SIGCONTEXT_FPCSR);
|
||||||
|
|
||||||
trad_frame_set_reg_addr (this_cache,
|
trad_frame_set_reg_addr (this_cache,
|
||||||
|
|
Loading…
Reference in a new issue