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

Self-reply, fantastic... I hate it when I double-check something *after* 
sending out a mail...

My first instinct was that this would be smart enough to know the size, 
and run through them:

addr,N::print type_t

This is correct. It did not work when I tried it because I fat-fingered it.

Best
Jesse

Reply via email to