From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30591 invoked by alias); 5 Nov 2004 15:43:29 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 30562 invoked from network); 5 Nov 2004 15:43:26 -0000 Received: from unknown (HELO server7.nfra.nl) (192.87.1.57) by sourceware.org with SMTP; 5 Nov 2004 15:43:26 -0000 Received: from juw15.nfra.nl [10.87.8.15] by server7.nfra.nl; Fri, 05 Nov 2004 16:42:38 +0100 Received: from juw15.nfra.nl (localhost [127.0.0.1]) by juw15.nfra.nl (8.12.2+Sun/8.11.1) with ESMTP id iA5Fh2Cu020636 for ; Fri, 5 Nov 2004 16:43:02 +0100 (CET) Received: (from kettenis@localhost) by juw15.nfra.nl (8.12.2+Sun/8.12.2/Submit) id iA5Fh1nK020633; Fri, 5 Nov 2004 16:43:01 +0100 (CET) Date: Fri, 05 Nov 2004 15:43:00 -0000 Message-Id: <200411051543.iA5Fh1nK020633@juw15.nfra.nl> From: Mark Kettenis To: gdb-patches@sources.redhat.com Subject: [COMMIT] Fix decoding CIE's in DWARF frame info X-SW-Source: 2004-11/txt/msg00077.txt.bz2 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 + + * dwarf2-frame.c (decode_frame_entry_1): Correctly skip + personality routine in a CIE augmentation. + 2004-11-05 Felix Lee * 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++; }