This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]