On Thu, 24 Aug 2017 13:43:32 +0200, Sandro Mani wrote:
> I'm investigating why gdb returns so unreliable backtraces for mingw
> binaries without debuginfos,
They are perfectly reliable. They just do not show the function names.
But those can be looked up later from *-debuginfo.rpm.
...
> strip-debug: 46k
> strip-unneeded: 21k
...
> and it seems to work great, the binary size is 24k, and the stack trace
This has been implemented for Linux ELF binaries:
https://fedoraproject.org/wiki/Features/MiniDebugInfo
But the symbols take less space there as they are compressed. You can check
how it looks like for Linux ELF binaries by:
rm -f /tmp/bash-debugdata{,.xz};objcopy --dump-section
.gnu_debugdata=/tmp/bash-debugdata.xz /bin/bash /dev/null;xz -dv
/tmp/bash-debugdata.xz;readelf -Wa /tmp/bash-debugdata|less
GDB should be able to extract .gnu_debugdata even from PE32 binaries but
I guess nobody has ever tested that.
You are right that after the MiniDebugInfo feature has been approved for
Fedora (*) it should be ported from find-debuginfo.sh even into
mingw-find-debuginfo.sh. Therefore also in the compressed way, not just as
plain symbols you suggest.
Jan
(*) Personally I do not agree with that but that does not matter here.
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]