[Lldb-commits] [PATCH] D152916: [lldb] Add "register info" command
David Spickett via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 14 06:48:44 PDT 2023
DavidSpickett created this revision.
Herald added a project: All.
DavidSpickett requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D152916
Files:
lldb/include/lldb/Core/DumpRegisterInfo.h
lldb/source/Commands/CommandObjectRegister.cpp
lldb/source/Core/CMakeLists.txt
lldb/source/Core/DumpRegisterInfo.cpp
lldb/test/API/commands/register/register/register_command/TestRegisters.py
lldb/unittests/Core/CMakeLists.txt
lldb/unittests/Core/DumpRegisterInfoTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152916.531309.patch
Type: text/x-patch
Size: 16105 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230614/059e747b/attachment.bin>
More information about the lldb-commits
mailing list