[Lldb-commits] [PATCH] D77043: Fix process gdb-remote usage of value_regs/invalidate_regs
Muhammad Omair Javaid via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 13 03:12:13 PST 2021
omjavaid updated this revision to Diff 316354.
omjavaid added a comment.
Herald added a subscriber: pengfei.
This update adds a new test case that checks for register number mismatch between lldb and gdb stub. LLDB client assigns register numbers to target xml registers in increasing order starting with regnum = 0, while gdb-remote may specify different regnum which is stored as eRegisterKindProcessPlugin. Remote side will use its register number in expedited register list, value_regs and invalidate_regnums.
For p/P packet LLDB was already using remote register numbers while this patch fixes the behavior for all above mentioned cases.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77043/new/
https://reviews.llvm.org/D77043
Files:
lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
lldb/test/API/functionalities/gdb_remote_client/TestRemoteRegNums.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77043.316354.patch
Type: text/x-patch
Size: 9850 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210113/d35070d9/attachment.bin>
More information about the lldb-commits
mailing list