[lldb] Improve debugging 32-bit programs on NetBSD/amd64
authorMichał Górny <mgorny@gentoo.org>
Sun, 12 Jan 2020 21:49:36 +0000 (22:49 +0100)
committerMichał Górny <mgorny@gentoo.org>
Fri, 7 Feb 2020 16:48:33 +0000 (17:48 +0100)
commit1ff411295f92cddfce21521594d58cf407a15189
tree7747f4905ec6417a4e3e6fafbd2888777c8fa1e8
parent96054a1857e597ec15c36b935ea076a550047f02
[lldb] Improve debugging 32-bit programs on NetBSD/amd64

Implement detection of ELF binary format, and support for i386 register
context on amd64 when a 32-bit executable is being debugged.  This is
roughly based on the code from Linux.

Differential Revision: https://reviews.llvm.org/D73974
lldb/source/Host/netbsd/Host.cpp
lldb/source/Plugins/Process/Utility/RegisterContextNetBSD_x86_64.cpp
lldb/source/Plugins/Process/Utility/RegisterContextNetBSD_x86_64.h