[PATCH] Fix buglet in dwarf2-frame.c:execute_cfa_program

Mark Kettenis kettenis@chello.nl
Wed Nov 5 23:32:00 GMT 2003


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, &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;
 



More information about the Gdb-patches mailing list