From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26702 invoked by alias); 23 Jul 2004 17:47:30 -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 26692 invoked from network); 23 Jul 2004 17:47:30 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 23 Jul 2004 17:47:30 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i6NHlTe1007992 for ; Fri, 23 Jul 2004 13:47:29 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i6NHlTa22125 for ; Fri, 23 Jul 2004 13:47:29 -0400 Received: from [172.16.50.80] (vpn50-80.rdu.redhat.com [172.16.50.80]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id i6NHlT9a027701 for ; Fri, 23 Jul 2004 13:47:29 -0400 Subject: [patch] fix typo in dwarf2-frame.c From: "Martin M. Hunt" To: gdb-patches@sources.redhat.com Content-Type: text/plain Organization: Red Hat Inc. Message-Id: <1090604843.3366.1.camel@dragon> Mime-Version: 1.0 Date: Fri, 23 Jul 2004 17:47:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2004-07/txt/msg00329.txt.bz2 Committed. 2004-07-23 Martin Hunt Kevin Buettner * dwarf2-frame.c (execute_cfa_program): Fix typo in which the alignment was being added to the offset instead of multiplied. Index: dwarf2-frame.c =================================================================== RCS file: /cvs/src/src/gdb/dwarf2-frame.c,v retrieving revision 1.36 diff -u -p -r1.36 dwarf2-frame.c --- dwarf2-frame.c 15 Jun 2004 01:04:19 -0000 1.36 +++ dwarf2-frame.c 23 Jul 2004 17:45:10 -0000 @@ -426,7 +426,7 @@ bad CFI data; mismatched DW_CFA_restore_ case DW_CFA_offset_extended_sf: insn_ptr = read_uleb128 (insn_ptr, insn_end, ®); insn_ptr = read_sleb128 (insn_ptr, insn_end, &offset); - offset += fs->data_align; + offset *= fs->data_align; dwarf2_frame_state_alloc_regs (&fs->regs, reg + 1); fs->regs.reg[reg].how = DWARF2_FRAME_REG_SAVED_OFFSET; fs->regs.reg[reg].loc.offset = offset; -- Martin M. Hunt Red Hat Inc.