[lldb-dev] bug in evaluation

Andrey Zaytsev andrey.zaytsev at jetbrains.com
Thu Oct 6 11:59:08 PDT 2011


Hello everyone!

Consider "data" is ivar of some Objective-C class. It's declared like this:

CGPoint *data;

The PC is in some method of this class:

(lldb) p data
(const CGPoint *) $1015 = 0x008f3800
(lldb) p *data
(CGPoint) $1016 = {
  (CGFloat) x = 0
  (CGFloat) y = 1399
}
(lldb) p *((CGPoint *)0x008f3800)
(CGPoint) $1017 = {
  (CGFloat) x = 1.31526e-38
  (CGFloat) y = 0
}

other experiments show that pointer value of "data" reported wrong.

version: Xcode 4.2 beta 7
Platform: iOS 5 beta 7 (iPod 3G)




More information about the lldb-dev mailing list