labath added inline comments.

================
Comment at: source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp:98
@@ +97,3 @@
+    const ArchSpec &arch = 
m_thread.GetProcess()->GetTarget().GetArchitecture();
+    RegisterInfo* reg_info = const_cast<RegisterInfo 
*>(m_reg_info.GetRegisterInfoAtIndex (reg));
+    if(reg_info->dynamic_size_dwarf_len)
----------------
Can we get rid of these const_casts? It looks like UpdateDynamicRegisterSize 
does not actually need this to be non-const.


Repository:
  rL LLVM

http://reviews.llvm.org/D20357



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to