Commit Graph

22 Commits

Author SHA1 Message Date
Ștefan Talpalaru 169e605495
document and test using -g1 instead of -g3 (#18) 2021-05-25 22:37:36 +02:00
Ștefan Talpalaru 63196b0628
allow overriding "cmake"
useful for OSXCross' CMake wrapper
2021-05-13 00:21:59 +02:00
Ștefan Talpalaru 1c7df006d3
update upstream libraries (#17)
libbacktrace bumped to the latest comit in the "master" branch of https://github.com/ianlancetaylor/libbacktrace

libunwind manually copied from https://github.com/llvm/llvm-project -
commit f749550cfe9f0bf2364abb2139835348587062ed - on top of which I
disabled a dependency on "../libcxx" that only makes sense in the LLVM
monorepo.
2021-04-29 02:18:27 +02:00
Ștefan Talpalaru ffdad2530f
enable cross-compilation 2021-03-14 03:02:11 +01:00
Ștefan Talpalaru 8121c08e0e
replace forked libbacktrace submodule (#8)
with upstream libbacktrace submodule, which works with LTO
2020-09-28 17:49:48 +02:00
Ștefan Talpalaru c21107e34c
extra test case 2020-09-07 21:01:58 +02:00
Ștefan Talpalaru 3ff163ca58
two-step backtraces
Allow separating stack unwinding and program counter collection from the
more expensive step of getting the associated debugging info for each
program counter.

This is useful for implementing efficient backtraces for exceptions - a
scenario in which you add a new backtrace each time an exception is
re-raised, but you rarely need to print them (usually when that
exception is uncaught).

libunwind snapshot - 673484b34189b1bccf73a2ec96968092bc8a26a7
2020-09-07 01:40:57 +02:00
Ștefan Talpalaru fc63983c73
check if CMake is installed, if we build libunwind 2020-04-18 01:55:02 +02:00
Ștefan Talpalaru 6603ca6ec9
fork the libbacktrace fork 2020-02-20 22:05:42 +01:00
Ștefan Talpalaru b641d2ad5b
BUILD_CXX_LIB 2020-02-15 12:56:55 +01:00
Ștefan Talpalaru d0e3ca53c2
try to avoid distro-specific "lib64" install dir 2020-02-14 10:57:36 +01:00
Stefan Talpalaru 61f29dcfb4
Makefile: fix "clean" target 2020-02-13 16:00:51 +01:00
Ștefan Talpalaru a136925305
xmalloc(): align memory to 16 bytes for SSE opcodes 2020-02-11 02:06:10 +01:00
Ștefan Talpalaru ff979cf5a6
Revert "Windows doesn't like -fPIC"
This reverts commit 6dab0a2370.
2020-02-11 00:48:31 +01:00
Ștefan Talpalaru 6dab0a2370
Windows doesn't like -fPIC 2020-02-11 00:12:50 +01:00
Ștefan Talpalaru 474a602e2a
more PIC 2020-02-10 19:17:59 +01:00
Ștefan Talpalaru 36fa31535a
use -fPIC 2020-02-10 01:45:07 +01:00
Ștefan Talpalaru 6cbd913e48
libbacktrace: update config.guess and config.sub 2020-02-09 22:51:19 +01:00
Ștefan Talpalaru c816f744d8
deeper cleaning 2020-02-09 22:37:39 +01:00
Ștefan Talpalaru 9df7ee3b65
debugging support
and avoid returning empty stack traces
2019-12-20 19:06:29 +01:00
Ștefan Talpalaru c04aedb805
support Windows by using the bundled libunwind
- use static libraries instead of "compile" pragmas
2019-12-20 03:03:12 +01:00
Ștefan Talpalaru ed57c0cf7c
initial commit 2019-12-18 02:09:27 +01:00