public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/12136] New: @cast can't find namespaced types
@ 2010-10-19 23:38 jistone at redhat dot com
  0 siblings, 0 replies; only message in thread
From: jistone at redhat dot com @ 2010-10-19 23:38 UTC (permalink / raw)
  To: systemtap

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-10-19 23:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-19 23:38 [Bug translator/12136] New: @cast can't find namespaced types jistone at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).