Red Hat Bugzilla – Bug 462897
[RHEL4.6]gdb non-static variable missing DW_AT_location
Last modified: 2010-10-23 00:39:55 EDT
Description of problem:
I thought that we had a case open on this already but I don't see it.
Date problem reported: 1-15-08
LLNL basically has a gcc issue that apparently has stalled out on the gcc bugzilla lists. Both bugs are related to local (static and non-static) variables in C++ constructor. At this point we aren't sure if the two are actually one in the same or separate issues. The issue (according to the output sent in by Ben) is still present even in the latest versions of the gcc compiler in RHEL5.1.
This has also been cloned for RHEL4.6 in IT 158679
What's needed from SEG / Engineering: The customer has asked for our help in getting these issues resolved on the gcc lists so they can be ported to the RHEL releases in a future fix.
Source file and readelf output from customer is attached.
Date: Tue, 15 Jan 2008 13:54:20 -0500
From: Seppo Sahrakorpi <firstname.lastname@example.org>
Organization: Totalview Technologies
User-Agent: Thunderbird 220.127.116.11 (X11/20070728)
To: Ben Woodard <email@example.com>
Cc: Matt Wolfe <firstname.lastname@example.org>,
Nikolay Piskun <email@example.com>,
Subject: Update/help needed: Local variables not visible in C++ constructor
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
I would like to bring to your attention / update you on two bugs related
to local (static and non-static) variables in C++ constructor.
The short summary of the bugs is as follows: "In gcc 3.2.3 (and more
recent versions) the DWARF information created by gcc does not create
DW_AT_location attribute for (1) local static variables and (2) local
(non-static) static variables inside a C++ constructor."
We have reported these bugs to gcc-bugzilla, where they are not moving
very quickly. We were thinking that perhaps you could help in getting
these bugs fixed.
The local static variable problem is gcc-bug #33044, and the local
(non-static) variable problem is gcc-bug #27574.
The bug number #27574 is being reviewed by a new person right now.
The ("static") report #33044, seems to have stuck in the system, it
would be great if you could help finding someone who could give this a
look and move it forward.
Partner Technologies Engineer
TotalView Technologies, 24 Prime Parkway, Natick, MA 01760
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33044
can't display var
variable value should be displayed.
attached test files.
Just to clarify any confusion here. see
See IT 146253 and
This event sent from IssueTracker by alanm
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".
Development Management has reviewed and declined this request. You may appeal
this decision by reopening this request.