On 6 Jul 2011, at 13:01, Sebastian Reitenbach wrote:

> 69                      /* Find the last superclass with at least one ivar. */
> 70                      while (NULL == super->ivars) 
> 71                      {
> 72                              super = class_getSuperclass(super);
> 73                      }
> 74                      struct objc_ivar *ivar =
> 75                              
> &super->ivars->ivar_list[super->ivars->count-1];
> 76      
> 77                      // Find the end of the last ivar - instance_size 
> contains some padding
> 78                      // for alignment.
> (gdb) 
> 
> 
> Do you maybe can propose an NSLog() statement that I could add somewhere 
> after teh line 74 to print out the values you would like to see?
> Easiest would be a patch for me that I can apply and recompile, and report 
> back.



On line 76:

fprintf(stderr, "Ivar type: %s, size: %d\nSuperclass size: %d", ivar->type, 
(int)objc_sizeof_type(ivar->type), (int)super->instance_size);

David

-- Sent from my Apple II


_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to