ndk
ndk copied to clipboard
[FR] add hints to ndk-stack
ndk-stack could probably perform some basic analysis of the stack trace and provide some hints to the user.
Specifically, it would be very helpful for diagnosing misuse of https://github.com/android/ndk/issues/837, since the stack trace for getting that wrong will look quite confusing to anyone that doesn't know to expect it.
note that debuggerd already does this kind of thing:
https://source.corp.google.com/android/system/core/debuggerd/libdebuggerd/tombstone.cpp;l=115?q=file:debuggerd%20probable&sq=package:%5Eandroid$
if we have more stuff to add, we should probably do it there.
Won't help for my particular example because new versions of the OS that have the better diagnostics won't be the ones that exhibit the crash. In general I agree though :)