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 06:32:55 -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 06:32 -------
A similar illustration would be the following script :
probe kernel.function("vmap")
{
printf("\n num_physpages = %d",$num_physpages);
}
which fails with the following error :
semantic error: failed to retrieve location attribute for local 'num_physpages'
(dieoffset: 0xe_mmapnum_physpages): identifier '$num_physpages' at
scripts/num_physpages.stp:4:33
source: printf("\n num_physpages = %d",$num_physpages);
^
Here too, the variable "num_physpages" is defined in a different CU than the CU
of the function vmap, hence the location is not fetched.
--
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.