Re: GDB Error stepping over strcmp()
Re: GDB Error stepping over strcmp()
- Subject: Re: GDB Error stepping over strcmp()
- From: Steve Sisak <email@hidden>
- Date: Tue, 29 Jan 2008 11:44:35 -0500
I posted the problem below on 1/7 and have received no response as of yet.
I'm picking this back up and have filed a bug <rdar://5712403>.
Here is a screen shot of where I'm getting in the Xcode debugger:
<http://www.codewell.com/~sgs/AfterStep.png>
The situation is that, in one project I have, any attempt to step
over a library call (the first one happens to be strcmp) results in
the Xcode debugger stopping with following error:
GDB: Error: Xcode could not locate source file prime.c (line: 276)
This actually happens with any framework call -- I'm seeing it
AEGetParamPtr(), etc. as well.
It's behaving as if there's a phantom breakpoint in the dyld stub for
the function and it's hit for every function call, not just the first
one.
The location, prime.c (line: 276), is always the same and this in not
a file in my project.
I can continue if I step all the way into and though the called
function, but "step out" leaves GDB hosed.
I've verified that ZeroLink and Fix and Continue are both off and
tried with XCode 2.5 on both Tiger and Leopard. Xcode 3.0 works
properly, but can't debug on Tiger.
Any guesses on how to get "step over" working again would be greatly
appreciated.
Thanks,
-Steve
At 3:41 PM -0500 1/7/08, Steve Sisak wrote:
Xcode 2.5
Mac OS C 10.4.11
PowerMac G5 Quad
DWARF symbols, no dSYM
I'm having an annoying problem debugging a particular application
where if I attempt to step over certain library calls, I find myself
stopped in GDB with the error:
GDB: Error: Xcode could not locate source file prime.c (line: 276)
According to the stack trace I am in the function dyld_stub_strcmp
when I step over strcmp(), so I suspect it has something to do with
lazy loading of symbols.
If I try to step out, I end up with the error:
Error from Debugger: "finish" is not meaningful in outermost frame
and my debugging session is pretty much dead.
Needless to say, this is making debugging somewhat excruciating.
I've tried a full rebuild and deleting everything but the .pbxproj
file from the project bundle in case there was a bad breakpoint.
Nothing interesting in console.log.
Any suggestions would be appreciated.
Thanks,
-Steve
_______________________________________________
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