[all-commits] [llvm/llvm-project] ba85f2: [lldb] Add "register info" command
David Spickett via All-commits
all-commits at lists.llvm.org
Wed Jun 21 01:48:54 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ba85f206fe6f2fec9dd5fee55bf2a1e966fc37aa
https://github.com/llvm/llvm-project/commit/ba85f206fe6f2fec9dd5fee55bf2a1e966fc37aa
Author: David Spickett <david.spickett at linaro.org>
Date: 2023-06-21 (Wed, 21 Jun 2023)
Changed paths:
A lldb/include/lldb/Core/DumpRegisterInfo.h
M lldb/source/Commands/CommandObjectRegister.cpp
M lldb/source/Core/CMakeLists.txt
A lldb/source/Core/DumpRegisterInfo.cpp
M lldb/test/API/commands/register/register/register_command/TestRegisters.py
M lldb/unittests/Core/CMakeLists.txt
A lldb/unittests/Core/DumpRegisterInfoTest.cpp
Log Message:
-----------
[lldb] Add "register info" command
This adds a new command that will show all the information lldb
knows about a register.
```
(lldb) register info s0
Name: s0
Size: 4 bytes (32 bits)
Invalidates: v0, d0
Read from: v0
In sets: Floating Point Registers (index 1)
```
Currently it only allows a single register, and we get the
information from the RegisterInfo structure.
For those of us who know the architecture well, this information
is all pretty obvious. For those who don't, it's nice to have it
at a glance without leaving the debugger.
I hope to have more in depth information to show here in the future,
which will be of wider use.
Reviewed By: jasonmolenda
Differential Revision: https://reviews.llvm.org/D152916
More information about the All-commits
mailing list