[Lldb-commits] [lldb] r265308 - Set the architecture type from minidump more precisely. Differentiate i686 v i386 when possible.
Adrian McCarthy via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 4 09:41:17 PDT 2016
Author: amccarth
Date: Mon Apr 4 11:41:16 2016
New Revision: 265308
URL: http://llvm.org/viewvc/llvm-project?rev=265308&view=rev
Log:
Set the architecture type from minidump more precisely. Differentiate i686 v i386 when possible.
Modified:
lldb/trunk/source/Plugins/Process/Windows/MiniDump/ProcessWinMiniDump.cpp
Modified: lldb/trunk/source/Plugins/Process/Windows/MiniDump/ProcessWinMiniDump.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Windows/MiniDump/ProcessWinMiniDump.cpp?rev=265308&r1=265307&r2=265308&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Windows/MiniDump/ProcessWinMiniDump.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Windows/MiniDump/ProcessWinMiniDump.cpp Mon Apr 4 11:41:16 2016
@@ -411,9 +411,17 @@ ProcessWinMiniDump::Impl::DetermineArchi
switch (system_info_ptr->ProcessorArchitecture)
{
case PROCESSOR_ARCHITECTURE_INTEL:
- return ArchSpec(eArchTypeCOFF, IMAGE_FILE_MACHINE_I386, LLDB_INVALID_CPUTYPE);
+ if (system_info_ptr->ProcessorLevel == 6)
+ {
+ return ArchSpec("i686-pc-windows");
+ }
+ else
+ {
+ return ArchSpec("i386-pc-windows");
+ }
+ break;
case PROCESSOR_ARCHITECTURE_AMD64:
- return ArchSpec(eArchTypeCOFF, IMAGE_FILE_MACHINE_AMD64, LLDB_INVALID_CPUTYPE);
+ return ArchSpec("x86_64-pc-windows");
default:
break;
}
More information about the lldb-commits
mailing list