[Issue 15631] gdb: Parent's scope not considered for symbol lookup

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 26 09:43:36 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=15631

--- Comment #9 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to hsteoh from comment #8)
> P.S. it appears that the FQN `prog.x` is required for accessing the module
> global:
> 
> ----------
> (gdb) p prog.x
> $1 = 12345
> ----------
> 
> It would be nice if this were automated based on the current context.

Support code is there, however the compiler must emit 'D main' as being a child
of the module.

--


More information about the Digitalmars-d-bugs mailing list