* dwarf2-frame.c (execute_cfa_program): Mark register as
authorMark Kettenis <kettenis@gnu.org>
Wed, 5 Nov 2003 23:32:17 +0000 (23:32 +0000)
committerMark Kettenis <kettenis@gnu.org>
Wed, 5 Nov 2003 23:32:17 +0000 (23:32 +0000)
REG_SAVED_REG for DW_CFA_register opcode.

gdb/ChangeLog
gdb/dwarf2-frame.c

index c07c1f837bff83a19b4ff5974250325f54ffcefa..cd31bd860efa5dcb80d67e35b5ecdf9aff855ce5 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-06  Mark Kettenis  <kettenis@gnu.org>
+
+       * dwarf2-frame.c (execute_cfa_program): Mark register as
+       REG_SAVED_REG for DW_CFA_register opcode.
+
 2003-11-05  Mark Kettenis  <kettenis@gnu.org>
 
        * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
index f97a5909454b81673a93d67a8725c872c436b0f2..fa65f25a875df5fda8a716c20d0788a83c9ff8fa 100644 (file)
@@ -383,6 +383,7 @@ execute_cfa_program (unsigned char *insn_ptr, unsigned char *insn_end,
              insn_ptr = read_uleb128 (insn_ptr, insn_end, &reg);
              insn_ptr = read_uleb128 (insn_ptr, insn_end, &utmp);
              dwarf2_frame_state_alloc_regs (&fs->regs, reg + 1);
+             fs->regs.reg[reg].how = REG_SAVED_REG;
              fs->regs.reg[reg].loc.reg = utmp;
              break;