[Bug fortran/46686] Improve backtracing (unwinding) on non-glibc targets
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 9 20:22:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46686
--- Comment #9 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-11-09 20:13:09 UTC ---
(In reply to comment #8)
> I thought that fork, exec, and pipe, which are necessary for starting and
> interacting with the addr2line process are not supported on mingw?
I just asked Kai. _exec, _pipe and _dup2 are supported, but fork() is not.
However, Kai suggests to use
FILE *__cdecl _popen(const char *_Command,const char *_Mode)
with _Mode = "rb". One can then read from the stream. See also:
http://msdn.microsoft.com/en-us/library/96ayss4b%28v=vs.80%29.aspx
More information about the Gcc-bugs
mailing list