[Lldb-commits] [PATCH] D63054: [lldb] [Process/NetBSD] Fix error handling in register operations

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sat Jun 8 23:10:32 PDT 2019


mgorny created this revision.
mgorny added reviewers: krytarowski, labath.

Ensure that errors are passed through correctly when performing
register read/write operations.  Currently, any ptrace() errors are
silently discarded and LLDB behaves as if operation was successful.

// NB: This is a prerequisite for xstate support since xstate might not be supported on old kernels and ptrace() will fail then.


https://reviews.llvm.org/D63054

Files:
  lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.cpp
  lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63054.203717.patch
Type: text/x-patch
Size: 3066 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190609/4aa25a0d/attachment.bin>


More information about the lldb-commits mailing list