[Lldb-commits] [PATCH] D109249: [lldb] Add Getdescription function for SBInstruction.
Rumeet Dhindsa via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 3 10:43:02 PDT 2021
rdhindsa created this revision.
rdhindsa added reviewers: labath, clayborg.
rdhindsa requested review of this revision.
Herald added a project: LLDB.
Add another Getdescription function for SBInstruction.
When trying to print the instruction, existing GetDescription function doesn't have access to Execution Context. Hence, it prints instructions of the following form for the added test case:
libc.so.6[0x3bce1]: movq 0x108(%rsp), %rax
When a target is passed with this new API call, it is able to extract execution context and hence it prints in the following form:
0x7ffff7af6ce1:movq 0x108(%rsp), %rax
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109249
Files:
lldb/bindings/interface/SBInstruction.i
lldb/include/lldb/API/SBInstruction.h
lldb/source/API/SBInstruction.cpp
lldb/test/API/functionalities/disassemble/Makefile
lldb/test/API/functionalities/disassemble/TestDisassemble.py
lldb/test/API/functionalities/disassemble/main.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109249.370623.patch
Type: text/x-patch
Size: 4057 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210903/7869e3cf/attachment.bin>
More information about the lldb-commits
mailing list