summaryrefslogtreecommitdiff
path: root/libgcompat/backtrace.c
AgeCommit message (Collapse)AuthorFilesLines
2018-01-14execinfo: Clean up, implement backtrace_symbols_fdSamuel Holland1-51/+0
Rename the file to match the header it implements functions from. Changes to existing code: * Fix the return value from backtrace (off by one). * Use __builtin_extract_return_addr as recommended in gcc documentation. * Document header usage. * Document where the functions are referenced in the LSB standard. Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-14global: Format the code consistentlySamuel Holland1-9/+16
* Apply clang-format. * Change all comments to the same style. * Add braces as dictated by the coding style guidelines. Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-14backtrace: Add semicolons after call to function-like macrosSamuel Holland1-10/+10
This duplicates the semicolon at the end of the macro, but it prevents clang-format from getting confused. This is only temporary until the macro is updated in a later commit. Signed-off-by: Samuel Holland <samuel@sholland.org>
2017-06-14move all compatibility library stuff into libgcompat/William Pitcock1-0/+44