Re: LLDB: evaluating expressions
Re: LLDB: evaluating expressions
- Subject: Re: LLDB: evaluating expressions
- From: Chris Lattner <email@hidden>
- Date: Tue, 17 Jul 2012 21:13:34 -0700
On Jul 17, 2012, at 2:06 PM, Tom Seddon wrote:
> 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?
What version of LLDB are you using? If at all possible, using the Xcode 4.4 seed is recommended. The final release is planned for this month.
-Chris
_______________________________________________
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