• 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: Can't set breakpoint in library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't set breakpoint in library


  • Subject: Re: Can't set breakpoint in library
  • From: Jonas Maebe <email@hidden>
  • Date: Tue, 5 May 2009 10:27:10 +0200


On 02 May 2009, at 01:52, David Dunham wrote:

I built a static libLua. I want to know if routines in it are being called, so I tried

(gdb) b luaL_unref
Breakpoint 7 at 0x2faebe: file bits/basic_string.h, line 472.

basic_string.h is not a Lua source file. Nor does it actually stop when luaL_unref is called. And when I try to step into it, it shows the wrong source (apparently basic_string.h).

How can I let Xcode/GDB know about my library source? (I haven't tried dragging in the Xcode project for libLua.)

Try using rb luaL_unref

There may be more than one routine with that name in your binary. "rb" will put a breakpoint on all of them.


Jonas _______________________________________________ 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: 
 >Can't set breakpoint in library (From: David Dunham <email@hidden>)

  • Prev by Date: Re: XCode 3.1 frequently hangs
  • Next by Date: Re: Xcode 3.1.2 segmentation fault
  • Previous by thread: Can't set breakpoint in library
  • Next by thread: Re: need way to debug tool called by popen--at startup
  • Index(es):
    • Date
    • Thread