public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/10877] New: improve probe point error reporting
@ 2009-10-31 15:46 fche at redhat dot com
  2009-11-02 17:03 ` [Bug translator/10877] " chwang at redhat dot com
  2009-11-05 13:57 ` fche at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: fche at redhat dot com @ 2009-10-31 15:46 UTC (permalink / raw)
  To: systemtap

Currently we store just one tok* per probe_point, instead of one
per probe point element (the stuff around the dots).  This leads
to hard-to-interpret error messages

% stap -p2 -e 'probe kernel.junkction("sdf") {}'
semantic error: probe point mismatch at position 1 (alternatives:
function(number) function(string) mark(string) statement(number)
statement(string) trace(string)): identifier 'kernel' at <input>:1:7 while
resolving probe point kernel.junkction("sdf")
        source: probe kernel.junkction("sdf") {}
                      ^
Pass 2: analysis failed.  Try again with another '--vp 01' option.

Instead, we should store a tok* per probe point element, so that an
error can point the caret at just the right spot, and we can drop
the "at position N" from the error description body.

-- 
           Summary: improve probe point error reporting
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: fche at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=10877

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-11-05 13:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-31 15:46 [Bug translator/10877] New: improve probe point error reporting fche at redhat dot com
2009-11-02 17:03 ` [Bug translator/10877] " chwang at redhat dot com
2009-11-05 13:57 ` fche 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).