From cbdfc7c029fe3dfed60580245332f53271842eba Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Wed, 5 Nov 2003 23:32:17 +0000 Subject: [PATCH] * dwarf2-frame.c (execute_cfa_program): Mark register as REG_SAVED_REG for DW_CFA_register opcode. --- gdb/ChangeLog | 5 +++++ gdb/dwarf2-frame.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c07c1f837bf..cd31bd860ef 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-11-06 Mark Kettenis + + * dwarf2-frame.c (execute_cfa_program): Mark register as + REG_SAVED_REG for DW_CFA_register opcode. + 2003-11-05 Mark Kettenis * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c index f97a5909454..fa65f25a875 100644 --- a/gdb/dwarf2-frame.c +++ b/gdb/dwarf2-frame.c @@ -383,6 +383,7 @@ execute_cfa_program (unsigned char *insn_ptr, unsigned char *insn_end, insn_ptr = read_uleb128 (insn_ptr, insn_end, ®); 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; -- 2.30.2