This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/6977] Incorrect resolution of variables in function scope
- From: "prerna at linux dot vnet dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 24 Oct 2008 05:52:41 -0000
- Subject: [Bug translator/6977] Incorrect resolution of variables in function scope
- References: <20081024053854.6977.prerna@linux.vnet.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From prerna at linux dot vnet dot ibm dot com 2008-10-24 05:52 -------
This arises because the variable "zone_reclaim_mode" is a global variable
defined in a different compilation unit than that of the function
"get_page_from_freelist()"
The Dwarf entry for "zone_reclaim_mode" in the CU of the function is simply a
declaration which doesnt have location info for it (since the variable is
defined as an extern int in this CU). This causes a semantic error when the stap
translator tries to fetch DWARF location info from its declaration.
To me, it appears similar to the problem of trying to access a global variable
in a different compile unit than the one in which it is defined.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=6977
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.