[lldb-dev] Fwd: Offset Calculations for Registers on Linux x86_64

Abhishek Aggarwal via lldb-dev lldb-dev at lists.llvm.org
Thu Aug 13 02:26:39 PDT 2015


Hello

I have a question regarding offset calculations of registers for x86_64
architecture. In file source/Plugins/Process/Utility/RegisterInfos_x86_64.h:

The macro FPR_OFFSET(reg) calculates the offset of floating point
register 'reg' with respect to 'UserArea' struct while GPR_OFFSET(reg)
calculates it wrt to 'GPR' struct. Is there any specific reason of
calculating the offsets of floating point registers wrt 'UserArea' struct
and not wrt 'FPR' struct (defined in
source/Plugins/Process/Utility/RegisterContext_x86.h) ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150813/50cbc18b/attachment.html>


More information about the lldb-dev mailing list