[Bug translator/12136] New: @cast can't find namespaced types
jistone at redhat dot com
sourceware-bugzilla@sourceware.org
Tue Oct 19 23:38:00 GMT 2010
http://sourceware.org/bugzilla/show_bug.cgi?id=12136
Summary: @cast can't find namespaced types
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap@sources.redhat.com
ReportedBy: jistone@redhat.com
$ stap -e 'probe begin { println( @cast(0, "string")$$ ) }' -p2
semantic error: type definition 'string' not found: identifier '@cast' at
<input>:1:24
source: probe begin { println( @cast(0, "string")$$ ) }
^
Pass 2: analysis failed. Try again with another '--vp 01' option.
In the DWARF, the die for "string" is nested under the die for namespace "std",
so it escapes our usual iterate-globals search. @cast(0, "std::string")
doesn't work either, but perhaps that's the approach we should take. We can
include namespaces in the global iteration, search for "namespace std" in that,
and then do a subsearch for the "string" type.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Systemtap
mailing list