public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Mark Wielaard <mjw@redhat.com>
To: "Przemysław Pawełczyk" <przemyslaw@pawelczyk.it>
Cc: systemtap@sourceware.org
Subject: Re: [PATCH] Add function name and file to semantic error messages 	for not found local variables.
Date: Tue, 11 Nov 2008 12:33:00 -0000	[thread overview]
Message-ID: <1226406771.3420.20.camel@dijkstra.wildebeest.org> (raw)
In-Reply-To: <40e92d5b0811110406g204df218m185bb25c653b82b@mail.gmail.com>

On Tue, 2008-11-11 at 13:06 +0100, Przemysław Pawełczyk wrote:
> > In this case we cannot always just print the diename of the scope we are
> > looking at since that might be NULL (see just above in the function). In
> > that case we are just looking for the scope by address. And while we are
> > improving the error message, lets also add the same for the other error
> > case just above it. So I think we want something like the attached. Does
> > that work for you?
> 
> Yes, I didn't noticed NULL problem and unconsciously omitted second
> error message in this function, so your patch is definitely better
> (and works, of course).

Thanks for testing. Committed as:

2008-11-11  Przemysław Pawełczyk <przemyslaw@pawelczyk.it>
            Mark Wielaard <mjw@redhat.com>

    * tapsets.cxx (find_variable_and_frame_base): Add scope name to
    semantic error messages if available.

> Here it was a rather silly mistake (because of the precedent code, as
> you mentioned), but yet I must say that dataflow in systemtap is
> (currently) somewhat cryptic to me (I didn't spend enough time looking
> into it and sorry for this). I mean e.g. it's not obvious (to me)
> where scope_die in tapsets.cxx is not NULL for sure. However, that is
> my problem, no systemtap's.

I admit to be confused myself how the precise dataflow is at times. In
this case the NULL check just above this call was the hint. The
INTERNALS file has some hints. But most information does indeed come
from trying to read and track the code by hand.

Cheers,

Mark

      reply	other threads:[~2008-11-11 12:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-11  0:58 Przemysław Pawełczyk
2008-11-11 10:15 ` Mark Wielaard
2008-11-11 12:06   ` Przemysław Pawełczyk
2008-11-11 12:33     ` Mark Wielaard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1226406771.3420.20.camel@dijkstra.wildebeest.org \
    --to=mjw@redhat.com \
    --cc=przemyslaw@pawelczyk.it \
    --cc=systemtap@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).