aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorAlvin Wong <alvin@alvinhc.com>2022-06-09 22:34:02 +0300
committerMartin Storsjö <martin@martin.st>2022-06-09 22:43:33 +0300
commit25c8a061c5739677d2fc0af29a8cc9520207b923 (patch)
tree1d1e30a29336e6acf2b2db1efd5fec44d73b6a91 /llvm/lib/Object/COFFObjectFile.cpp
parent56d68e8d7a17c32d2fd0d0894fc0776df0d85673 (diff)
downloadllvm-25c8a061c5739677d2fc0af29a8cc9520207b923.zip
llvm-25c8a061c5739677d2fc0af29a8cc9520207b923.tar.gz
llvm-25c8a061c5739677d2fc0af29a8cc9520207b923.tar.bz2
[lldb] Set COFF module ABI from default triple and make it an option
PE/COFF can use either MSVC or GNU (MinGW) ABI for C++ code, however LLDB had defaulted to MSVC implicitly with no way to override it. This causes issues when debugging modules built with the GNU ABI, sometimes even crashes. This changes the PE/COFF plugin to set the module triple according to the default target triple used to build LLDB. If the default target triple is Windows and a valid environment is specified, then this environment will be used for the module spec. This not only works for MSVC and GNU, but also other environments. A new setting, `plugin.object-file.pe-coff.abi`, has been added to allow overriding this default ABI. * Fixes https://github.com/llvm/llvm-project/issues/50775 * Fixes https://github.com/mstorsjo/llvm-mingw/issues/226 * Fixes https://github.com/mstorsjo/llvm-mingw/issues/282 Reviewed By: omjavaid Differential Revision: https://reviews.llvm.org/D127048
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions