Commit d04b77ac by Daniel Jacobowitz Committed by Daniel Jacobowitz

linux-unwind.h (mips_fallback_frame_state): Adjust offsets for the big-endian 32-bit case.

	* config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
	offsets for the big-endian 32-bit case.

From-SVN: r94888
parent 70406574
2005-02-11 Daniel Jacobowitz <dan@codesourcery.com>
* config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
offsets for the big-endian 32-bit case.
2005-02-11 Joseph S. Myers <joseph@codesourcery.com>
* config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
......
......@@ -86,6 +86,13 @@ mips_fallback_frame_state (struct _Unwind_Context *context,
fs->cfa_reg = STACK_POINTER_REGNUM;
fs->cfa_offset = new_cfa - (_Unwind_Ptr) context->cfa;
#if _MIPS_SIM == _ABIO32 && defined __MIPSEB__
/* On o32 Linux, the register save slots in the sigcontext are
eight bytes. We need the lower half of each register slot,
so slide our view of the structure back four bytes. */
new_cfa -= 4;
#endif
for (i = 0; i < 32; i++) {
fs->regs.reg[i].how = REG_SAVED_OFFSET;
fs->regs.reg[i].loc.offset
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment