[Lldb-commits] [lldb] [lldb] Remove support and workarounds for Android 4 and older (PR #124047)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 23 09:38:09 PST 2025
enh-google wrote:
> I guess this means the whole "single step workaround" (lldb/source/Plugins/Process/Linux/SingleStepCheck.h) could go away as well (maybe make a separate patch for that).
from that file:
```
// The underlying issue has been fixed in android N and linux 4.4. This code can
// be removed once these systems become obsolete.
```
i don't know what lldb's deprecation policy is (or Android Studio's, as "deliverers of the lldb"), but the _ndk_ at least still supports api >= 21, so if you're only asking me, technically i'd not consider that dead code (even if i am very skeptical that there are many developers still debugging on old devices/OS releases --- my anecdata is that most debugging happens on relatively current devices, even if _end users_ are still running apps on much older kit). https://apilevels.com/ claims about 4% of end users are still on an old enough release to have this problem[1].
____
1. though tbh, i have questions about the "fixed in android N and linux 4.4" --- is there a _workaround_ in android n? because if it's actually only fixed in linux 4.4, and android n was the first release to have used a >= 4.4 kernel, it's definitely possible that there are devices out there running significantly more recent versions of android but still on an old kernel. afaik we didn't really have any requirements prior to the versions shown in https://source.android.com/docs/core/architecture/kernel/android-common#compatibility-matrix --- i think prior to those dates it was basically a free for all.
https://github.com/llvm/llvm-project/pull/124047
More information about the lldb-commits
mailing list