This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Fix buglet in dwarf2-frame.c:execute_cfa_program
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 6 Nov 2003 00:32:28 +0100 (CET)
- Subject: [PATCH] Fix buglet in dwarf2-frame.c:execute_cfa_program
This one is pretty obvious. So obvious that I'm wondering why it
wasn't there in the first place. Anyway, I checked this in. I don't
think it fixes a serious bug, since it doesn't change anything when
running the testsuite on FreeBSD/amd64. So I'm not adding this to the
6.0 branch at this point.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* dwarf2-frame.c (execute_cfa_program): Mark register as
REG_SAVED_REG for DW_CFA_register opcode.
Index: dwarf2-frame.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2-frame.c,v
retrieving revision 1.17
diff -u -p -r1.17 dwarf2-frame.c
--- dwarf2-frame.c 24 Oct 2003 17:37:03 -0000 1.17
+++ dwarf2-frame.c 5 Nov 2003 23:29:03 -0000
@@ -383,6 +383,7 @@ execute_cfa_program (unsigned char *insn
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;