|
Switch the Linux minidump writer to use MDCVInfoELF for CV data.
This preserves full build ids in minidumps, which are useful for
tracking down the right version of system libraries from Linux
distributions.
The default build id produced by GNU binutils' ld is a 160-bit SHA-1
hash of some parts of the binary, which is exactly 20 bytes:
https://sourceware.org/binutils/docs-2.26/ld/Options.html#index-g_t_002d_002dbuild_002did-292
The bulk of the changes here are to change the signatures of the
FileID methods to use a wasteful_vector instead of raw pointers, since
build ids can be of arbitrary length.
The previous change that added support for this in the processor code
preserved the return value of `Minidump::debug_identifier()` as the
current `GUID+age` treatment for backwards-compatibility, and exposed
the full build id from `Minidump::code_identifier()`, which was
previously stubbed out for Linux dumps. This change keeps the debug ID
in the `dump_syms` output the same to match.
R=mark@chromium.org, thestig@chromium.org
BUG=
Committed: https://chromium.googlesource.com/breakpad/breakpad/+/6c8f80aa8b3ba8120c4158c069bb298c044dedf9
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+459 lines, -227 lines) |
Patch |
|
M |
Makefile.am
|
View
|
1
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
Makefile.in
|
View
|
1
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
src/client/linux/handler/exception_handler_unittest.cc
|
View
|
1
|
2 chunks |
+1 line, -14 lines |
0 comments
|
Download
|
|
M |
src/client/linux/microdump_writer/microdump_writer.cc
|
View
|
1
|
4 chunks |
+14 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/client/linux/minidump_writer/linux_dumper.h
|
View
|
1
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
src/client/linux/minidump_writer/linux_dumper.cc
|
View
|
1
|
3 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc
|
View
|
1
|
4 chunks |
+20 lines, -13 lines |
0 comments
|
Download
|
|
M |
src/client/linux/minidump_writer/minidump_writer.cc
|
View
|
1
|
3 chunks |
+25 lines, -23 lines |
0 comments
|
Download
|
|
M |
src/client/linux/minidump_writer/minidump_writer_unittest.cc
|
View
|
1
|
5 chunks |
+52 lines, -35 lines |
0 comments
|
Download
|
|
M |
src/common/linux/dump_symbols.cc
|
View
|
1
|
5 chunks |
+13 lines, -23 lines |
0 comments
|
Download
|
|
M |
src/common/linux/file_id.h
|
View
|
1
|
2 chunks |
+15 lines, -12 lines |
0 comments
|
Download
|
|
M |
src/common/linux/file_id.cc
|
View
|
1
|
10 chunks |
+36 lines, -34 lines |
0 comments
|
Download
|
|
M |
src/common/linux/file_id_unittest.cc
|
View
|
1
|
10 chunks |
+117 lines, -59 lines |
0 comments
|
Download
|
|
M |
src/common/memory.h
|
View
|
1
|
7 chunks |
+48 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/common/memory_unittest.cc
|
View
|
1
|
5 chunks |
+27 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/processor/minidump_unittest.cc
|
View
|
1
|
1 chunk |
+74 lines, -0 lines |
0 comments
|
Download
|
Total messages: 18 (3 generated)
|