From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1561 invoked by alias); 14 Feb 2003 10:59:42 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 1554 invoked from network); 14 Feb 2003 10:59:41 -0000 Received: from unknown (HELO mx1.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 14 Feb 2003 10:59:41 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h1EAxef15633 for ; Fri, 14 Feb 2003 05:59:40 -0500 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 h1EAxea24393 for ; Fri, 14 Feb 2003 05:59:40 -0500 Received: from dragon (romulus-int.sfbay.redhat.com [172.16.27.46]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h1EAxe904718 for ; Fri, 14 Feb 2003 05:59:40 -0500 Subject: dwarf2_get_pc_bounds problem From: "Martin M. Hunt" To: gdb@sources.redhat.com Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 14 Feb 2003 10:59:00 -0000 Message-Id: <1045220381.25349.10.camel@Dragon> Mime-Version: 1.0 X-SW-Source: 2003-02/txt/msg00222.txt.bz2 I'm investigating several errors in recent versions of gdb and they all seem to be caused by bogus values for lowpc and highpc returned from dwarf2_get_pc_bounds(). I'm not a DWARF expert so maybe the problem is bad debug info, but the code in dwarf2_get_pc_bounds seems suspicious. What I'm seeing is that with a program linked at 0x80000000, all the highpc and lowpc look fine, except those derived from DW_AT_ranges information. Those are all very small, like 0x100. Looking at the code in dwarf2_get_pc_bounds(), most of it seems to be trying to calculate a variable "base" which is then never used. Perhaps a simple addition was left out? Martin