discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with gnustep on OpenBSD sparc64


From: David Chisnall
Subject: Re: problem with gnustep on OpenBSD sparc64
Date: Wed, 6 Jul 2011 13:04:52 +0100

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]