Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Side by Side Diff: src/client/linux/minidump_writer/linux_dumper.h

Issue 1688743002: Switch the Linux minidump writer to use MDCVInfoELF for CV data. (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010, Google Inc. 1 // Copyright (c) 2010, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #if defined(__ANDROID__) 42 #if defined(__ANDROID__)
43 #include <link.h> 43 #include <link.h>
44 #endif 44 #endif
45 #include <linux/limits.h> 45 #include <linux/limits.h>
46 #include <stdint.h> 46 #include <stdint.h>
47 #include <sys/types.h> 47 #include <sys/types.h>
48 #include <sys/user.h> 48 #include <sys/user.h>
49 49
50 #include "client/linux/dump_writer_common/mapping_info.h" 50 #include "client/linux/dump_writer_common/mapping_info.h"
51 #include "client/linux/dump_writer_common/thread_info.h" 51 #include "client/linux/dump_writer_common/thread_info.h"
52 #include "common/linux/file_id.h"
52 #include "common/memory.h" 53 #include "common/memory.h"
53 #include "google_breakpad/common/minidump_format.h" 54 #include "google_breakpad/common/minidump_format.h"
54 55
55 namespace google_breakpad { 56 namespace google_breakpad {
56 57
57 // Typedef for our parsing of the auxv variables in /proc/pid/auxv. 58 // Typedef for our parsing of the auxv variables in /proc/pid/auxv.
58 #if defined(__i386) || defined(__ARM_EABI__) || \ 59 #if defined(__i386) || defined(__ARM_EABI__) || \
59 (defined(__mips__) && _MIPS_SIM == _ABIO32) 60 (defined(__mips__) && _MIPS_SIM == _ABIO32)
60 typedef Elf32_auxv_t elf_aux_entry; 61 typedef Elf32_auxv_t elf_aux_entry;
61 #elif defined(__x86_64) || defined(__aarch64__) || \ 62 #elif defined(__x86_64) || defined(__aarch64__) || \
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // result.|node| is the final node without any slashes. Returns true on 121 // result.|node| is the final node without any slashes. Returns true on
121 // success. 122 // success.
122 virtual bool BuildProcPath(char* path, pid_t pid, const char* node) const = 0; 123 virtual bool BuildProcPath(char* path, pid_t pid, const char* node) const = 0;
123 124
124 // Generate a File ID from the .text section of a mapped entry. 125 // Generate a File ID from the .text section of a mapped entry.
125 // If not a member, mapping_id is ignored. This method can also manipulate the 126 // If not a member, mapping_id is ignored. This method can also manipulate the
126 // |mapping|.name to truncate "(deleted)" from the file name if necessary. 127 // |mapping|.name to truncate "(deleted)" from the file name if necessary.
127 bool ElfFileIdentifierForMapping(const MappingInfo& mapping, 128 bool ElfFileIdentifierForMapping(const MappingInfo& mapping,
128 bool member, 129 bool member,
129 unsigned int mapping_id, 130 unsigned int mapping_id,
130 uint8_t identifier[sizeof(MDGUID)]); 131 uint8_t identifier[kMaxBuildID],
132 size_t* identifier_length);
131 133
132 uintptr_t crash_address() const { return crash_address_; } 134 uintptr_t crash_address() const { return crash_address_; }
133 void set_crash_address(uintptr_t crash_address) { 135 void set_crash_address(uintptr_t crash_address) {
134 crash_address_ = crash_address; 136 crash_address_ = crash_address;
135 } 137 }
136 138
137 int crash_signal() const { return crash_signal_; } 139 int crash_signal() const { return crash_signal_; }
138 void set_crash_signal(int crash_signal) { crash_signal_ = crash_signal; } 140 void set_crash_signal(int crash_signal) { crash_signal_ = crash_signal; }
139 141
140 pid_t crash_thread() const { return crash_thread_; } 142 pid_t crash_thread() const { return crash_thread_; }
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 // (or Chromium crazy linker) used. This value matches the addresses produced 247 // (or Chromium crazy linker) used. This value matches the addresses produced
246 // when the non-relocation-packed library is used for breakpad symbol 248 // when the non-relocation-packed library is used for breakpad symbol
247 // generation. 249 // generation.
248 void LatePostprocessMappings(); 250 void LatePostprocessMappings();
249 #endif // __ANDROID__ 251 #endif // __ANDROID__
250 }; 252 };
251 253
252 } // namespace google_breakpad 254 } // namespace google_breakpad
253 255
254 #endif // CLIENT_LINUX_HANDLER_LINUX_DUMPER_H_ 256 #endif // CLIENT_LINUX_HANDLER_LINUX_DUMPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698