Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__gshared members of class not listed in debug info #19591

Open
dlangBugzillaToGithub opened this issue Jun 22, 2019 · 0 comments
Open

__gshared members of class not listed in debug info #19591

dlangBugzillaToGithub opened this issue Jun 22, 2019 · 0 comments

Comments

@dlangBugzillaToGithub
Copy link

Rainer Schuetze (@rainers) reported this on 2019-06-22T07:04:38Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=19992

Description

compiling this code with debug info:

class C
{
	int field = 3;
	static int stat = 9;
	__gshared int gs = 8;
	static shared(int) shrd = 6;
}
int main()
{
	C c = new C;
	return 0;
}

and breaking at the return statement in a debugger, all members of C are shown but gs.

Dmd does not emit the __gshared member to the respective CV record:

0x13dd : Length = 62, Leaf = 0x1203 LF_FIELDLIST
	list[0] = LF_BCLASS, public, type = 0x1016, offset = 0
	list[1] = LF_MEMBER, public, type = T_INT4(0074), offset = 16
		member name = 'field'
	list[2] = LF_STATICMEMBER, public, type = T_INT4(0074)		member name = 'stat'
	list[3] = LF_STATICMEMBER, public, type = T_INT4(0074)		member name = 'shrd'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants