addr::array type_t N | ::print type_t


alex.

Jesse Butler wrote:
> 
> Is there a way to walk through a given array's element addresses and 
> ::print them out as their types, other than manually doing it like this?
> 
> ( addr is the address of array; X is the sizeof type_t )
> 
> addr+(0t0*X)::print type_t
> addr+(0t1*X)::print type_t
> ...
> addr+(0tN*X)::print type_t
> 
> In other words, given an array of N length of type_t's in memory, is 
> there some kind of command like you'd have for dumping them all, or a 
> number of them, say like this for dumping 8 64-bit values:
> 
> addr,8/K
> 
> Thanks
> Jesse
> _______________________________________________
> mdb-discuss mailing list
> mdb-discuss at opensolaris.org

Reply via email to