summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2013-01-25 01:05:30 +0000
committerJason Molenda <jmolenda@apple.com>2013-01-25 01:05:30 +0000
commita71919c9d6e989fb183f69729510da0152e1572b (patch)
tree5e847f0f9f544a31609240db44c5e0c4124ee7be /lldb/source/Plugins/Process/gdb-remote
parente060e57bf74681939ffab90ff743ab8594a8b866 (diff)
downloadbcm5719-llvm-a71919c9d6e989fb183f69729510da0152e1572b.tar.gz
bcm5719-llvm-a71919c9d6e989fb183f69729510da0152e1572b.zip
<rdar://problem/13072285>
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
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.h
index 672af4b9ee1..d052449e9b0 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 &reg_info,
+ AddRegister (lldb_private::RegisterInfo reg_info,
lldb_private::ConstString &reg_name,
lldb_private::ConstString &reg_alt_name,
lldb_private::ConstString &set_name)
OpenPOWER on IntegriCloud