[Lldb-commits] [lldb] r224083 - Make sure if a thread specifies a 'register_data_addr' in a python operating system plug-in, that is is used to fetch the register values.

Greg Clayton gclayton at apple.com
Thu Dec 11 15:53:52 PST 2014


Author: gclayton
Date: Thu Dec 11 17:53:52 2014
New Revision: 224083

URL: http://llvm.org/viewvc/llvm-project?rev=224083&view=rev
Log:
Make sure if a thread specifies a 'register_data_addr' in a python operating system plug-in, that is is used to fetch the register values.


Modified:
    lldb/trunk/source/Plugins/Process/Utility/RegisterContextThreadMemory.cpp

Modified: lldb/trunk/source/Plugins/Process/Utility/RegisterContextThreadMemory.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/RegisterContextThreadMemory.cpp?rev=224083&r1=224082&r2=224083&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/RegisterContextThreadMemory.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Utility/RegisterContextThreadMemory.cpp Thu Dec 11 17:53:52 2014
@@ -59,7 +59,7 @@ RegisterContextThreadMemory::UpdateRegis
                 {
                     OperatingSystem *os = process_sp->GetOperatingSystem ();
                     if (os->IsOperatingSystemPluginThread (thread_sp))
-                        m_reg_ctx_sp = os->CreateRegisterContextForThread (thread_sp.get(), LLDB_INVALID_ADDRESS);
+                        m_reg_ctx_sp = os->CreateRegisterContextForThread (thread_sp.get(), m_register_data_addr);
                 }                
             }
         }





More information about the lldb-commits mailing list