• 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
Re: GDB and global variables?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GDB and global variables?


  • Subject: Re: GDB and global variables?
  • From: Chris Espinosa <email@hidden>
  • Date: Fri, 27 Oct 2006 08:59:15 -0700

On Oct 27, 2006, at 8:52 AM, Blair M. Burtan wrote:

How do I make this work reliably?  I get the idea that you click on the

global variables item in the debugger window and another window pops up with

a behemoth list of things and you then are supposed to click on your

application and magically a list of the globals is supposed to be generated

but I've only gotten this to work once.


a) Globals in lazy-loaded Mach-O libraries won't be available until those libraries are loaded.  Uncheck "Load symbols lazily" in Debugger preferences.

b) As you have discerned, there are a whole lot of globals available to any given compilation unit at any time.  If you're just interested in a small number, you can enter them in the Expressions window.

Chris

 _______________________________________________
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

References: 
 >GDB and global variables? (From: "Blair M. Burtan" <email@hidden>)

  • Prev by Date: Re: Linker woes
  • Next by Date: Re: Re: Accessing function definitions
  • Previous by thread: GDB and global variables?
  • Next by thread: Subversion and UTF-8 filenames
  • Index(es):
    • Date
    • Thread