[Bug translator/6977] Incorrect resolution of variables in function scope

prerna at linux dot vnet dot ibm dot com sourceware-bugzilla@sourceware.org
Fri Oct 24 06:34:00 GMT 2008


------- 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.



More information about the Systemtap mailing list