how to loop in Summary field
how to loop in Summary field
- Subject: how to loop in Summary field
- From: Jan Hegewald <email@hidden>
- Date: Thu, 11 May 2006 10:24:04 +0200
Dear all,
in the debugger window I have entered size: {$VAR._M_impl._M_finish -
$VAR._M_impl._M_start} into the Summary field to show the size of an
stl::vector. Additionally I want to display the contents of a vector.
I can show a single entry with item0: {*($VAR._M_impl._M_start)} but
how to show them all?
In the gdb console one can
define pvector
set $vec = ($arg0)
set $vec_size = $vec._M_impl._M_finish - $vec._M_impl._M_start
if ($vec_size != 0)
set $i = 0
while ($i < $vec_size)
printf "item %d: ", $i
p ($vec._M_impl._M_start+$i)
set $i++
end
end
end
and use pvector to print the contents. Can I somehow enter this
definition into the Summary field?
Any suggestions are very welcome!
Cheers,
-- Jan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden