jncornett / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Include StackWalker for windows exception handling #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently if exception is thrown by code google testing framework shows
useless exception code. It would be much better if call-stack would be
shown. Nothing new should be written just reuse StackWalker library (it is
under BSD licence):

http://www.codeproject.com/KB/threads/StackWalker.aspx

I attach a little bit modified gtest.cc file which demonstrates how
StackWalker could be embedded into gtest. It is not patch for google test
just example how useful it could be.

Original issue reported on code.google.com by dalius.d...@gmail.com on 27 Oct 2008 at 8:17

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by shiq...@gmail.com on 11 Nov 2008 at 6:49

GoogleCodeExporter commented 9 years ago
Being able to show stack traces is nice.  However, we should find and use a 
portable 
stack walker library that works at least on both Linux and Windows, and 
hopefully Mac 
OS and other Unix-like systems as well.  StackWalker is Windows-only and thus 
shouldn't be used.

Original comment by shiq...@gmail.com on 2 Dec 2008 at 5:17

GoogleCodeExporter commented 9 years ago
I completely agree that it would be nice if we had this functionality both on 
windows
and linux. However you can't make it work both on Windows and Linux. 
StackWalker uses
windows-only functionality that is not available in Linux. There are similar 

I personally don't know how to get the same effect in linux. But here are some 
ideas:
1. wxCode crashprint (maybe this one is cross-platform).
2. http://www.ibm.com/developerworks/linux/library/l-cppexcep.html

Original comment by dalius.d...@gmail.com on 2 Dec 2008 at 6:10

GoogleCodeExporter commented 9 years ago
We don't have the time to do it.

Original comment by w...@google.com on 6 Mar 2010 at 6:04