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

Issue 1884283002: Add debug fission support. (Closed)

Created:
4 years, 8 months ago by yunlian
Modified:
4 years, 5 months ago
CC:
google-breakpad-dev_googlegroups.com
Base URL:
https://chromium.googlesource.com/breakpad/breakpad.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

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 Committed: https://chromium.googlesource.com/breakpad/breakpad/+/764c21f7529df70a19f1e1cb33bb9ece28e0bf8f

Patch Set 1 #

Total comments: 49

Patch Set 2 : #

Patch Set 3 : Add debug fission support. #

Patch Set 4 : #

Total comments: 36

Patch Set 5 : Add debug fission support #

Total comments: 3

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : Add debug fission support. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2230 lines, -106 lines) Patch
M Makefile.am View 4 chunks +4 lines, -0 lines 0 comments Download
M Makefile.in View 19 chunks +43 lines, -1 line 0 comments Download
M src/common/common.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/common/dwarf/bytereader.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/common/dwarf/bytereader.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M src/common/dwarf/dwarf2enums.h View 1 3 chunks +27 lines, -2 lines 0 comments Download
M src/common/dwarf/dwarf2reader.h View 1 2 3 4 5 6 chunks +311 lines, -75 lines 0 comments Download
M src/common/dwarf/dwarf2reader.cc View 1 2 3 4 5 8 chunks +410 lines, -26 lines 0 comments Download
A src/common/dwarf/elf_reader.h View 1 1 chunk +166 lines, -0 lines 0 comments Download
A src/common/dwarf/elf_reader.cc View 1 1 chunk +1258 lines, -0 lines 0 comments Download
M src/common/linux/dump_symbols.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/common/mac/dump_syms.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 35 (10 generated)
yunlian
4 years, 8 months ago (2016-04-14 20:47:59 UTC) #3
vapier
warnings will have to be fixed before we can merge the BUG= line looks incorrect ...
4 years, 8 months ago (2016-04-14 22:48:48 UTC) #4
vapier
also, missing some unittest updates
4 years, 8 months ago (2016-04-14 22:49:06 UTC) #5
yunlian
version #2 is not ready for review. I will upload a review ready version later. ...
4 years, 8 months ago (2016-04-14 23:18:49 UTC) #6
yunlian
https://codereview.chromium.org/1884283002/diff/1/src/common/common.gyp File src/common/common.gyp (right): https://codereview.chromium.org/1884283002/diff/1/src/common/common.gyp#newcode67 src/common/common.gyp:67: 'dwarf/elf_reader.cc', On 2016/04/14 22:48:46, vapier wrote: > keep it ...
4 years, 8 months ago (2016-04-18 21:20:53 UTC) #7
yunlian
4 years, 8 months ago (2016-04-18 21:20:55 UTC) #8
yunlian
ping?
4 years, 8 months ago (2016-04-22 16:26:53 UTC) #10
Mark Seaborn
Are you sure you have the correct bug number with "BUG=chromium:559633" there? That's a private ...
4 years, 8 months ago (2016-04-26 18:25:39 UTC) #11
yunlian
On 2016/04/26 18:25:39, Mark Seaborn wrote: > Are you sure you have the correct bug ...
4 years, 8 months ago (2016-04-26 21:36:54 UTC) #13
yunlian
4 years, 8 months ago (2016-04-26 22:30:41 UTC) #15
ivanpe
This code review is quite large and some of code already exists elsewhere. Can you ...
4 years, 8 months ago (2016-04-27 01:11:45 UTC) #16
yunlian
https://codereview.chromium.org/1884283002/diff/60001/src/common/dwarf/dwarf2reader.cc File src/common/dwarf/dwarf2reader.cc (right): https://codereview.chromium.org/1884283002/diff/60001/src/common/dwarf/dwarf2reader.cc#newcode603 src/common/dwarf/dwarf2reader.cc:603: On 2016/04/27 01:11:44, ivanpe wrote: > Please, do not ...
4 years, 7 months ago (2016-04-27 16:35:29 UTC) #18
ivanpe
https://codereview.chromium.org/1884283002/diff/60001/src/common/dwarf/elf_reader.cc File src/common/dwarf/elf_reader.cc (right): https://codereview.chromium.org/1884283002/diff/60001/src/common/dwarf/elf_reader.cc#newcode2 src/common/dwarf/elf_reader.cc:2: // Author: chatham@google.com (Andrew Chatham) On 2016/04/27 16:35:29, yunlian ...
4 years, 7 months ago (2016-04-27 18:02:07 UTC) #19
dehao
lgtm
4 years, 7 months ago (2016-05-02 18:11:28 UTC) #20
yunlian
The description is updated. https://codereview.chromium.org/1884283002/diff/80001/src/common/dwarf/dwarf2reader.cc File src/common/dwarf/dwarf2reader.cc (right): https://codereview.chromium.org/1884283002/diff/80001/src/common/dwarf/dwarf2reader.cc#newcode690 src/common/dwarf/dwarf2reader.cc:690: base_name, std::make_pair(reinterpret_cast<const uint8_t *>(section_data), On ...
4 years, 7 months ago (2016-05-02 21:17:38 UTC) #22
ivanpe
On 2016/05/02 21:17:38, yunlian wrote: > The description is updated. > > https://codereview.chromium.org/1884283002/diff/80001/src/common/dwarf/dwarf2reader.cc > File ...
4 years, 7 months ago (2016-05-03 01:24:31 UTC) #23
yunlian
On 2016/05/03 01:24:31, ivanpe wrote: > On 2016/05/02 21:17:38, yunlian wrote: > > The description ...
4 years, 7 months ago (2016-05-03 16:20:48 UTC) #25
ivanpe
On 2016/05/03 16:20:48, yunlian wrote: > On 2016/05/03 01:24:31, ivanpe wrote: > > On 2016/05/02 ...
4 years, 7 months ago (2016-05-03 16:24:43 UTC) #26
yunlian
On 2016/05/03 16:24:43, ivanpe wrote: > On 2016/05/03 16:20:48, yunlian wrote: > > On 2016/05/03 ...
4 years, 7 months ago (2016-05-03 21:53:23 UTC) #27
yunlian
Committed patchset #8 (id:140001) manually as 764c21f7529df70a19f1e1cb33bb9ece28e0bf8f (presubmit successful).
4 years, 7 months ago (2016-05-04 18:09:49 UTC) #29
thomasn
On 2016/05/04 18:09:49, yunlian wrote: > Committed patchset #8 (id:140001) manually as > 764c21f7529df70a19f1e1cb33bb9ece28e0bf8f (presubmit ...
4 years, 7 months ago (2016-05-06 18:25:20 UTC) #30
yunlian
On 2016/05/06 18:25:20, thomasn wrote: > On 2016/05/04 18:09:49, yunlian wrote: > > Committed patchset ...
4 years, 7 months ago (2016-05-06 20:55:04 UTC) #31
thomasn
On 2016/05/06 20:55:04, yunlian wrote: > On 2016/05/06 18:25:20, thomasn wrote: > > On 2016/05/04 ...
4 years, 7 months ago (2016-05-07 03:50:19 UTC) #32
yunlian
On 2016/05/07 03:50:19, thomasn wrote: > On 2016/05/06 20:55:04, yunlian wrote: > > On 2016/05/06 ...
4 years, 7 months ago (2016-05-07 16:03:19 UTC) #33
Ted Mielczarek
4 years, 5 months ago (2016-07-01 16:11:46 UTC) #35
Message was sent while issue was closed.
I didn't notice this patch when it went in, but it seems a little silly that we
added elf_reader.{cc,h} when we already had ELF parsing code in the tree:
https://chromium.googlesource.com/breakpad/breakpad/+/master/src/common/linux...
https://chromium.googlesource.com/breakpad/breakpad/+/master/src/common/linux...

Especially since this code is used in dump_symbols, where we're already using
that other ELF parsing code.

Powered by Google App Engine
This is Rietveld 408576698