diff options
author | Yunlian Jiang <yunlian@google.com> | 2016-05-04 11:09:44 -0700 |
---|---|---|
committer | Yunlian Jiang <yunlian@google.com> | 2016-05-04 11:09:44 -0700 |
commit | 764c21f7529df70a19f1e1cb33bb9ece28e0bf8f (patch) | |
tree | d71aaba9a7d47419c05ab7af184e117b5a115592 /src/common/linux | |
parent | macho: fix printf type mismatches (diff) | |
download | breakpad-764c21f7529df70a19f1e1cb33bb9ece28e0bf8f.tar.xz |
Add debug fission support.
This added debug fission support.
It tries to find the dwp file from the debug dir /usr/lib/debug/*/debug
and read symbols from them.
Most of this patch comes from
https://critique.corp.google.com/#review/52048295
and some fixes after that.
The elf_reader.cc comes from TOT google code. I just
removed some google dependency.
Current problems from this patch
1: Some type mismatch: from uint8_t * to char *.
2: Some hack to find the .dwp file. (replace .debug with .dwp)
BUG=chromium:604440
R=dehao@google.com, ivanpe@chromium.org
Review URL: https://codereview.chromium.org/1884283002 .
Diffstat (limited to 'src/common/linux')
-rw-r--r-- | src/common/linux/dump_symbols.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/linux/dump_symbols.cc b/src/common/linux/dump_symbols.cc index 0000add6..6b27120a 100644 --- a/src/common/linux/dump_symbols.cc +++ b/src/common/linux/dump_symbols.cc @@ -288,7 +288,8 @@ bool LoadDwarf(const string& dwarf_filename, // Make a Dwarf2Handler that drives the DIEHandler. dwarf2reader::DIEDispatcher die_dispatcher(&root_handler); // Make a DWARF parser for the compilation unit at OFFSET. - dwarf2reader::CompilationUnit reader(file_context.section_map(), + dwarf2reader::CompilationUnit reader(dwarf_filename, + file_context.section_map(), offset, &byte_reader, &die_dispatcher); |