[Lldb-commits] [PATCH] D66744: NativeProcessLinux: Remove some register context boilerplate
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 26 07:36:00 PDT 2019
labath created this revision.
labath added reviewers: mgorny, jankratochvil, omjavaid, alexandreyy, uweigand.
Herald added subscribers: kbarton, javed.absar, nemanjai.
This patch follows the spirit of D63594 <https://reviews.llvm.org/D63594>, and removes some null checks
for things which should be operating invariants. Specifically
{Read,Write}[GF]PR now no longer check whether the supplied buffers are
null, because they never are. After this, the Do*** versions of these
function no longer serve any purpose and are inlined into their callers.
Other cleanups are possible here too, but I am taking this one step at a
time because this involves a lot of architecture-specific code, which I
don't have the hardware to test on (I did do a build-test though).
https://reviews.llvm.org/D66744
Files:
source/Plugins/Process/Linux/NativeRegisterContextLinux.cpp
source/Plugins/Process/Linux/NativeRegisterContextLinux.h
source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp
source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.h
source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp
source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.h
source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.cpp
source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.h
source/Plugins/Process/Linux/NativeRegisterContextLinux_s390x.cpp
source/Plugins/Process/Linux/NativeRegisterContextLinux_s390x.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66744.217153.patch
Type: text/x-patch
Size: 22858 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190826/1a26d9eb/attachment-0001.bin>
More information about the lldb-commits
mailing list