• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
how to loop in Summary field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: why: sClientMessageProc == nil CoreDockRegisterClient_AlreadyRegistered on startup?
  • Next by Date: Localization problems in XCode and Interface Builder
  • Previous by thread: Re: How to dump core?
  • Next by thread: Localization problems in XCode and Interface Builder
  • Index(es):
    • Date
    • Thread