[Issue 11870] New: replace dynamic symbol table (--export-dynamic) for backtraces

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 5 07:13:16 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11870

           Summary: replace dynamic symbol table (--export-dynamic) for
                    backtraces
           Product: D
           Version: D2
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nobody at puremagic.com
        ReportedBy: code at dawg.eu


--- Comment #0 from Martin Nowak <code at dawg.eu> 2014-01-05 07:13:13 PST ---
Currently we rely on the dynamic symbol table to generate stack traces.
This only works with exported functions of an executable (i.e.
visibility=default) and requires the -L--export-dynamic argument.

One alternative would be to use DWARF instead. It would also allow to get line
numbers, but is only available in debug builds.

A better compromise might be to provide MiniDebugInfo which is a compressed
symbol table in .gnu_debugdata.
https://sourceware.org/gdb/onlinedocs/gdb/MiniDebugInfo.html

related:

bug 1001 - print stack trace (in debug mode) when program die

C++ DWARF backtrace library https://github.com/bombela/backward-cpp

-- 
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