How To Write Into Xmm Registers In Lldb
I am trying to read and write values from registers in python using the LLDB API. For the General Purpose Registers, I have been using the frame.register['register name'].value to
Solution 1:
After a few days, I finally managed to read and write into the vector registers using the LLDB API.
The XMM Registers has an attribute summary, which can also be obtained using SBValue.GetSummary(), this attribute returns a string of the values inside the XMM register in the form of (0x00 0x01 .... 0x0f) string format.
To modify the XMM Registers, since the XMM registers have no attribute value, lldb.frame.register['register name'].value would be useless , but there is another way to update registers value, using lldb.frame.registers[0].GetChildMemberWithName('xmm0').SetValueFromCString(value, self.error). The value object has to be a string format, still following the "{0x00 0x01 ... 0x0f}" format.
Post a Comment for "How To Write Into Xmm Registers In Lldb"