[Issue 11910] Writes to extern (C) struct have no effect
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 12 19:53:44 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11910
--- Comment #2 from Manu <turkeyman at gmail.com> 2014-01-12 19:53:36 PST ---
I'm building with DMD-Win64.
Digging further, I see this instruction in the debugger:
mov byte ptr [gDefaults+9Ch (7F685FBF01Ch)],1
Which looks correct...
But note, the debugger helpfully shows the calculated store address:
7F685FBF01Ch
&gDefaults.input.useXInput == 7F685FEBC7Ch
It should write to ...FEBC7Ch, but instead it writes to ...FBF01Ch, which is
WAY before where it should be writing.
If I inspect the memory surrounding the address that it actually writes to, it
is filled with things like fully justified D symbols (with module name and
everything), path strings, lots of zeroes and float 1.0's. Not the structure I
expect to see.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list