<rdar://problem/13072285>
authorJason Molenda <jmolenda@apple.com>
Fri, 25 Jan 2013 01:05:30 +0000 (01:05 +0000)
committerJason Molenda <jmolenda@apple.com>
Fri, 25 Jan 2013 01:05:30 +0000 (01:05 +0000)
Change the GDBRemoteRegisterContext::AddRegister function to take
its RegisterInfo argument by value instead of using a reference -
it will modify the object and modifying the contents of the
g_register_infos table in GDBRemoteRegisterContext.cpp can cause a
crash the next time we step through it.

llvm-svn: 173406

lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.h

index 672af4b..d052449 100644 (file)
@@ -46,7 +46,7 @@ public:
     }
 
     void
-    AddRegister (lldb_private::RegisterInfo &reg_info, 
+    AddRegister (lldb_private::RegisterInfo reg_info, 
                  lldb_private::ConstString &reg_name, 
                  lldb_private::ConstString &reg_alt_name, 
                  lldb_private::ConstString &set_name)