register, not the previous frame's.
+2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
+ register, not the previous frame's.
+
2008-06-30 Luis Machado <luisgpm@br.ibm.com>
* source.c (select_source_symtab): Make sure we skip namespace
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
ULONGEST erp;
int ret = 0;
- char buf[4];
if (cris_mode () == cris_mode_guru)
- {
- frame_unwind_register (this_frame, NRP_REGNUM, buf);
- }
+ erp = get_frame_register_unsigned (this_frame, NRP_REGNUM);
else
- {
- frame_unwind_register (this_frame, ERP_REGNUM, buf);
- }
-
- erp = extract_unsigned_integer (buf, 4);
+ erp = get_frame_register_unsigned (this_frame, ERP_REGNUM);
if (erp & 0x1)
{