Bug#831727: g++-5: Compiling with -Og does not generate debugging symbols readable by gdb
Package: g++-5
Version: 5.4.0-6
Severity: normal
When I compile a short program with -Og, gdb claims that there is no debugging symbols.
Ex: g++ -std=c++11 -o program -Og code.cpp,
running gdb ./program produces the line
"Reading symbols from ./program...(no debugging symbols found)...done."
Clanging the same code produces debugging symbols readable by gdb.
The gdb version is GNU gdb (Debian 7.11.1-2) 7.11.1
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages g++-5 depends on:
ii gcc-5 5.4.0-6
ii gcc-5-base 5.4.0-6
ii libc6 2.23-1
ii libgmp10 2:6.1.1+dfsg-1
ii libisl15 0.17.1-1
ii libmpc3 1.0.3-1
ii libmpfr4 3.1.4-2
ii libstdc++-5-dev 5.4.0-6
ii zlib1g 1:1.2.8.dfsg-2+b1
g++-5 recommends no packages.
Versions of packages g++-5 suggests:
pn g++-5-multilib <none>
pn gcc-5-doc <none>
pn libstdc++6-5-dbg <none>
-- no debconf information
Reply to: