• 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
double dereferencing in debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

double dereferencing in debugger


  • Subject: double dereferencing in debugger
  • From: "McLaughlin, Michael P." <email@hidden>
  • Date: Wed, 29 Jul 2009 15:18:53 -0400
  • Acceptlanguage: en-US
  • Thread-topic: double dereferencing in debugger

If iter is a iterator to a (STL) vector or list, then typing

p *iter

in the debugger will dump *iter (e.g., a struct) to the console.  However,

if iter2 is an element of *iter, the debugger will not deference iter2 as
well, showing just _M_node = 0x398c90 for example.

Is there a simple gdb syntax for such double-dereferencing?  [I tried
several obvious things but none worked.]

Thanks.

--
Mike McLaughlin

 _______________________________________________
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: Re: gdb: "No line number information available for address...." :(
  • Next by Date: Re: trouble with distributed builds
  • Previous by thread: Re: dtrace: failed to compile script trace.d: line 22: probe description pid14677::objc_msgSend:return does not match any probes
  • Next by thread: variable value display wrong
  • Index(es):
    • Date
    • Thread