• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: lldb 'print object' (po) prints pointer value if not object?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: lldb 'print object' (po) prints pointer value if not object?
      • From: Quincey Morris <email@hidden>
References: 
 >lldb 'print object' (po) prints pointer value if not object? (From: Jerry Krinock <email@hidden>)
 >Re: lldb 'print object' (po) prints pointer value if not object? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: lldb 'print object' (po) prints pointer value if not object?
  • Next by Date: Re: lldb 'print object' (po) prints pointer value if not object?
  • Previous by thread: Re: lldb 'print object' (po) prints pointer value if not object?
  • Next by thread: Re: lldb 'print object' (po) prints pointer value if not object?
  • Index(es):
    • Date
    • Thread