diff options
author | Ed Schouten <ed@nuxi.nl> | 2017-03-07 18:15:52 +0000 |
---|---|---|
committer | Ed Schouten <ed@nuxi.nl> | 2017-03-07 18:15:52 +0000 |
commit | 3e29e7415e89c197a3d86544f0c33252d1e23639 (patch) | |
tree | 499e04930b50f7e59b043f8abb68377fcf0d80b2 /lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py | |
parent | a404d1436e5bd65a0e4ce20d6b09591b6f012f71 (diff) | |
download | bcm5719-llvm-3e29e7415e89c197a3d86544f0c33252d1e23639.tar.gz bcm5719-llvm-3e29e7415e89c197a3d86544f0c33252d1e23639.zip |
Improve readability and correctness of the OS specific libunwind bits.
All of the access to __exidx_*, dl_iterate_phdr(), etc. is specific to
the findUnwindSections() function. Right now all of the includes and
declarations related to them are scattered throughout the source file.
For example, for <link.h>, we have a full list of operating systems
guarding the #include, even though the code that uses dl_iterate_phdr()
miraculously doesn't use the same list.
Change the code so that findUnwindSections() is preceded by a block of
#ifdefs that share the same structure as the function itself. First
comes all of the macOS specific bits, followed by bare-metal ARM,
followed by ELF EHABI + DWARF.
This actually allows us to build a copy of libunwind without any
specific ifdefs for NetBSD, CloudABI, etc. It likely also unbreaks the
build of libunwind on FreeBSD/armv6, though I can't confirm.
Reviewed by: compnerd
Differential Revision: https://reviews.llvm.org/D30696
llvm-svn: 297174
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py')
0 files changed, 0 insertions, 0 deletions