This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/46686] Improve backtracing (unwinding) on non-glibc targets
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 09 Nov 2011 20:13:09 +0000
- Subject: [Bug fortran/46686] Improve backtracing (unwinding) on non-glibc targets
- Auto-submitted: auto-generated
- References: <bug-46686-4@http.gcc.gnu.org/bugzilla/>
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