Xcode 2.1 debugger grief
Xcode 2.1 debugger grief
- Subject: Xcode 2.1 debugger grief
- From: Ricky Sharp <email@hidden>
- Date: Wed, 8 Jun 2005 16:58:32 -0500
Last night I upgraded to Xcode 2.1 and tried my hand at compiling a
universal binary of my Cocoa app.
I ensured to specify the dual architecture, set the target OS to
10.4, and pointed SDKROOT to the universal 10.4 SDK.
Compiled up a-ok, but then I was faced with strange runtime issues.
It appeared as if memory was getting overwritten in some of my ivars.
I throttled things back a bit to produce just a PPC binary, but still
target 10.4. I also then pointed to the 10.4.0 SDK. I don't get the
strange runtime errors anymore, but when going through the debugger,
things are just not right.
For example,
For example, take this simple getter on my control:
- (int)currentValue
{
return [[self cell] currentValue];
}
and this getter on the control's cell:
- (int)currentValue
{
return currentValue;
}
In my control, I have a method which does this:
int theOldCurrentValue = [self currentValue];
For a particular control/cell I'm debugging, the cell's currentValue
is set to 50. Yet theOldCurrentValue variable above is always is set
to 0. I can step into the cell's currentValue method and verify that
the currentValue ivar is indeed 50.
Finally, I throttled back even further to target 10.3 and to use the
10.3.9 SDK. Debugging then works a-ok. theOldCurrentValue is set to
a value of 50.
I have a feeling that both my 10.4.0 and 10.4u SDKs are totally hosed.
Has anyone else seen strange things with those SDKs? Later tonight
I'm going to do a fresh install of Xcode 2.1. I had Xcode 2.0 on my
box and upgraded to 2.1. I had specified a custom install so as to
include the new SDKs.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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