mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-01-04 13:44:33 +01:00
Remove pointers from serialized file format
BUG=breakpad:621 R=thestig@chromium.org Review URL: https://breakpad.appspot.com/1764002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1410 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
bbbe29de11
commit
d10c8c18ae
4 changed files with 108 additions and 23 deletions
|
|
@ -342,7 +342,7 @@ typedef enum {
|
|||
MD_LINUX_ENVIRON = 0x47670007, /* /proc/$x/environ */
|
||||
MD_LINUX_AUXV = 0x47670008, /* /proc/$x/auxv */
|
||||
MD_LINUX_MAPS = 0x47670009, /* /proc/$x/maps */
|
||||
MD_LINUX_DSO_DEBUG = 0x4767000A /* MDRawDebug */
|
||||
MD_LINUX_DSO_DEBUG = 0x4767000A /* MDRawDebug{32,64} */
|
||||
} MDStreamType; /* MINIDUMP_STREAM_TYPE */
|
||||
|
||||
|
||||
|
|
@ -930,21 +930,39 @@ typedef enum {
|
|||
} MDAssertionInfoData;
|
||||
|
||||
/* These structs are used to store the DSO debug data in Linux minidumps,
|
||||
* which is necessary for converting minidumps to usable coredumps. */
|
||||
* which is necessary for converting minidumps to usable coredumps.
|
||||
* Because of a historical accident, several fields are variably encoded
|
||||
* according to client word size, so tools potentially need to support both. */
|
||||
|
||||
typedef struct {
|
||||
void* addr;
|
||||
uint32_t addr;
|
||||
MDRVA name;
|
||||
void* ld;
|
||||
} MDRawLinkMap;
|
||||
uint32_t ld;
|
||||
} MDRawLinkMap32;
|
||||
|
||||
typedef struct {
|
||||
uint32_t version;
|
||||
MDRVA map;
|
||||
MDRVA map; /* array of MDRawLinkMap32 */
|
||||
uint32_t dso_count;
|
||||
void* brk;
|
||||
void* ldbase;
|
||||
void* dynamic;
|
||||
} MDRawDebug;
|
||||
uint32_t brk;
|
||||
uint32_t ldbase;
|
||||
uint32_t dynamic;
|
||||
} MDRawDebug32;
|
||||
|
||||
typedef struct {
|
||||
uint64_t addr;
|
||||
MDRVA name;
|
||||
uint64_t ld;
|
||||
} MDRawLinkMap64;
|
||||
|
||||
typedef struct {
|
||||
uint32_t version;
|
||||
MDRVA map; /* array of MDRawLinkMap64 */
|
||||
uint32_t dso_count;
|
||||
uint64_t brk;
|
||||
uint64_t ldbase;
|
||||
uint64_t dynamic;
|
||||
} MDRawDebug64;
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(pop)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue