From aa57b8e3dedd3cdc9f627cddae9c80b285d5a39b Mon Sep 17 00:00:00 2001 From: mmentovai Date: Thu, 26 Oct 2006 00:27:00 +0000 Subject: Add MDString to minidump_format.h (#59). r=bryner http://groups.google.com/group/airbag-dev/browse_thread/thread/599a47765598cf34 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@50 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/processor/minidump_format.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/processor') diff --git a/src/processor/minidump_format.h b/src/processor/minidump_format.h index ef223754..b873755f 100644 --- a/src/processor/minidump_format.h +++ b/src/processor/minidump_format.h @@ -487,6 +487,13 @@ typedef enum { } MDStreamType; /* MINIDUMP_STREAM_TYPE */ +typedef struct { + u_int32_t length; /* Length of buffer in bytes (not characters), + * excluding 0-terminator */ + u_int16_t buffer[0]; /* UTF-16-encoded, 0-terminated */ +} MDString; /* MINIDUMP_STRING */ + + typedef struct { u_int32_t thread_id; u_int32_t suspend_count; @@ -509,7 +516,7 @@ typedef struct { u_int32_t size_of_image; u_int32_t checksum; /* 0 if unknown */ u_int32_t time_date_stamp; /* time_t */ - MDRVA module_name_rva; /* Pathname or filename, UTF-16 */ + MDRVA module_name_rva; /* MDString, pathname or filename */ MDVSFixedFileInfo version_info; /* The next field stores a CodeView record and is populated when a module's @@ -863,7 +870,7 @@ typedef struct { u_int32_t minor_version; u_int32_t build_number; u_int32_t platform_id; - MDRVA csd_version_rva; /* UTF-16 string further identifying the + MDRVA csd_version_rva; /* MDString further identifying the * host OS. * Windows: name of the installed OS * service pack. -- cgit v1.2.1