[KDE/Mac] Review Request 126309: backtrace and demangle for OS X, FreeBSD and Solaris/OpenIndiana
René J.V. Bertin
rjvbertin at gmail.com
Thu Dec 10 22:10:50 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126309/
-----------------------------------------------------------
Review request for KDE Software on Mac OS X and KDE Frameworks.
Repository: kdelibs4support
Description
-------
This is a "backport" of the patches to `kdebug.cpp` that enable backtrace and demangling support on OS X, FreeBSD and Solaris/OpenIndiana.
The KDE4 version was discussed here: https://git.reviewboard.kde.org/r/121213/
It seems that change was never incorporated because of a single open issue for which I never found the time (also given that it seemed a bit overkill).
My PC-BSD and Indiana VMs are no longer operational; it seems highly likely that the current code still works but if further testing or polishing is required I'll rather remove the specific parts than bring the VMs online again.
Diffs
-----
src/kdecore/kdebug.cpp 6f04dce
Diff: https://git.reviewboard.kde.org/r/126309/diff/
Testing
-------
On Kubuntu 14.04 with various gcc versions and clang; OS X 10.6 - 10.9 with gcc and clang, PC-BSD with clang and on Open Indiana.
The KDE4 RR raises some doubts concerning checking for only an OS and not compilers (in demangling). I think there is no reason for such doubts: compilers are obliged to co-exist and be compatible nowadays, at least on individual OS families (each platform will have its own default/dominant compiler that is used to build the system libraries). In practice it turns out that gcc and clang use the same C++ mangling scheme. The only difference is in the way `backtrace_symbols()` formats the stack, and that indeed appears to defined the OS rather than by the compiler used.
(Then again I'm willing to stand corrected by someone who has a Linux system built from scratch with clang and libc++, or possibly a Gnu/BSD set-up :))
Thanks,
René J.V. Bertin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-mac/attachments/20151210/38833068/attachment.html>
More information about the kde-mac
mailing list