Re: Can't set breakpoint in library
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