[Issue 14313] New: [ld.gold] gdb: wrong value of shared variables
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Mar 20 19:32:35 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14313
Issue ID: 14313
Summary: [ld.gold] gdb: wrong value of shared variables
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: mk at krej.cz
GDB prints wrong value of shared or __gshared variables on Linux x86_64 with
ld.gold linker.
__gshared uint globvar1 = 4020000000;
__gshared ushort globvar2 = 65000;
void main()
{
globvar1++;
globvar2 += 5;
return;
}
(gdb) p goldbug.globvar1
$1 = 4020000001
(gdb) p goldbug.globvar2
$2 = 21761
Fix will follow shortly.
--
More information about the Digitalmars-d-bugs
mailing list