[Bug fortran/46686] Improve backtracing (unwinding) on non-glibc targets

jb at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 9 19:49:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46686

--- Comment #8 from Janne Blomqvist <jb at gcc dot gnu.org> 2011-11-09 19:38:49 UTC ---
(In reply to comment #7)
> (In reply to comment #6)
> > TODO: For Windows, one should be able to make use of SymFromAddr +
> > SymGetLineFromAddr64 + IMAGEHLP_LINE64 to obtain the symbol name
> 
> Kai points out that those only work with PDB and not with DWARF.
> 
> Though, it seems as if addr2line exists also for Windows. Kai thinks that is
> might/should work if one replaces for MINGW the path separator by ";" in
> libgfortran/runtime/main.c's find_addr2line. One probably needs to allow '\\'
> besides '/' under MinGW.

I thought that fork, exec, and pipe, which are necessary for starting and
interacting with the addr2line process are not supported on mingw? But, if it
works, great!



More information about the Gcc-bugs mailing list