Similar to D90898 (Linux Aarch64).
Diff Detail
Event Timeline
libunwind/src/UnwindCursor.hpp | ||
---|---|---|
2918 | Not indented or are you using tabs? We don't use tabs. Use clang/tools/clang-format/clang-format-diff.py to format modified lines. |
libunwind/include/__libunwind_config.h | ||
---|---|---|
38–39 | match indentation to existing Linux cases I think |
libunwind/src/UnwindCursor.hpp | ||
---|---|---|
2906 | this function is not aarch64 specific and I assume would be shared by other architectures that support it. I'd guard this block with _LIBUNWIND_CHECK_FREEBSD_SIGRETURN and UnwindCursor<A, R>::stepThroughSigReturn(Registers_arm64 &) with a nested defined(_LIBUNWIND_TARGET_AARCH64) so that other architectures can be added more easily. | |
2907 | ||
2919–2921 | If the sysctl fails for some reason we would end up calling it every time. How about setting start and end to zero in that case to avoid calling it again? Also probably makes sense to log an error if the sysctl fails. | |
2934–2959 | Maybe something like this for future extensibility? |
match indentation to existing Linux cases I think