… and I can confirm that LLDB does not yet fully support thread-local 
variables.  It’s an obvious area for improvement that I’ve ensured we’re 
tracking.

In the meantime for debugging purposes as a workaround you can copy the value 
into a local variable in order to be able to see it while debugging.  
Optimization will eliminate the unnecessary extra copy when building for 
release.

Kate Stone k8st...@apple.com <mailto:k8st...@apple.com>
 Xcode Low Level Tools

> On Feb 22, 2016, at 11:37 AM, Kate Stone <k8st...@apple.com> wrote:
> 
> We’ll look into it as a potential LLDB issue since it definitely looks like a 
> real problem.  The command “frame variable i” clearly shows that we don’t 
> think a value is available on the current thread even after it is set:
> 
> (int) i = <No TLS data currently exists for this thread.>
> 
> Kate Stone k8st...@apple.com <mailto:k8st...@apple.com>
>  Xcode Low Level Tools
> 
>> On Feb 22, 2016, at 11:21 AM, Johann 'Myrkraverk' Oskarsson 
>> <joh...@myrkraverk.com <mailto:joh...@myrkraverk.com>> wrote:
>> 
>> Hello XCode Users,
>> 
>> As far as I can tell, when I step through a function with static
>> __thread modifiers. XCode does not show the value of those variables.
>> 
>> In particular, when I step into this function
>> 
>>  int baz(){
>>      static __thread int i = 0;
>>      return ++i;
>>  }
>> 
>> it does not show me the value of i.  Is this a bug in XCode, lldb, or 
>> something
>> I need to configure?
>> 
>> -- 
>> Johann
>> 
>> I'm not from the internet, I just work there.
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Xcode-users mailing list      (Xcode-users@lists.apple.com 
>> <mailto:Xcode-users@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/xcode-users/katherine_stone%40apple.com
>>  
>> <https://lists.apple.com/mailman/options/xcode-users/katherine_stone%40apple.com>
>> 
>> This email sent to katherine_st...@apple.com
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (Xcode-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to