diff options
| author | Carlo Kok <ck@remobjects.com> | 2016-06-06 09:40:27 +0000 |
|---|---|---|
| committer | Carlo Kok <ck@remobjects.com> | 2016-06-06 09:40:27 +0000 |
| commit | 490d18b3c5d92f63cf03b351fc4eb38ea2a69cb4 (patch) | |
| tree | 8e7eba721d658b2a1a55422a114ba9bebc0b67aa /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
| parent | 26a56adaea535bbe7894e428a67026c76be7c6e0 (diff) | |
| download | llvm-490d18b3c5d92f63cf03b351fc4eb38ea2a69cb4.zip llvm-490d18b3c5d92f63cf03b351fc4eb38ea2a69cb4.tar.gz llvm-490d18b3c5d92f63cf03b351fc4eb38ea2a69cb4.tar.bz2 | |
(Minor tweak) Make RegisterContextWindows_x86/x64::GetRegisterInfoAtIndex
return NULL for an invalid register.
The unwind logic asks for the "return address register" which doesn't exist
on x86/x86_64, returns -1 and calls this with -1 as a parameter, ends up
out of scope of the array bounds for g_register_infos and later SIGSEGVs
on accessing. This now matches the other GetRegisterInfoAtIndex for
other platforms.
llvm-svn: 271876
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions
