Bug 14313 – [ld.gold] gdb: wrong value of shared variables

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2015-03-21T02:32:00Z
Last change time
2015-06-17T21:02:39Z
Keywords
pull, symdeb
Assigned to
nobody
Creator
mk

Comments

Comment #0 by mk — 2015-03-21T02:32:35Z
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.
Comment #1 by mk — 2015-03-21T03:34:07Z
Comment #2 by github-bugzilla — 2015-03-23T17:03:10Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/9bd7c7c24c5d30db21520d5edf8bf4433164a8e8 Fix Issue 14313 - [ld.gold] gdb: wrong value of shared variables https://github.com/D-Programming-Language/dmd/commit/13af2803c8a0463cae1ab611cda539d035e4b59f Merge pull request #4507 from tramker/bug14313 Fix Issue 14313 - [ld.gold] gdb: wrong value of shared variables
Comment #3 by github-bugzilla — 2015-06-17T21:02:39Z