From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27478 invoked by alias); 18 Jun 2003 14:57:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 27410 invoked by alias); 18 Jun 2003 14:57:06 -0000 Date: Wed, 18 Jun 2003 14:57:00 -0000 Message-ID: <20030618145706.27409.qmail@sources.redhat.com> From: "drkent at lanl dot gov" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030609141556.11134.drkent@lanl.gov> References: <20030609141556.11134.drkent@lanl.gov> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/11134] DWARF-2/3 Problems with const int globals X-Bugzilla-Reason: CC X-SW-Source: 2003-06/txt/msg02026.txt.bz2 List-Id: PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11134 ------- Additional Comments From drkent at lanl dot gov 2003-06-18 14:57 ------- Subject: Re: DWARF Problems with const int globals I'm under too much of a time crunch to submit a very small test case. I could only provide a large, unstable, difficult to install program which probably wouldn't be much help. Chip On Mon, Jun 09, 2003 at 02:38:13PM -0000, drow@mvista.com wrote: > PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11134 > > > > ------- Additional Comments From drow@mvista.com 2003-06-09 14:38 ------- > Subject: Re: DWARF Problems with const int globals > > Oh, thanks. I'm not familiar with that library's API... it's on this > drive somewhere... > > In that case, will the submitter please provide a testcase? Does > readelf show anything that looks wrong? It might be a bug in > libdwarf... > > On Mon, Jun 09, 2003 at 02:29:02PM -0000, dberlin@dberlin.org wrote: > > ------- Additional Comments From dberlin@dberlin.org 2003-06-09 14:29 ------- > > Subject: Re: DWARF Problems with const int globals > > > > He *must* be referring to DWARF2 already. > > DW_DLV_NO_ENTRY is an error value returned by the libdwarf dwarf2 library > > SGI wrote (and Intel rewrote, and Ulrich Drepper is writing for elfutils). > > > > > > On Mon, 9 Jun 2003, drow@mvista.com wrote: > > > > > PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. > > > > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11134 > > > > > > > > > > > > ------- Additional Comments From drow@mvista.com 2003-06-09 14:21 ------- > > > Subject: Re: New: DWARF Problems with const int globals > > > > > > This isn't really an answer to your bug report, but it counts as a > > > workaround... > > > > > > On Mon, Jun 09, 2003 at 02:15:57PM -0000, drkent@lanl.gov wrote: > > > > PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. > > > > > > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11134 > > > > > > > > Summary: DWARF Problems with const int globals > > > > Product: gcc > > > > Version: 3.3 > > > > Status: UNCONFIRMED > > > > Severity: normal > > > > Priority: P2 > > > > Component: c++ > > > > AssignedTo: unassigned@gcc.gnu.org > > > > ReportedBy: drkent@lanl.gov > > > > CC: gcc-bugs@gcc.gnu.org > > > > > > > > I am developing a dynamic instrumentation tool that uses DWARF and have > > > > encountered a few problems that could be from the dwarf information generated by > > > > g++ 3.3. > > > > > > > > There are a few global variables defined as "const int". When the tool parses > > > > the binary, it attempts to locate these variables and then gives a > > > > DW_DLV_NO_ENTRY error which means that the attribute is not where the dwarf > > > > information says it is. > > > > > > > > I have avoided these problems by changing the global const ints to #define > > > > statments, and the code runs properly. > > > > > > > > Please contact me with any questions. > > > > > > If you are developing this tool, please, please, please use DWARF-2 > > > instead! The DWARF writer is on its last legs, especially in C++, and > > > the format is inferior. > > > > > > > > > > > ------- You are receiving this mail because: ------- > You reported the bug, or are watching the reporter. -- ----------------------------------------------------- David R. "Chip" Kent IV Parallel Tools Team High Performance Computing Environments Group (CCN-8) Los Alamos National Laboratory (505)665-5021 drkent@lanl.gov -----------------------------------------------------