From a71919c9d6e989fb183f69729510da0152e1572b Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Fri, 25 Jan 2013 01:05:30 +0000 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.h index 672af4b..d052449e 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.h +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.h @@ -46,7 +46,7 @@ public: } void - AddRegister (lldb_private::RegisterInfo ®_info, + AddRegister (lldb_private::RegisterInfo reg_info, lldb_private::ConstString ®_name, lldb_private::ConstString ®_alt_name, lldb_private::ConstString &set_name) -- 2.7.4