Similar to D90898 (Linux Aarch64).
Diff Detail
Event Timeline
libunwind/src/UnwindCursor.hpp | ||
---|---|---|
2919 | 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–42 | match indentation to existing Linux cases I think |
libunwind/src/UnwindCursor.hpp | ||
---|---|---|
2907 | 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. | |
2908 | ||
2920–2922 | 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. | |
2935–2960 | Maybe something like this for future extensibility? |
match indentation to existing Linux cases I think