diff options
author | Jason Molenda <jmolenda@apple.com> | 2013-01-25 01:05:30 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2013-01-25 01:05:30 +0000 |
commit | a71919c9d6e989fb183f69729510da0152e1572b (patch) | |
tree | 5e847f0f9f544a31609240db44c5e0c4124ee7be /lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.h | |
parent | e060e57bf74681939ffab90ff743ab8594a8b866 (diff) | |
download | bcm5719-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/GDBRemoteRegisterContext.h')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.h | 2 |
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 ®_info, + AddRegister (lldb_private::RegisterInfo reg_info, lldb_private::ConstString ®_name, lldb_private::ConstString ®_alt_name, lldb_private::ConstString &set_name) |