Bug 300735
| Summary: | [CMake] Adds checks for execinfo.h and backtrace[_symbols] | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Adrian Perez <aperez> |
| Component: | CMake | Assignee: | WebKitGTK+ bugs <bugs-noreply> |
| Status: | NEW | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: |
https://bugs.webkit.org/show_bug.cgi?id=300701 https://bugs.webkit.org/show_bug.cgi?id=102946 https://bugs.webkit.org/show_bug.cgi?id=173531 |
||
Adrian Perez
Instead of relying on a set of preprocessor checks to determine whether the execinfo.h header and the backtrace/backtrace_symbols functions are available, it would be better to detect this with CMake. The plan would be to:
- Check whether <execinfo.h> is present.
- Check whether the backtrace() function can be linked, either from libc, or from libexecinfo (some systems provide it there)
- Define PAS_HAVE_BACKTRACE and HAVE_BACKTRACE accordingly.
- Change the guards in libpas and WTF to PAS_HAVE(BACKTRACE) and HAVE(BACKTRACE) accordingly.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexsander Borges Damaceno
Pull request: https://github.com/WebKit/WebKit/pull/53431