• 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
Setting a breakpoint in a library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting a breakpoint in a library


  • Subject: Setting a breakpoint in a library
  • From: David Dunham <email@hidden>
  • Date: Thu, 4 Jan 2007 10:57:52 -0800

I'm trying to set a breakpoint in a static library (which I built earlier):

(gdb) b png_warning
Note: breakpoints 5 and 8 also set at pc 0x7db00.
Breakpoint 13 at 0x7db00: file /Users/david/GameHouse/cgames/Match3/ HighScoreSprite.cpp, line 25.


But png_warning is actually defined in libpng.a, not HighScoreSprite.cpp.

And if I look at the breakpoints window, neither libpng nor HighScoreSprite.cpp show up. (My code does stop at
#0 __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at /Users/david/GameHouse/cgames/Match3/ HighScoreSprite.cpp:25


and

#0 HighScoreSprite::forceInclude () at /Users/david/GameHouse/cgames/ Match3/HighScoreSprite.cpp:25

but not png_warning().

David Dunham   Macintosh Game Developer   GameHouse Studios
+1 206 926 5722                http://www.gamehouse.com
    "They said it couldn't be done but sometimes it doesn't
     work out that way." -- Casey Stengel


_______________________________________________ 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: Hiding symbols from other shared libraries linked to your shared library?
  • Next by Date: Re: Stopping in libMallocDebug messages
  • Previous by thread: Re: Illegal declaration - but why?
  • Next by thread: key binding for "Continue to here"
  • Index(es):
    • Date
    • Thread