[Lldb-commits] [PATCH] D24124: [LLDB][MIPS] Fix register read/write for big endian
Nitesh Jain via lldb-commits
lldb-commits at lists.llvm.org
Thu Sep 1 03:46:02 PDT 2016
nitesh.jain created this revision.
nitesh.jain added reviewers: clayborg, labath.
nitesh.jain added subscribers: jaydeep, bhushan, slthakur, lldb-commits.
Herald added a subscriber: sdardis.
The RegisterValue.SetBytes for 4 byte data followed by GetAsUInt64 for 32 bit big endian system will produce incorrect result. Instead use RegisterValue.SetUInt which will preserved endianess. This patch also add register read/write via PTRACE_PEEKUSER/PTRACE_POKEUSER for and fix floating point register read/write for MIPS.
https://reviews.llvm.org/D24124
Files:
source/Plugins/Process/Linux/NativeRegisterContextLinux.cpp
source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp
source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.h
source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24124.69952.patch
Type: text/x-patch
Size: 12519 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160901/5c4143bb/attachment.bin>
More information about the lldb-commits
mailing list