HomePhabricator

[LLDB] Fix SVE reginfo for sequential offset in g packet

Authored by omjavaid on Nov 17 2020, 4:15 AM.

Description

[LLDB] Fix SVE reginfo for sequential offset in g packet

This moves in the direction of our effort to synchronize register descriptions
between LLDB and GDB xml description. We want to able to send registers in a
way that their offset fields can be re-constructed based on register sizes
in the increasing order of register number.

In context to Arm64 SVE, FPCR and FPSR are same registers in FPU regset and
SVE regset. Previously FPSR/FPCR offset was set at the end of SVE data
because Linux ptrace data placed FPCR and FPSR at the end of SVE register set.

Considering interoperability with other stubs like QEMU and that g packets
should generate register data in increasing order of register numbers. We
have to move FPCR/FPSR offset up to its original location according to
register numbering scheme of ARM64 registers with SVE registers included.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D90741

Details

Committed
omjavaidNov 17 2020, 4:18 AM
Reviewer
labath
Differential Revision
D90741: [LLDB] Fix SVE reginfo for sequential offset in g packet
Parents
rG537cbd90c43d: Escape command line arguments in backtraces
Branches
Unknown
Tags
Unknown