On Fri, 9 Mar 2007, 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

addr,8::print type_t

After ::print, "." (the current address) gets increased by ::sizeof 
type_t.

FrankH.

Reply via email to