This is the mail archive of the
systemtap@sources.redhat.com
mailing list for the systemtap project.
Re: variables in scopes
- From: Roland McGrath <roland at redhat dot com>
- To: "Frank Ch. Eigler" <fche at redhat dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: Thu, 21 Apr 2005 15:02:12 -0700
- Subject: Re: variables in scopes
> > > $var[idx] - to index an array; idx being any systemtap expression
> >
> > Is this meant for explicit, sized array types only?
>
> Probably not.
>
> > Otherwise there are no known bounds to check, and this is tantamount
> > to a (type *)idx facility.
>
> Yes, but without typecasting or changing the base address, one can
> only just run off the end of the array.
Unless you plan to do overflow detection in the arithmetic, this still
means "compute any address you like".