aboutsummaryrefslogtreecommitdiff
path: root/src/common/windows/guid_string.cc
diff options
context:
space:
mode:
authormmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2006-12-06 20:18:26 +0000
committermmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2006-12-06 20:18:26 +0000
commit93fa375b580a647904925cb741266f2d679cb448 (patch)
tree2de0c843bdbce248393012eeecbe7e23572547da /src/common/windows/guid_string.cc
parentFix possible null pointer dereference in MinidumpModule (following #32). (diff)
downloadbreakpad-93fa375b580a647904925cb741266f2d679cb448.tar.xz
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
Diffstat (limited to 'src/common/windows/guid_string.cc')
-rw-r--r--src/common/windows/guid_string.cc13
1 files changed, 13 insertions, 0 deletions
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