I have a program that I intend to distribute to end users and would like to receive crash reports from them. If I were using MSVC, I would generate minidumps and pass them to me, and then check them with the corresponding PDB to get a useful stack trace, at least.
What is equivalent to doing this with GCC? I can create a stack trace, but if I want this to be useful, this requires the presence of debugging symbols compiled into an executable (with -g). Obviously, this is unacceptable for distribution of the release, since the executable file may slightly increase the size.
I did a bit of work with Google and found links to objcopy that could extract debugging symbols into a separate file, but this page implied that I still need to have debugging symbols available with the release executable, which again is clearly unacceptable.
gcc debugging visual-c ++
pjohansson
source share