Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(109)

Issue 393002: Rework dump_symbols.cc to handle cross-word-size dumping (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by Ted Mielczarek
Modified:
12 years, 4 months ago
Reviewers:
jimb, jimb, digit, Mark Mentovai
CC:
google-breakpad-dev_googlegroups.com
Visibility:
Public.

Description

This patch reworks dump_symbols.cc to use templates+traits to handle dumping
cross-word-size binaries. It's kind of invasive, but the diff wound up not being
as bad as I thought it would. I had to get rid of your FixAddress trick, but I
replaced it with some template trickery. I ran the tests on both a 64-bit and
32-bit build and they pass, so that's nice.

Patch Set 1 #

Total comments: 10

Patch Set 2 : Revised formatting #

Total comments: 12

Patch Set 3 : Comments addressed #

Patch Set 4 : Comments addressed #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/common/linux/dump_symbols.cc View 1 2 3 9 chunks +232 lines, -220 lines 0 comments Download
M src/common/linux/dump_symbols_unittest.cc View 1 4 chunks +2 lines, -7 lines 1 comment Download
A src/common/linux/elfutils-inl.h View 1 2 1 chunk +74 lines, -0 lines 0 comments Download
M src/common/linux/elfutils.cc View 1 1 chunk +34 lines, -27 lines 0 comments Download
M src/common/linux/elfutils.h View 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 20
Ted Mielczarek
12 years, 5 months ago #1
jimb_red-bean.com
Hi, Ted. I'm going to be in Japan until the end of the month, and ...
12 years, 5 months ago #2
Ted Mielczarek
Thanks for the heads up! No rush here, this just kept annoying me trying to ...
12 years, 5 months ago #3
digit
For the record, I confirm that this patch, when applied after 392002, builds correctly on ...
12 years, 5 months ago #4
Ted Mielczarek
On Wed, Jun 27, 2012 at 11:28 AM, <digit@chromium.org> wrote: > For the record, I ...
12 years, 5 months ago #5
digit
Sure, I just added Mark on cc to this reply. Mark, can we ask you ...
12 years, 5 months ago #6
Mark Mentovai
This looks mostly good, except for a ton of formatting things. https://breakpad.appspot.com/393002/diff/1/src/common/linux/dump_symbols.cc File src/common/linux/dump_symbols.cc (right): ...
12 years, 4 months ago #7
Ted Mielczarek
Thanks, I'll clean up the formatting. https://breakpad.appspot.com/393002/diff/1/src/common/linux/dump_symbols.cc File src/common/linux/dump_symbols.cc (right): https://breakpad.appspot.com/393002/diff/1/src/common/linux/dump_symbols.cc#newcode159 src/common/linux/dump_symbols.cc:159: bool On 2012/06/29 ...
12 years, 4 months ago #8
digit
Any chance to see this patch (and the one it depends on) rebased and submitted ...
12 years, 4 months ago #9
Ted Mielczarek
On Fri, Jul 13, 2012 at 6:57 AM, <digit@chromium.org> wrote: > Any chance to see ...
12 years, 4 months ago #10
Ted Mielczarek
12 years, 4 months ago #11
Ted Mielczarek
I believe I have exorcised the formatting demons.
12 years, 4 months ago #12
Ted Mielczarek
https://breakpad.appspot.com/393002/diff/13001/src/common/linux/dump_symbols.cc File src/common/linux/dump_symbols.cc (right): https://breakpad.appspot.com/393002/diff/13001/src/common/linux/dump_symbols.cc#newcode164 src/common/linux/dump_symbols.cc:164: Module* module) { Just noticed this indent was wrong ...
12 years, 4 months ago #13
Mark Mentovai
I think this is great. https://breakpad.appspot.com/393002/diff/13001/src/common/linux/dump_symbols.cc File src/common/linux/dump_symbols.cc (right): https://breakpad.appspot.com/393002/diff/13001/src/common/linux/dump_symbols.cc#newcode144 src/common/linux/dump_symbols.cc:144: const typename ElfClass::Phdr* program_headers, ...
12 years, 4 months ago #14
Ted Mielczarek
https://breakpad.appspot.com/393002/diff/13001/src/common/linux/dump_symbols.cc File src/common/linux/dump_symbols.cc (right): https://breakpad.appspot.com/393002/diff/13001/src/common/linux/dump_symbols.cc#newcode144 src/common/linux/dump_symbols.cc:144: const typename ElfClass::Phdr* program_headers, On 2012/07/18 15:35:13, Mark Mentovai ...
12 years, 4 months ago #15
Mark Mentovai
I don’t see any new changes here. Just poke this again by e-mail when the ...
12 years, 4 months ago #16
Ted Mielczarek
12 years, 4 months ago #17
Ted Mielczarek
12 years, 4 months ago #18
Ted Mielczarek
Okay, this should be good to go.
12 years, 4 months ago #19
Mark Mentovai
12 years, 4 months ago #20
Awesome. LGTM.

http://breakpad.appspot.com/393002/diff/24001/src/common/linux/dump_symbols_u...
File src/common/linux/dump_symbols_unittest.cc (right):

http://breakpad.appspot.com/393002/diff/24001/src/common/linux/dump_symbols_u...
src/common/linux/dump_symbols_unittest.cc:161: 
Remove the blank line at the end of the file.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted