Re: variable viewing in gdb window
Re: variable viewing in gdb window
- Subject: Re: variable viewing in gdb window
- From: Quincey Morris <email@hidden>
- Date: Mon, 2 Mar 2009 10:00:59 -0800
On Mar 2, 2009, at 08:45, Andy Lee wrote: First let's clear something up: "print [data bytes]" won't work, so I don't see any point in repeatedly trying it. What's weird is that I get a different error than you do:
--------------- (gdb) print data $1 = (NSData *) 0x138460 Current language: auto; currently objective-c (gdb) print [data bytes] Unable to call function "objc_msgSend" at 0x9169c670: no return type information available.
The error message you're seeing doesn't suggest any problem with 'data' -- it's just gdb insisting you cast the result.
The difference in Daniel's case is that his 'data' pointer is (apparently) a 64-bit value, implying this is a 64-bit app. So the error message he's seeing could be:
a. 64-bit gdb's version of the same error message you got (in which case 'print (void*) [data bytes]' ought to work).
b. 64-bit gdb not working right (and I've seen a fair number of complaints about that on this list).
I think your suggestion of logging the value instead is a good one. Unless someone can jump in and spot something obvious, this does begin to look like a candidate for a bug report.
|
_______________________________________________
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