Slightly oxymoronic title! Bonus points for Xcode answer but it's a gdb question.
If I have a standard, statically sized array gdb will print all its elements [and Xcode will let me browse through it] but if I have a zero length array, it won't, because it doesn't know. Obviously I can print the array indexes one by one, but I'd like a dump of the whole thing.
How do I tell gdb how much space I have allocated for the array to allow it to print the array (or to allow Xcode to view the array). Is it even possible?
http://www.chemie.fu-berlin.de/chemnet/use/info/gdb/gdb_9.html#SEC54
Discusses "Artificial arrays"
It is often useful to print out several successive objects of the same type in memory;...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With