From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30416 invoked by alias); 15 May 2002 15:12:23 -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 30407 invoked from network); 15 May 2002 15:12:21 -0000 Received: from unknown (HELO maxipes.logix.cz) (217.11.251.37) by sources.redhat.com with SMTP; 15 May 2002 15:12:21 -0000 Received: (qmail 11357 invoked from network); 15 May 2002 15:12:20 -0000 Received: from styx.suse.cz (HELO suse.cz) (hajzl@213.210.157.162) by broucek.logix.cz with SMTP; 15 May 2002 15:12:20 -0000 Message-ID: <3CE27AD4.4090406@suse.cz> Date: Wed, 15 May 2002 08:12:00 -0000 From: Michal Ludvig Organization: SuSE CR User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510 X-Accept-Language: cs, cz, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [RFA] dwarf2cfi.c fix for shlibs Content-Type: multipart/mixed; boundary="------------040909060707030502050001" X-SW-Source: 2002-05/txt/msg00605.txt.bz2 This is a multi-part message in MIME format. --------------040909060707030502050001 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Content-length: 415 Hi all, this patch fixed mapping of FDE entries from shared libraries. OK to commit to mainline and branch? 2002-05-15 Michal Ludvig * dwarf2cfi.c (dwarf2_build_frame_info): Add objfile->section_offset to fde->initial_location so that frames of shared libraries are mapped correctly. Michal Ludvig -- * SuSE CR, s.r.o * mludvig@suse.cz * +420 2 9654 5373 * http://www.suse.cz --------------040909060707030502050001 Content-Type: text/plain; name="cfi-so-simple.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cfi-so-simple.diff" Content-length: 948 Index: dwarf2cfi.c =================================================================== RCS file: /cvs/src/src/gdb/dwarf2cfi.c,v retrieving revision 1.1.2.2 diff -c -3 -p -r1.1.2.2 dwarf2cfi.c *** dwarf2cfi.c 14 May 2002 09:50:39 -0000 1.1.2.2 --- dwarf2cfi.c 15 May 2002 15:03:06 -0000 *************** dwarf2_build_frame_info (struct objfile *** 1476,1482 **** fde = fde_unit_alloc (); fde_chunks.array[fde_chunks.elems++] = fde; ! fde->initial_location = read_pointer (abfd, &start); fde->address_range = read_pointer (abfd, &start); for (cie = cie_chunks; --- 1476,1483 ---- fde = fde_unit_alloc (); fde_chunks.array[fde_chunks.elems++] = fde; ! fde->initial_location = read_pointer (abfd, &start) ! + objfile->section_offsets[objfile->sect_index_text].offsets[0]; fde->address_range = read_pointer (abfd, &start); for (cie = cie_chunks; --------------040909060707030502050001--