variables in scopes

Frank Ch. Eigler fche@redhat.com
Fri Apr 15 10:58:00 GMT 2005


Hi -

On Fri, Apr 15, 2005 at 12:18:29AM -0700, Roland McGrath wrote:
> [...]
> >    $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.


- FChE



More information about the Systemtap mailing list