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

Issue 113893: Fork breakpad's dump_syms and related code. Generate XOR of first page of mem... (Closed)

Created:
11 years, 7 months ago by Lei Zhang
Modified:
9 years, 7 months ago
Reviewers:
agl
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fork breakpad's dump_syms and related code. Generate XOR of first page of memory instead of MD5 of text section. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=17031

Patch Set 1 #

Patch Set 2 : make gcl lint happy #

Total comments: 14

Patch Set 3 : fix nits, code style changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1055 lines, -5 lines) Patch
M breakpad/breakpad.gyp View 2 chunks +6 lines, -5 lines 0 comments Download
A breakpad/linux/dump_symbols.h View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
A breakpad/linux/dump_symbols.cc View 1 2 1 chunk +779 lines, -0 lines 0 comments Download
A breakpad/linux/dump_syms.cc View 1 2 1 chunk +50 lines, -0 lines 0 comments Download
A breakpad/linux/file_id.h View 1 2 1 chunk +70 lines, -0 lines 0 comments Download
A breakpad/linux/file_id.cc View 1 2 1 chunk +103 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Lei Zhang
11 years, 6 months ago (2009-05-27 16:44:30 UTC) #1
agl
LGTM: nits only. http://codereview.chromium.org/113893/diff/16/1006 File breakpad/linux/dump_symbols.cc (right): http://codereview.chromium.org/113893/diff/16/1006#newcode1 Line 1: // Copyright (c) 2006, 2009, ...
11 years, 6 months ago (2009-05-27 17:38:48 UTC) #2
Lei Zhang
11 years, 6 months ago (2009-05-27 18:19:29 UTC) #3
http://codereview.chromium.org/113893/diff/16/1006
File breakpad/linux/dump_symbols.cc (right):

http://codereview.chromium.org/113893/diff/16/1006#newcode1
Line 1: // Copyright (c) 2006, 2009, Google Inc.
On 2009/05/27 17:38:48, agl wrote:
> Assuming that this file is untouched.

Just different includes: breakpad/linux/foo.h instead of common/linux/foo.h.

http://codereview.chromium.org/113893/diff/16/1007
File breakpad/linux/dump_symbols.h (right):

http://codereview.chromium.org/113893/diff/16/1007#newcode36
Line 36: #include <string>
On 2009/05/27 17:38:48, agl wrote:
> (Note, you might want to ignore the two comments below to avoid forking. Just
> including them for completeness.)

It feels weird forking the .cc file but not the .h file.

http://codereview.chromium.org/113893/diff/16/1007#newcode42
Line 42: bool WriteSymbolFile(const std::string &obj_file,
On 2009/05/27 17:38:48, agl wrote:
> & on the left

Done and done.

http://codereview.chromium.org/113893/diff/16/1004
File breakpad/linux/file_id.cc (right):

http://codereview.chromium.org/113893/diff/16/1004#newcode63
Line 63: void *base = mmap(NULL, mapped_len,
On 2009/05/27 17:38:48, agl wrote:
> * on the left (I hate it, but Evan always gets me :)

Fixed all instances.

http://codereview.chromium.org/113893/diff/16/1004#newcode64
Line 64: PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
On 2009/05/27 17:38:48, agl wrote:
> You should close(fd) right after mmap. If it was successful, you don't need it
> any more and, if it failed, you want to close it anyway.

Done.

http://codereview.chromium.org/113893/diff/16/1004#newcode71
Line 71: identifier[i] = '\0';
On 2009/05/27 17:38:48, agl wrote:
> ... but if you don't: '\0' -> 0 - it's a uint8_t, not a char

Replaced with a memset. (It started out as a char.)

Powered by Google App Engine
This is Rietveld 408576698