diff options
| author | Adrian McCarthy <amccarth@google.com> | 2016-04-04 16:41:16 +0000 |
|---|---|---|
| committer | Adrian McCarthy <amccarth@google.com> | 2016-04-04 16:41:16 +0000 |
| commit | 68374d15370f63a29e33c867088255839c0f92dd (patch) | |
| tree | bac7851bf42f7e4dd059173596eef708fcce5be1 /lldb/source/Plugins/Process/Windows | |
| parent | 35508d492146706b200bc9f07f1305bdde38c6f7 (diff) | |
| download | bcm5719-llvm-68374d15370f63a29e33c867088255839c0f92dd.tar.gz bcm5719-llvm-68374d15370f63a29e33c867088255839c0f92dd.zip | |
Set the architecture type from minidump more precisely. Differentiate i686 v i386 when possible.
llvm-svn: 265308
Diffstat (limited to 'lldb/source/Plugins/Process/Windows')
| -rw-r--r-- | lldb/source/Plugins/Process/Windows/MiniDump/ProcessWinMiniDump.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/Windows/MiniDump/ProcessWinMiniDump.cpp b/lldb/source/Plugins/Process/Windows/MiniDump/ProcessWinMiniDump.cpp index 77566773262..f09872fa60c 100644 --- a/lldb/source/Plugins/Process/Windows/MiniDump/ProcessWinMiniDump.cpp +++ b/lldb/source/Plugins/Process/Windows/MiniDump/ProcessWinMiniDump.cpp @@ -411,9 +411,17 @@ ProcessWinMiniDump::Impl::DetermineArchitecture() 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; } |

