From 93fa375b580a647904925cb741266f2d679cb448 Mon Sep 17 00:00:00 2001 From: mmentovai Date: Wed, 6 Dec 2006 20:18:26 +0000 Subject: symupload parameters don't match processor expectations (#91). r=bryner - Interface change: the "guid" and "age" parameters supplied to a symbol server by symupload have been merged into "debug_identifier". Some other parameters have had their names changed. Additional code_file, os, and cpu parameters have been added. - Interface change: the format of the MODULE line at the top of dumped .sym files has changed slightly. The fields used for uuid and age have merged into a debug_identifier-type field. - debug_identifier is formatted the same way as CodeModule::debug_identifier for ease of server-side processing. http://groups.google.com/group/airbag-dev/browse_thread/thread/8022f504cf01f994 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@77 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/windows/guid_string.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/common/windows/guid_string.cc') diff --git a/src/common/windows/guid_string.cc b/src/common/windows/guid_string.cc index 42a0b21a..0adc248a 100644 --- a/src/common/windows/guid_string.cc +++ b/src/common/windows/guid_string.cc @@ -52,4 +52,17 @@ wstring GUIDString::GUIDToWString(GUID *guid) { return wstring(guid_string); } +// static +wstring GUIDString::GUIDToSymbolServerWString(GUID *guid) { + wchar_t guid_string[33]; + WindowsStringUtils::safe_swprintf( + guid_string, sizeof(guid_string) / sizeof(guid_string[0]), + L"%08X%04X%04X%02X%02X%02X%02X%02X%02X%02X%02X", + guid->Data1, guid->Data2, guid->Data3, + guid->Data4[0], guid->Data4[1], guid->Data4[2], + guid->Data4[3], guid->Data4[4], guid->Data4[5], + guid->Data4[6], guid->Data4[7]); + return wstring(guid_string); +} + } // namespace google_airbag -- cgit v1.2.1