This patch adds support to access AArch64 FP SIMD core dump registers and adds a test case to verify registers.
This patches fixes a bug where doing "register read --all" causes lldb to crash.
Paths
| Differential D77793
Fix LLDB elf core dump register access for ARM/AArch64 ClosedPublic Authored by omjavaid on Apr 9 2020, 5:25 AM.
Details
Summary This patch adds support to access AArch64 FP SIMD core dump registers and adds a test case to verify registers. This patches fixes a bug where doing "register read --all" causes lldb to crash.
Diff Detail
Event TimelineComment Actions Thanks for doing this. The patch is pretty straight-forward. I'd just like to get some clarification about the defensive read register checks.
Comment Actions Updated diff after implementing core file using assembly code. Also removed the redundant register info is null condition. LGTM? Comment Actions Thanks. LGTM, assuming the checked-in core files are of a "reasonable" (~ several tens of KB) size.
This revision is now accepted and ready to land.Apr 22 2020, 1:29 AM Closed by commit rGe35dbb3c8878: Fix LLDB elf core dump register access for ARM/AArch64 (authored by omjavaid). · Explain WhyApr 28 2020, 9:35 PM This revision was automatically updated to reflect the committed changes. omjavaid marked an inline comment as done.
Revision Contents
Diff 260835 lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_arm.cpp
lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_arm64.h
lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_arm64.cpp
lldb/test/API/functionalities/postmortem/elf-core/TestLinuxCore.py
lldb/test/API/functionalities/postmortem/elf-core/aarch64-neon.c
|
Other elf core register contexts don't have this check. Why is it necessary here? Is that the register read --all bug ? If it is then isn't the proper solution to ensure we don't call this with a null register info ?