Re: lldb 'print object' (po) prints pointer value if not object?
Re: lldb 'print object' (po) prints pointer value if not object?
- Subject: Re: lldb 'print object' (po) prints pointer value if not object?
- From: Quincey Morris <email@hidden>
- Date: Tue, 22 Apr 2014 21:54:48 -0700
On Apr 22, 2014, at 20:48 , Jerry Krinock <email@hidden> wrote:
(lldb) po $rdi 83
According to http://lldb.llvm.org/status.html, ‘po’ is for "printing the description of an object”. So the result I expect is EXC_BAD_ACCESS.
Do we agree that this is a bug? I would much rather it give me EXC_BAD_ACCESS, because “83” looks like NSNumber whose value is 83, or the string “83”.
It’s not a bug. It is in fact the object pointer for a NSNumber whose value is 83. All such special pointers (sorry, I can’t remember the official name for them right now) have 1 in the LSB.
|
_______________________________________________
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