This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/12136] New: @cast can't find namespaced types


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]