Hey On Sat, Aug 11, 2012 at 6:59 PM, Alex Loukissas <a...@maginatics.com> wrote: > Hello, > > I would like to ask whether it is possible to obtain meaningful stacktraces > within a Windows app built with mingw-w64. I will explain briefly my setup > and what I've tried so far. > > I build my app on Linux using mingw-w64 into a statically linked executable, > with debug info. I've tried using the Windows API (RtlCaptureStackBackTrace > and SymFromAddr), in a way similar as described here > http://stackoverflow.com/questions/5693192/win32-backtrace-from-c-code. > Unfortunately, SymFromAddr gives me 'Attempt to access invalid address' > errors for the stack frames in my code (however, I do get meaningful info > for the first couple frames, which are from Windows). > > I would greatly appreciate any help in this manner!
Just a note : i wanted to write some kind of valgrind tool for Windows. Not as advanced as valgrind, of course, but something that would at least be used like valgrind, that is, no need to link against any kind of library. I named it "examine". So its use is examine /path/to/prog It works well when the "examine" is compiled with Visual Studio as well as the program. But when I use mingw-w64 for the compilation and binutils, it fails (i've sent mails here and in the binutils ML without help). The problems seems that i do DLL injection and API hooking, and libbdf is a bit lost. I can give you the link of the code if you're interested regards Vincent Torri ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public