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

Issue 4684002: Microdumps: refactor out common parts of minidump_writer.cc (Closed)

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

Description

Microdumps: refactor out common parts of minidump_writer.cc

This change is a pure refactoring of the common bits of minidump_writer.cc
that will be shared soon with the upcoming microdump_writer.cc.
In particular, this CL is extracting the following classes:
- ThreadInfo: handles the state of the threads in the crashing process.
- RawContextCPU: typedef for arch-specific CPU context structure.
- UContextReader: Fills out a dump RawContextCPU structure from the
  ucontext struct provided by the kernel (arch-dependent).
- SeccompUnwinder: cleans out the stack frames of the Seccomp sandbox
  on the supported architectures.
- MappingInfo: handles information about mappings

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

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

Patch Set 1 : #

Patch Set 2 : Decouple also ucontext and seccomp #

Total comments: 6

Patch Set 3 : Update makefiles #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M Makefile.am View 1 2 2 chunks +7 lines, -1 line 0 comments Download
M Makefile.in View 1 2 10 chunks +36 lines, -3 lines 0 comments Download
A src/client/linux/dump_writer_common/mapping_info.h View 1 chunk +49 lines, -0 lines 0 comments Download
A src/client/linux/dump_writer_common/raw_context_cpu.h View 1 1 chunk +53 lines, -0 lines 0 comments Download
A src/client/linux/dump_writer_common/seccomp_unwinder.cc View 1 1 chunk +154 lines, -0 lines 0 comments Download
A src/client/linux/dump_writer_common/seccomp_unwinder.h View 1 1 chunk +50 lines, -0 lines 0 comments Download
A src/client/linux/dump_writer_common/thread_info.cc View 1 1 chunk +263 lines, -0 lines 0 comments Download
A src/client/linux/dump_writer_common/thread_info.h View 1 1 chunk +88 lines, -0 lines 0 comments Download
A src/client/linux/dump_writer_common/ucontext_reader.cc View 1 1 chunk +255 lines, -0 lines 0 comments Download
A src/client/linux/dump_writer_common/ucontext_reader.h View 1 1 chunk +64 lines, -0 lines 0 comments Download
M src/client/linux/minidump_writer/linux_dumper.h View 2 chunks +2 lines, -48 lines 0 comments Download
M src/client/linux/minidump_writer/minidump_writer.cc View 1 2 8 chunks +15 lines, -571 lines 0 comments Download

Messages

Total messages: 11
primiano
Mark could you PTAL to see if makes sense to you at least at a ...
10 years, 1 month ago #1
primiano
Ah, this will require this matching upstream change: https://codereview.chromium.org/602403002 (Internal committish of PS 1: 299ee712da)
10 years, 1 month ago #2
primiano
Or eventually, I was thinking, I can just make this simple and cut it short, ...
10 years, 1 month ago #3
mmandlis
I'm all for simple and short, and I like the idea of dump_writer_common base class. ...
10 years, 1 month ago #4
Mark Mentovai
This seems all right to me. I’m all for refactoring things into common locations, but ...
10 years, 1 month ago #5
primiano
On 2014/09/26 21:39:31, Mark Mentovai wrote: > This seems all right to me. > > ...
10 years, 1 month ago #6
mmandlis
lgtm, but please address the minor comments/questions i have before submitting. i was really trying ...
10 years, 1 month ago #7
primiano
Mark: organizational question: I don't seem to have the powers to commit this change. How ...
10 years, 1 month ago #8
primiano
Mark: organizational question: I don't seem to have the powers to commit this change. How ...
10 years, 1 month ago #9
Mark Mentovai
primiano@chromium.org wrote: > Mark: organizational question: I don't seem to have the powers to commit ...
10 years, 1 month ago #10
primiano
10 years, 1 month ago #11
Message was sent while issue was closed.
Committed patchset #3 (id:150002) manually as 1388 (presubmit successful).
Sign in to reply to this message.

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