D globals in gdb

simendsjo simendsjo at gmail.com
Mon Apr 2 10:56:07 PDT 2012


On Mon, 02 Apr 2012 19:36:27 +0200, Martin Krejcirik <mk-junk at 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).


More information about the Digitalmars-d-debugger mailing list