www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 62] New: Name of nested functions is not available in debug info

http://bugzilla.gdcproject.org/show_bug.cgi?id=62

             Bug #: 62
           Summary: Name of nested functions is not available in debug
                    info
    Classification: Unclassified
           Product: GDC
           Version: development
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: gdc
        AssignedTo: ibuclaw gdcproject.org
        ReportedBy: johannespfau gmail.com


It seems we have a small bug with debug info and nested functions as the name
of nested functions is not available in debug info.

----------
    ../../../../gcc-4.8.0/libphobos/libdruntime/rt/dmain2.d:620
0x40774e ???
    ../../../../gcc-4.8.0/libphobos/libdruntime/rt/dmain2.d:595
0x40797f ???
    ../../../../gcc-4.8.0/libphobos/libdruntime/rt/dmain2.d:630
0x40774e ???
    ../../../../gcc-4.8.0/libphobos/libdruntime/rt/dmain2.d:595
----------

Should be similar to (this are the symbols as in the symbol table):
----------
2) 0x40740e extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).void runMain()
    ../../../../gcc-4.8.0/libphobos/libdruntime/rt/dmain2.d:620
3) 0x407b6e extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).void tryExec(scope void delegate())
    ../../../../gcc-4.8.0/libphobos/libdruntime/rt/dmain2.d:595
4) 0x407d9f extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).void runAll()
    ../../../../gcc-4.8.0/libphobos/libdruntime/rt/dmain2.d:630
5) 0x407b6e extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).void tryExec(scope void delegate())
    ../../../../gcc-4.8.0/libphobos/libdruntime/rt/dmain2.d:595
----------

I found this while using libbacktrace:
https://github.com/mirrors/gcc/blob/master/libbacktrace/

Pull request coming soon...

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
Jun 12 2013