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

Issue 7734002: Refactor .so name detection logic in minidump/linux_dumper. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by primiano
Modified:
10 years, 1 month ago
CC:
google-breakpad-dev_googlegroups.com, Mark Mentovai, anton, rmcilroy
Base URL:
http://google-breakpad.googlecode.com/svn/trunk
Visibility:
Public.

Description

Refactor .so name detection logic in minidump/linux_dumper.

This is a refactoring of the logic which determines the
module name and path for a given MappingInfo in minidump_writer.cc.
Such logic, which will be soon shared also with the upcoming
microdump_writer.cc, is simply being moved to linux_dumper.cc,
extracting a GetMappingEffectiveNameAndPath method.
No behavioral change is intended.

BUG=chromium:410294
R=thestig@chromium.org

Committed: https://code.google.com/p/google-breakpad/source/detail?r=1392

Patch Set 1 #

Total comments: 11

Patch Set 2 : thestig@ review: make len args unidirectional + fix strlcpy usage + nits #

Total comments: 1

Patch Set 3 : Add doc comment to ElfFileSoName #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/client/linux/minidump_writer/linux_dumper.cc View 1 2 2 chunks +43 lines, -3 lines 0 comments Download
M src/client/linux/minidump_writer/linux_dumper.h View 1 2 chunks +13 lines, -8 lines 0 comments Download
M src/client/linux/minidump_writer/minidump_writer.cc View 1 2 chunks +14 lines, -43 lines 0 comments Download

Messages

Total messages: 8
primiano
thestig@, can I ask you to take a look to this CL? You seem to ...
10 years, 1 month ago #1
Lei Zhang (chromium)
https://breakpad.appspot.com/7734002/diff/1/src/client/linux/minidump_writer/linux_dumper.cc File src/client/linux/minidump_writer/linux_dumper.cc (right): https://breakpad.appspot.com/7734002/diff/1/src/client/linux/minidump_writer/linux_dumper.cc#newcode96 src/client/linux/minidump_writer/linux_dumper.cc:96: LinuxDumper::ElfFileIdentifierForMapping(const MappingInfo& mapping, On 2014/10/14 17:03:39, primiano wrote: > ...
10 years, 1 month ago #2
primiano
https://breakpad.appspot.com/7734002/diff/1/src/client/linux/minidump_writer/linux_dumper.cc File src/client/linux/minidump_writer/linux_dumper.cc (right): https://breakpad.appspot.com/7734002/diff/1/src/client/linux/minidump_writer/linux_dumper.cc#newcode96 src/client/linux/minidump_writer/linux_dumper.cc:96: LinuxDumper::ElfFileIdentifierForMapping(const MappingInfo& mapping, On 2014/10/14 22:38:02, Lei Zhang (chromium) ...
10 years, 1 month ago #3
primiano
https://breakpad.appspot.com/7734002/diff/1/src/client/linux/minidump_writer/linux_dumper.cc File src/client/linux/minidump_writer/linux_dumper.cc (right): https://breakpad.appspot.com/7734002/diff/1/src/client/linux/minidump_writer/linux_dumper.cc#newcode96 src/client/linux/minidump_writer/linux_dumper.cc:96: LinuxDumper::ElfFileIdentifierForMapping(const MappingInfo& mapping, On 2014/10/15 08:43:06, primiano wrote: > ...
10 years, 1 month ago #4
Lei Zhang (chromium)
lgtm Sigh, please file a google-breakpad bug so we can clean this up later. https://breakpad.appspot.com/7734002/diff/100001/src/client/linux/minidump_writer/linux_dumper.h ...
10 years, 1 month ago #5
primiano
On 2014/10/15 19:00:10, Lei Zhang (chromium) wrote: > lgtm Thanks > Sigh, please file a ...
10 years, 1 month ago #6
primiano
Committed patchset #4 (id:180001) manually as 1392 (presubmit successful).
10 years, 1 month ago #7
Ted Mielczarek
10 years, 1 month ago #8
Message was sent while issue was closed.
On 2014/10/15 19:00:10, Lei Zhang (chromium) wrote:
> lgtm
> 
> Sigh, please file a google-breakpad bug so we can clean this up later.

Sorry, this is probably all my fault. We're using the MappingInfo stuff for our
Firefox Android builds where we have our own dynamic linker as well. My coworker
has a set of Breakpad patches that have been bitrotting because I never got
around to reviewing them that should let us remove all the MappingInfo junk:
https://breakpad.appspot.com/580002/
https://breakpad.appspot.com/573002/
https://breakpad.appspot.com/562002/
https://breakpad.appspot.com/571003/
https://breakpad.appspot.com/578002/
https://breakpad.appspot.com/587002/

(I think that's all of them.) If one of you has bandwidth to review those we
could clean a lot of this up.
Sign in to reply to this message.

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