[PATCH] D145580: [lldb] Show register fields using bitfield struct types
David Spickett via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 10 05:37:53 PST 2023
DavidSpickett added a comment.
The last update changes the format slightly, though for the better I think.
(lldb) register read cpsr x0 fpcr fpsr x1
cpsr = 0x60001000
= (N = 0, Z = 1, C = 1, V = 0, TCO = 0, DIT = 0, UAO = 0, PAN = 0, SS = 0, IL = 0, SSBS = 1, BTYPE = 0, D = 0, A = 0, I = 0, F = 0, nRW = 0, EL = 0, SP = 0)
As we don't print the root type name we get this orphaned `=`, so I've aligned that with the usual value line above. I think it's clear that it's a second view on the register not a new name (and removing the `=` is fiddly).
If the fields end up on multiple lines, we handle that too:
(lldb) register read fpcr
fpcr = 0x00000000
= {
AHP = 0
DN = 0
<...>
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145580/new/
https://reviews.llvm.org/D145580
More information about the llvm-commits
mailing list