[PATCH] D144174: [Support][RISCV] Disable use of backtrace() for RISC-V backtraces
Kito Cheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 2 07:37:29 PST 2023
kito-cheng added a comment.
In D144174#4134399 <https://reviews.llvm.org/D144174#4134399>, @arichardson wrote:
> I am almost certain `backtrace()` does work on FreeBSD, so there should be a `__linux__` check as well.
> The comment says it only exists on glibc systems, but on FreeBSD libexecinfo provides this functionality.
Maybe it's the reason why FreeBSD work fine:
ToolChain::UnwindTableLevel
FreeBSD::getDefaultUnwindTableLevel(const ArgList &Args) const {
return UnwindTableLevel::Asynchronous;
}
https://github.com/llvm/llvm-project/blob/main/clang/lib/Driver/ToolChains/FreeBSD.cpp#L489
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144174/new/
https://reviews.llvm.org/D144174
More information about the llvm-commits
mailing list