Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [COMMIT] Fix decoding CIE's in DWARF frame info
@ 2004-11-05 15:43 Mark Kettenis
  2004-11-05 17:00 ` Andrew Cagney
  0 siblings, 1 reply; 11+ messages in thread
From: Mark Kettenis @ 2004-11-05 15:43 UTC (permalink / raw)
  To: gdb-patches

The old code didn't take into account that the encoding used to
specify the personality routine in the augmentation could be
DW_PE_EH_aligned.

Fixed by the attach patch.

Committed to mainline.  I'll commit this to the branch later today.

Cheers,

Mark


Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.6577
diff -u -p -r1.6577 ChangeLog
--- ChangeLog	5 Nov 2004 08:53:18 -0000	1.6577
+++ ChangeLog	5 Nov 2004 15:12:42 -0000
@@ -1,3 +1,8 @@
+2004-11-05  Mark Kettenis  <kettenis@jive.nl>
+
+	* dwarf2-frame.c (decode_frame_entry_1): Correctly skip
+	personality routine in a CIE augmentation.
+
 2004-11-05  Felix Lee  <felix+log1@specifixinc.com>
 
 	* stack.c (set_current_sal_from_frame): New function.
Index: dwarf2-frame.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2-frame.c,v
retrieving revision 1.41
diff -u -p -r1.41 dwarf2-frame.c
--- dwarf2-frame.c	4 Nov 2004 21:15:15 -0000	1.41
+++ dwarf2-frame.c	5 Nov 2004 15:12:42 -0000
@@ -1381,7 +1381,9 @@ decode_frame_entry_1 (struct comp_unit *
 	  else if (*augmentation == 'P')
 	    {
 	      /* Skip.  */
-	      buf += size_of_encoded_value (*buf++);
+	      unsigned char encoding = *buf++;
+	      read_encoded_value (unit, encoding, buf, &bytes_read);
+	      buf += bytes_read;
 	      augmentation++;
 	    }
 


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-11-05 22:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-05 15:43 [COMMIT] Fix decoding CIE's in DWARF frame info Mark Kettenis
2004-11-05 17:00 ` Andrew Cagney
2004-11-05 18:54   ` Mark Kettenis
2004-11-05 19:12     ` Daniel Jacobowitz
2004-11-05 20:37       ` Mark Kettenis
2004-11-05 20:41         ` Daniel Jacobowitz
2004-11-05 20:53           ` Mark Kettenis
2004-11-05 21:22     ` Andrew Cagney
2004-11-05 21:25       ` Daniel Jacobowitz
2004-11-05 22:00         ` Mark Kettenis
2004-11-05 22:11         ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox