LLDB: evaluating expressions
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