Re: Breakpoints not Hit
Re: Breakpoints not Hit
- Subject: Re: Breakpoints not Hit
- From: Chris Friesen <email@hidden>
- Date: Tue, 7 Nov 2006 10:25:07 -0800
Do the following in terminal then run Xcode, reproduce the problem and
attach the log to your Radar:
defaults write com.apple.Xcode PBXGDBDebuggerLogFileName /tmp/XCGDBLog
defaults write com.apple.Xcode PBXGDBDebuggerLogToFile YES
Don't forget to include a description of which breakpoint isn't being
set, which target the file is associated with and include what type of
target it is (shlib/framework/static lib etc etc).
Thanks,
ChrisF
On Nov 4, 2006, at 12:16 AM, Michael Rice wrote:
1. I'm using STABS.
2. I switched to DWARF, but it didn't fix the problem.
2a. I switched to DWARF with dSYM file and it *did* fix the problem.
3. Yes, they are all built with debug turned on.
4. Yes, the breakpoints show correctly in the breakpoint window.
Other information:
5. With STABS selected, the breakpoints are hit when I debug the
application subproject instead of the parent project.
6. Even with DWARF with dSYM File selected, the GDB "No location
for ..." warning is still displayed.
7. I tested on PowerMac G5 running 2.3 and it behaves the same,
except that switching to DWARF with dSYM does not fix the problem.
Michael
On Nov 3, 2006, at 12:04 PM, Scott Tooker wrote:
Some additional info that is needed:
1) Are you using DWARF or STABS for the debug format?
2) If you are not using DWARF, does switching to DWARF solve the
problem?
3) Just to verify, do you have debug symbols generated for all the
libraries and application?
4) When you look in the breakpoints window from the parent project,
do you see the breakpoint you have set?
Scott
On Nov 3, 2006, at 7:59 AM, Michael Rice wrote:
I'm using Xcode 2.4.1 on MacBook Pro. I have a project that is a
collection of C++ subprojects (libraries and an application). If I
open a subproject and set a breakpoint in a method and then switch
back to the parent project and run the application target, the
breakpoint is never hit.
I get a warning from GDB: "No location found for "mainwindow.cpp:
635". This is my breakpoint location. The breakpoint is in a
source file in the application.
Any ideas on how to get this working?
Thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@apple.com
This email sent to email@hidden
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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