From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31326 invoked by alias); 22 May 2002 13:23:32 -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 31272 invoked from network); 22 May 2002 13:23:29 -0000 Received: from unknown (HELO kerberos.suse.cz) (195.47.106.10) by sources.redhat.com with SMTP; 22 May 2002 13:23:29 -0000 Received: from chimera.suse.cz (chimera.suse.cz [10.20.0.2]) by kerberos.suse.cz (SuSE SMTP server) with ESMTP id C1A6459D442; Wed, 22 May 2002 15:23:28 +0200 (CEST) Received: from suse.cz (naga.suse.cz [10.20.1.16]) by chimera.suse.cz (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) with ESMTP id g4MDNSu14686; Wed, 22 May 2002 15:23:28 +0200 X-Authentication-Warning: chimera.suse.cz: Host naga.suse.cz [10.20.1.16] claimed to be suse.cz Message-ID: <3CEB9BD0.1090206@suse.cz> Date: Wed, 22 May 2002 06:54: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: Elena Zannoni Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] dwarf2cfi.c fix for shlibs References: <3CE27AD4.4090406@suse.cz> <15593.43860.998519.308832@localhost.redhat.com> Content-Type: multipart/mixed; boundary="------------070206090905040103050309" X-SW-Source: 2002-05/txt/msg00855.txt.bz2 This is a multi-part message in MIME format. --------------070206090905040103050309 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 791 Elena Zannoni wrote: > You should use > > fde->initial_location = read_pointer (abfd, &start) > + ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)); > > instead. > Otherwise it's ok. Thanks, commited to both mainline and branch along with the eh_frame thing. > BTW: I get 2 warnings compiling dwarf2cfi.c on i386. > /home/ezannoni/sources/src/gdb/dwarf2cfi.c: In function `execute_stack_op': > /home/ezannoni/sources/src/gdb/dwarf2cfi.c:1079: warning: cast to pointer from integer of different size > /home/ezannoni/sources/src/gdb/dwarf2cfi.c:1086: warning: cast to pointer from integer of different size Appended patch should fix these warnings. Commited as obvious. Michal Ludvig -- * SuSE CR, s.r.o * mludvig@suse.cz * +420 2 9654 5373 * http://www.suse.cz --------------070206090905040103050309 Content-Type: text/plain; name="cfi-ptrwarning.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cfi-ptrwarning.diff" Content-length: 719 Index: dwarf2cfi.c =================================================================== RCS file: /cvs/src/src/gdb/dwarf2cfi.c,v retrieving revision 1.1.2.3 diff -c -3 -p -r1.1.2.3 dwarf2cfi.c *** dwarf2cfi.c 22 May 2002 12:55:38 -0000 1.1.2.3 --- dwarf2cfi.c 22 May 2002 13:15:28 -0000 *************** execute_stack_op (struct objfile *objfil *** 875,881 **** while (op_ptr < op_end) { enum dwarf_location_atom op = *op_ptr++; ! ULONGEST result, reg; LONGEST offset; switch (op) --- 875,882 ---- while (op_ptr < op_end) { enum dwarf_location_atom op = *op_ptr++; ! CORE_ADDR result; ! ULONGEST reg; LONGEST offset; switch (op) --------------070206090905040103050309--