• 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
LLDB: evaluating expressions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LLDB: evaluating expressions


  • Subject: LLDB: evaluating expressions
  • From: Tom Seddon <email@hidden>
  • Date: Tue, 17 Jul 2012 22:06:12 +0100

I'm having problems with lldb not evaluating a simple expression:

---8<---
(lldb) p header
(const char *) $16 = 0x0080000c "fmt \x10"
(lldb) p data
(const char *) $17 = 0x00800000 "RIFF\xfe|\x04"
(lldb) p header-data
error: error: reference to 'id' is ambiguous
note: candidate found by name lookup is 'id'
note: candidate found by name lookup is 'id'
error: 1 errors parsing expression
---8<---

I thought maybe the debugger won't subtract two pointers, for some reason, but not so:

---8<---
(lldb) p (char *)0x80000c-(char *)0x800000
(int) $26 = 12
---8<---

Am I doing something wrong?

If not, is there anything I can I do to (try to) figure out what lldb's problem is?

Thanks,

--Tom


 _______________________________________________
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: evaluating expressions
      • From: Chris Lattner <email@hidden>
  • Prev by Date: Re: looking for a memory problem
  • Next by Date: Re: LLDB: evaluating expressions
  • Previous by thread: Re: looking for a memory problem
  • Next by thread: Re: LLDB: evaluating expressions
  • Index(es):
    • Date
    • Thread