This is the mail archive of the systemtap@sources.redhat.com mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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".  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]