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: Roland King <email@hidden>
- Date: Wed, 23 Apr 2014 13:00:14 +0800
On 23 Apr, 2014, at 12:54 pm, Quincey Morris < email@hidden> wrote: 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.
What do they do for all the even numbers then?
|
_______________________________________________
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