Thread overview
[Issue 4897] New: CodeView: No locals or parameters are shown when debugging, because of missing function info
Sep 19, 2010
Aldo Nunez
Sep 19, 2010
Walter Bright
Sep 20, 2010
Walter Bright
Nov 01, 2012
yebblies
September 19, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4897

           Summary: CodeView: No locals or parameters are shown when
                    debugging, because of missing function info
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: Optlink
        AssignedTo: nobody@puremagic.com
        ReportedBy: aldonunez1@gmail.com


--- Comment #0 from Aldo Nunez <aldonunez1@gmail.com> 2010-09-19 10:53:31 PDT ---
Created an attachment (id=761)
Compares the global symbol address sort tables of passing and failing exes.

With DMD release 2.049, no local variables or parameters are listed and no expressions for the current stack frame can be evaluated, because the entry for the executable section that the current function is in is missing from the address sort table for the global symbol subsection in the debug info.

The problem seems to be that the linker is not filling in the information for executable section 2 in the address sort table for global symbols. Using CodeView terminology: the third entry for "SegmentTable" and the second entry for the "OffsetCounts" part of the address sort table are both set to zero. There is only information for sections 3 and 4.

I haven't checked to see if this problem also affects other executable sections, the static symbol table (as opposed to the global one), or the symbol *hash* table in each subsection (as opposed to the address sort table).

Using an older linker version (before 8.00.7), with or without the latest DMD
compiler (2.049) works well.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 19, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4897


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com


--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2010-09-19 11:30:56 PDT ---
This is very strange since windbg.exe is able to find and display the locals.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 20, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4897



--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2010-09-19 19:00:35 PDT ---
fixed http://ftp.digitalmars.com/link.8.00.8.zip

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 01, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4897


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies@gmail.com
         Resolution|                            |FIXED


--- Comment #3 from yebblies <yebblies@gmail.com> 2012-11-01 19:35:07 EST ---
Apparently fixed years ago

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------