This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
THUMB_FP vs. ARM_FP
- From: Michael Snyder <msnyder at cygnus dot com>
- To: rearnsha at arm dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 30 Aug 2002 18:31:43 -0700
- Subject: THUMB_FP vs. ARM_FP
By the way, Richard, shouldn't this
*************** arm_init_extra_frame_info (int fromleaf,
*** 1162,1168 ****
callers_sp = read_memory_integer (fi->saved_regs[ARM_SP_REGNUM],
REGISTER_RAW_SIZE (ARM_SP_REGNUM));
! fi->extra_info->framereg = ARM_FP_REGNUM;
fi->extra_info->framesize = callers_sp - sp;
fi->extra_info->frameoffset = fi->frame - sp;
}
...be something like this?
--- 1162,1171 ----
callers_sp = read_memory_integer (fi->saved_regs[ARM_SP_REGNUM],
REGISTER_RAW_SIZE (ARM_SP_REGNUM));
! if (arm_pc_is_thumb (fi->pc))
! fi->extra_info->framereg = THUMB_FP_REGNUM;
! else
! fi->extra_info->framereg = ARM_FP_REGNUM;
fi->extra_info->framesize = callers_sp - sp;
fi->extra_info->frameoffset = fi->frame - sp;
}