Re: variable viewing in gdb window
Re: variable viewing in gdb window
- Subject: Re: variable viewing in gdb window
- From: Daniel Luis dos Santos <email@hidden>
- Date: Sat, 28 Feb 2009 21:35:18 +0000
It still says that the object does not know the selector. I even tried
casting the target like :
p (void*)[(NSData*]data bytes]
but no cigar.
I have some times found that casting the target usually solves the
question, but not in this case. Is this considered a bug, or is gdb
not truly adapted to debugging Objective C code ?
As anyone else complain about it ?
On Feb 28, 2009, at 9:02 PM, David Dunham wrote:
On 28 Feb 2009, at 12:01, Daniel Luis dos Santos wrote:
No I just want to know the value returned by that method. In this
case the value of the pointer, so I can see the memory contents in
the memory browser.
I think I should have written
p (void*) [data bytes]
On Feb 28, 2009, at 6:46 PM, David Dunham wrote:
On 28 Feb 2009, at 07:33, Daniel Luis dos Santos wrote:
NSData *data = [pageFile readDataOfLength: lengthToRead];
I then want to know the value of calling the method : [data bytes]
I write that on the gdb command window and it tells me :
You use something like p (long) [data bytes] ?
David Dunham A Sharp, LLC
Voice/Fax: 206 783 7404 http://a-sharp.com
Efficiency is intelligent laziness.
_______________________________________________
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
David Dunham A Sharp, LLC
Voice/Fax: 206 783 7404 http://a-sharp.com
"People seem to misinterpret complexity as sophistication" --
Niklaus Wirth
_______________________________________________
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