Can you confirm whether Jim’s suspicion is correct that you’re looking at the value before initialization? If so, it’s more of a fact of life that in C family languages there’s no way to know for certain whether a variable is initialized or just happens to contain some arbitrary uninitialized memory. LLDB is doing its best to tell you what the memory currently appears to be.
If his suspicion is not correct and you’re seeing something unexpected we would definitely want to look at this issue more closely. If that’s the case please file a bug via bugreport.apple.com. We take issues with debugger reliability very seriously. Kate Stone k8st...@apple.com <mailto:k8st...@apple.com> Xcode Low Level Tools > On Feb 4, 2016, at 12:17 PM, Dave <d...@looktowindward.com> wrote: > > Apparently it an XCode Feature/Bug. > > >> On 4 Feb 2016, at 18:24, Jim Ingham <jing...@apple.com >> <mailto:jing...@apple.com>> wrote: >> >> Make sure you aren't inspecting the object before it is initialized. Xcode >> prints the dynamic type of variables rather than their static type. That's >> pretty useful, e.g. if a method takes an "id" we'll show you the real object >> passed not just the isa ivar. But an uninitialized local variable's value >> will be whatever was in the stack slot that last time this bit of the stack >> was used. If that was a pointer to some ObjC object even though the object >> is not good anymore, if its isa pointer hasn't been overwritten its dynamic >> type will be the type of the previous object. >> >> Jim >> > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Xcode-users mailing list (Xcode-users@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/xcode-users/katherine_stone%40apple.com > > This email sent to katherine_st...@apple.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (Xcode-users@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to arch...@mail-archive.com