Skip to content

No functions names in stacktrace for MinGW #34

@githubuser0xFFFF

Description

@githubuser0xFFFF

Hi,

we use the MinGW toolchain that ships with the Qt Libraries. This is the output of gcc -v

Thread model: posix
gcc version 5.3.0 (i686-posix-dwarf-rev0, Built by MinGW-W64 project)

The stacktrace does not print the functions names. This is the test programm

int functionA()
{
	std::cout << boost::stacktrace::stacktrace() << std::endl;
	return 0;
}

int functionB()
{
	return functionA();
}

int main()
{
	functionB();
	return 0;
}

This is the output using BOOST_STACKTRACE_USE_WINDBG:

 0# 0x00401B08 in EventTest
 1# 0x00401B66 in EventTest
 2# 0x00401B78 in EventTest
 3# 0x004013E2 in EventTest

This is the output using BOOST_STACKTRACE_USE_BACKTRACE:

 0# 0x00401A40 in C:\projects_neon\EventTest\Debug\EventTest.exe
 1# 0x00401A9E in C:\projects_neon\EventTest\Debug\EventTest.exe
 2# 0x00401AB0 in C:\projects_neon\EventTest\Debug\EventTest.exe
 3# 0x004013E2 in C:\projects_neon\EventTest\Debug\EventTest.exe

So no functions names are printed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions