Commit Graph

205 Commits

Author SHA1 Message Date
Antony Polukhin
d4f8f64929 Fixed windows build and issue with returning incorrect frame address (now 0 retuned instead of running out of bounds) 2016-11-25 22:12:57 +03:00
Antony Polukhin
aff892356f Changed classname from frame_view to frame 2016-11-25 21:59:30 +03:00
Antony Polukhin
6f8cbefbf2 Cleanup to_hex_array.hpp 2016-11-25 21:57:26 +03:00
Antony Polukhin
c571f9a7d8 frame_view now has a public constructor from void pointer 2016-11-25 21:56:13 +03:00
Antony Polukhin
b35614a7a5 Removed libunwind backend and forced all the backends to return source info from void pointer 2016-11-25 21:50:43 +03:00
Antony Polukhin
58f49c9208 Get rid of reinterpret_cast 2016-11-24 21:41:00 +03:00
Antony Polukhin
589cb811e6 Get rid of multiple reinterpret_casts 2016-11-24 21:40:31 +03:00
Antony Polukhin
55e7b1981b Hand-write popen/pclose and close the strerr in the child process 2016-11-24 21:37:47 +03:00
Antony Polukhin
48eba3030d Make the linux backend print location in source file, extract function names even if they have no visibility, fix warnings 2016-11-24 21:36:32 +03:00
Antony Polukhin
b564087208 Make Linux version of detail::backtrace_holder look exactly as the Windows version 2016-11-24 09:34:49 +03:00
Antony Polukhin
87f0c76816 Attempt to fix Win test failures 2016-11-24 09:24:51 +03:00
Antony Polukhin
fad2a7dc81 Added some thoughts on getting source file name and code lines for functions 2016-11-24 09:15:24 +03:00
Antony Polukhin
aaef5f134f Fix minor issues that are seen by tests and appeared after refactoring 2016-11-23 22:55:39 +03:00
Antony Polukhin
32be7aefe0 Clenups and split stacktrace.hpp into files 2016-11-23 00:02:16 +03:00
Antony Polukhin
136680bd71 Fixed hash copying in assignemt operator 2016-11-22 23:47:38 +03:00
Antony Polukhin
91b6a8f115 Fix Win warnings 2016-11-22 22:46:55 +03:00
Antony Polukhin
d7c20e50b2 Fixing Windows linkage 2016-11-22 22:28:26 +03:00
Antony Polukhin
16214550fe Big refactoring to allow in the future to setup stacktrace depth 2016-11-22 22:02:03 +03:00
Antony Polukhin
b9cbcb48be Fix Windows compilation and improve examples 2016-11-17 22:39:06 +03:00
Antony Polukhin
468f7fc381 Implemented get_source_line() and get_source_file() for Windows backend. Fixed debug engine detection during build 2016-11-17 22:17:18 +03:00
Antony Polukhin
db56639833 Send source file and source line requests to the backend s 2016-11-17 22:12:39 +03:00
Antony Polukhin
4320fc2a14 Remove some of the reinterpret_casts 2016-11-16 22:07:02 +03:00
Antony Polukhin
b826c957a3 Fix win build (3) 2016-11-15 23:28:48 +03:00
Antony Polukhin
0c905ff5a2 Fix win build (2) 2016-11-15 23:17:28 +03:00
Antony Polukhin
8e98270361 Fix win build 2016-11-15 22:02:05 +03:00
Antony Polukhin
115c5db0a3 Follow Niall comments and reimplement win debugging in thread safe manner 2016-11-15 21:30:12 +03:00
Antony Polukhin
4c30f8e9cb frame_view and iterator are not nested classes any more, reordered some functions to make reference documentation look better 2016-10-26 22:25:16 +03:00
Antony Polukhin
8768a721b1 Doxyden output improved, improved docs and added more examples 2016-10-26 22:23:09 +03:00
Antony Polukhin
8fa8c93fdb Added operators for frame_view class, libunwind backend now stores addresses 2016-10-26 22:21:46 +03:00
Antony Polukhin
6c1fd6cba1 Improved docs, added more tests, made a frame_view class from class frame 2016-10-26 22:20:10 +03:00
Antony Polukhin
e16e1a4a60 Do not use operator[] to avoid dangling references 2016-10-25 21:53:48 +03:00
Antony Polukhin
b8dcd2b553 Working version of iterator and frame 2016-10-25 21:52:29 +03:00
Antony Polukhin
bd59ec8bef Strted implmenting the iterators and frame class 2016-10-25 21:51:27 +03:00
Antony Polukhin
2f96299be2 Fix Windows linkage 2016-10-12 22:22:21 +03:00
Antony Polukhin
ab6cb7483e Added support for hashing 2016-10-12 20:26:09 +03:00
Antony Polukhin
40d1fcba36 Improved reference documentation (now explicit operator bool is documented) 2016-10-12 20:25:05 +03:00
Antony Polukhin
2440061676 Output more information in stacktraces (instruction offsets and function addressees) when apropriate 2016-10-12 20:23:54 +03:00
Antony Polukhin
b75dfd361c Added comparison operators and tests for them 2016-10-12 20:22:24 +03:00
Antony Polukhin
46860b50a9 Docs updated, now all the macro are documented 2016-10-11 23:23:45 +03:00
Antony Polukhin
e1c1a4910b Minor improvements and refactoring 2016-10-11 23:22:38 +03:00
Antony Polukhin
73206b9c64 Atempt to avoid inclusion of <windows.h> in header files 2016-09-27 23:35:52 +03:00
Antony Polukhin
decdb41e66 Do not rely on BOOST_FORCEINLINE and just call all the backtrace retrival functions from stacktrace constructor 2016-09-26 19:45:14 +03:00
Antony Polukhin
45d2181fdd Fix for retrival symbols on Windows for not first time 2016-09-26 19:42:30 +03:00
Antony Polukhin
0963de1ff7 More examples, added content to 'getting started' section in docs, improved some tests 2016-09-14 22:01:49 +03:00
Antony Polukhin
bd07777485 More examples and removed inclusion of some unused headers 2016-09-14 22:00:19 +03:00
Antony Polukhin
76cfb88fc0 Fixes for linkage and tests 2016-09-14 21:58:15 +03:00
Antony Polukhin
326d931bb0 Now header-only by default, fixes for tests and builds, better backend auto-detection 2016-09-13 00:13:02 +03:00
Antony Polukhin
b1f41947d6 Fixed shared libraries build, removed unused file 2016-09-08 21:48:33 +03:00
Antony Polukhin
6522b60c72 Added noop backend. Do not skip frames in backends anymore, because it is impossible to guess the inlining heuristics on different compilers. Fixed tests, added more tests, simplified code, improved docs 2016-09-08 21:42:43 +03:00
Antony Polukhin
e798527df8 Fixed libunwind exception safety in assignments and construction, changed tests to use boost's lightweight test infrastructure, code cleanup, include guards added 2016-09-08 21:23:43 +03:00
Antony Polukhin
2d6c03e7dc Fixed libunwind backend, added docs, fixed tests and compilation, changed return type of stacktrace::operator[] 2016-09-08 08:18:18 +03:00
Antony Polukhin
13d8ee423c Fix Win linkage and fix link in README 2016-06-05 13:06:12 +03:00
Antony Polukhin
ba19bb42c8 BOOST_VALIDATE -> BOOST_VERIFY 2016-06-05 00:24:24 +03:00
Antony Polukhin
85d864a92d Fixes for Windows 2016-06-04 21:32:48 +03:00
Antony Polukhin
b8d1ff2730 Initial version of stacktrace library 2016-06-04 15:51:28 +03:00