[Lldb-commits] [PATCH] D20357: [LLDB][MIPS] Fix FPU Size Based on Dynamic FR/FRE bit
Nitesh Jain via lldb-commits
lldb-commits at lists.llvm.org
Fri Jul 1 05:24:02 PDT 2016
nitesh.jain added inline comments.
================
Comment at: source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp:497-505
@@ +496,11 @@
+ {
+ bool fre;
+ bool fr1;
+ IsFR1_FRE (fr1, fre);
+
+ // fr1 fre fpu_reg_size
+ // 1 0 64
+ // 1 1 32
+ // 0 0 32
+ reg_info->byte_size = (fr1 ^ fre) ? 8 : 4;
+ }
----------------
clayborg wrote:
> If we don't add anything to RegisterInfo, then this code is fine. Else we will need to check "reg_info->dynamic_size_dwarf_expr_bytes" and evaluate the DWARF expression to get the size.
If Dwarf expression need to be evaluate at server side, then we need to add one more function in DWARFExpression::Evaluate to take NativeRegisterContext has a parameter. So should I add one more functionality in it ?
Thanks
Repository:
rL LLVM
http://reviews.llvm.org/D20357
More information about the lldb-commits
mailing list