www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13779] New: gdb can't print variables with "Could not find


          Issue ID: 13779
           Summary: gdb can't print variables with "Could not find the
                    frame base for function" error
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: code dawg.eu

This only happens when linking with ld.gold.
Looks like the problem has something to do with this warning from readelf.

readelf: Warning: There are 76 unused bytes at the end of section .debug_loc

This is already present in the object file, but sometimes the linking seems to
fix it. If it doesn't (only happens with ld.gold) then gdb fails to find a
frame base.

Nov 26 2014