Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't debug PB project



Wade,

This sounds either like a classic symptom of debugging optimized code, or like one of the files in your library is out of date with the source.

Can you touch one of the files that you are having problems with and then rebuild the library. Look at the detailed build log (the bit under the sash in the build log) and find the gcc compile line that built that .c file. Then make sure the are either no "-O?" lines in the build, or if there is one, that it is "-O0".

Also touching the file and then rebuilding the whole app should make sure that app is now up to date with its library. See if the problem still occurs when you have done this.

If it isn't either of these things, I don't have another good guess. If you can make a small test project that shows the symptoms, please file a bug, and I will have a look.

Jim


On Sep 28, 2003, at 8:53 PM, Wade Williams wrote:

I've got an extremely simple PB project that's giving me fits.

Project A builds a static library.
Project B links against that static library.

Everything goes fine until I start stepping into the library code. In there, I find that the debugger's current instruction is off by one line in some functions. Additionally, at one point, I call a function in an if statement. Clicking "step in" steps right over the function and over the next block. The function getting called exists is the same source file!

In another spot, the current instruction counter highlights two lines that are comments as the lines being executed, and fails to stop on the breakpoint which is on the next valid instruction.

Yes, in both projects, I have optimization set to 0, and both projects are set to generate debugging symbols. I'm using gcc 3.1 on both projects, and gcc_select confirms the default compiler is set to 3.1 on my system. Inbetween runs, I click on the "clean" button in both projects and let them completely rebuild.

I'm absolutely pulling my hair out. This should not be difficult.

Does anyone have any thoughts?

Wade
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.

--
Jim Ingham email@hidden
Developer Tools
Apple Computer
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Can't debug PB project (From: Wade Williams <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.