core: eliminate dependency of core lib headers on libunwind.h
The only reason why libunwind.h is included into backtrace.h (and then transitively into fiber.h) is use of unw_word_t type. Let's replace it with uintptr_t and use unw_word_t only for interacting with the unwind library. This commit partially reverts commit 6d088b56 ("build: fix libunwind.h search in test files"), because we don't need to include libunwind.h into tests anymore. Fixes #8025 NO_DOC=refactoring NO_TEST=refactoring NO_CHANGELOG=changelogs/unreleased/fix-libunwind-h-search.md
Showing
- src/lib/core/backtrace.c 11 additions, 7 deletionssrc/lib/core/backtrace.c
- src/lib/core/backtrace.h 5 additions, 4 deletionssrc/lib/core/backtrace.h
- src/lib/core/proc_name_cache.cc 9 additions, 7 deletionssrc/lib/core/proc_name_cache.cc
- src/lib/core/proc_name_cache.h 5 additions, 3 deletionssrc/lib/core/proc_name_cache.h
- src/lua/backtrace.c 3 additions, 1 deletionsrc/lua/backtrace.c
- test/fuzz/CMakeLists.txt 0 additions, 9 deletionstest/fuzz/CMakeLists.txt
- test/unit/CMakeLists.txt 0 additions, 8 deletionstest/unit/CMakeLists.txt
Loading
Please register or sign in to comment