mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-09-15 19:37:06 +00:00
Fix dump_syms clang Windows build.
- Put FileHeaderMachineToCpuString definition in header. - Remove extra semi-colon. Change-Id: I726ad0f73c57908576414fd828052dff09f5c51f Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/1673142 Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
c11646e643
commit
e1b5fef027
|
@ -404,25 +404,4 @@ wstring GenerateDebugIdentifier(DWORD age, DWORD signature)
|
||||||
return wstring(identifier_string);
|
return wstring(identifier_string);
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr const wchar_t* FileHeaderMachineToCpuString(WORD machine)
|
|
||||||
{
|
|
||||||
{
|
|
||||||
switch (machine) {
|
|
||||||
case IMAGE_FILE_MACHINE_I386:
|
|
||||||
{
|
|
||||||
return L"x86";
|
|
||||||
}
|
|
||||||
case IMAGE_FILE_MACHINE_IA64:
|
|
||||||
case IMAGE_FILE_MACHINE_AMD64:
|
|
||||||
{
|
|
||||||
return L"x86_64";
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
{
|
|
||||||
return L"unknown";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace google_breakpad
|
} // namespace google_breakpad
|
||||||
|
|
|
@ -60,7 +60,18 @@ wstring GenerateDebugIdentifier(DWORD age, DWORD signature);
|
||||||
|
|
||||||
// Converts |machine| enum value to the corresponding string used by Breakpad.
|
// Converts |machine| enum value to the corresponding string used by Breakpad.
|
||||||
// The enum is IMAGE_FILE_MACHINE_*, contained in winnt.h.
|
// The enum is IMAGE_FILE_MACHINE_*, contained in winnt.h.
|
||||||
constexpr const wchar_t* FileHeaderMachineToCpuString(WORD machine);
|
constexpr const wchar_t* FileHeaderMachineToCpuString(WORD machine) {
|
||||||
|
switch (machine) {
|
||||||
|
case IMAGE_FILE_MACHINE_I386: {
|
||||||
|
return L"x86";
|
||||||
|
}
|
||||||
|
case IMAGE_FILE_MACHINE_IA64:
|
||||||
|
case IMAGE_FILE_MACHINE_AMD64: {
|
||||||
|
return L"x86_64";
|
||||||
|
}
|
||||||
|
default: { return L"unknown"; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace google_breakpad
|
} // namespace google_breakpad
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
#include "common/windows/pdb_source_line_writer.h"
|
#include "common/windows/pdb_source_line_writer.h"
|
||||||
#include "common/windows/pe_source_line_writer.h"
|
#include "common/windows/pe_source_line_writer.h"
|
||||||
|
|
||||||
using std::wstring;;
|
using std::wstring;
|
||||||
using google_breakpad::PDBSourceLineWriter;
|
using google_breakpad::PDBSourceLineWriter;
|
||||||
using google_breakpad::PESourceLineWriter;
|
using google_breakpad::PESourceLineWriter;
|
||||||
using std::unique_ptr;
|
using std::unique_ptr;
|
||||||
|
|
Loading…
Reference in a new issue