On Mon, 02 Apr 2012 19:36:27 +0200, Martin Krejcirik <mk-j...@i-line.cz> wrote:

Try in gdb:

p 'module_name.glob_var'


argh, the single quotes. Thanks, now it works if the global is declared shared. But if it isn't, print shows just the init value, no changed data. Any idea ?

--
mk

Unless it's shared or __gshared, every thread gets it's own copy. D defaults to thread local storage (TLS).

Reply via email to