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

Issue 686353004: Add MinidumpContextWriter::CreateFromSnapshot(), everything downstream, and its test (Closed)

Created:
6 years, 1 month ago by Mark Mentovai
Modified:
6 years, 1 month ago
Reviewers:
Robert Sesek
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Project:
crashpad
Visibility:
Public.

Description

Add MinidumpContextWriter::CreateFromSnapshot(), everything downstream, and its test. Minidump context structures now interoperate more easily with snapshot CPUContext structures, while maintaining identical layout to before. This is facilitated by reusing the Fxsave types for the substructures which were completely identical, and by using compatible logic to initialize the minidump and snapshot structures for testing. TEST=minidump_test, snapshot_test R=rsesek@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/52c2f6edfcc70cc61b1614dad34a7bd52100a5cf

Patch Set 1 #

Patch Set 2 : Only set the low 16 bits of segment registers #

Patch Set 3 : Rebase #

Patch Set 4 : Sort #

Total comments: 11

Patch Set 5 : Address review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+973 lines, -214 lines) Patch
M minidump/minidump_context.h View 1 2 3 4 5 chunks +17 lines, -41 lines 0 comments Download
M minidump/minidump_context_writer.h View 3 chunks +35 lines, -0 lines 0 comments Download
M minidump/minidump_context_writer.cc View 1 2 3 4 4 chunks +133 lines, -0 lines 0 comments Download
M minidump/minidump_context_writer_test.cc View 5 chunks +58 lines, -4 lines 0 comments Download
M minidump/minidump_exception_writer_test.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M minidump/minidump_thread_writer_test.cc View 5 chunks +10 lines, -5 lines 0 comments Download
M minidump/test/minidump_context_test_util.h View 2 chunks +19 lines, -5 lines 0 comments Download
M minidump/test/minidump_context_test_util.cc View 1 9 chunks +217 lines, -157 lines 0 comments Download
M snapshot/cpu_context.h View 1 chunk +29 lines, -0 lines 0 comments Download
M snapshot/cpu_context.cc View 1 chunk +66 lines, -0 lines 0 comments Download
A snapshot/cpu_context_test.cc View 1 chunk +150 lines, -0 lines 0 comments Download
M snapshot/snapshot.gyp View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
A snapshot/test/test_cpu_context.h View 1 chunk +67 lines, -0 lines 0 comments Download
A snapshot/test/test_cpu_context.cc View 1 chunk +165 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Mark Mentovai
6 years, 1 month ago (2014-10-30 17:12:59 UTC) #2
Robert Sesek
https://codereview.chromium.org/686353004/diff/80001/minidump/minidump_context_writer.cc File minidump/minidump_context_writer.cc (right): https://codereview.chromium.org/686353004/diff/80001/minidump/minidump_context_writer.cc#newcode79 minidump/minidump_context_writer.cc:79: context_.context_flags |= kMinidumpContextX86All; Why |= here? The other operations ...
6 years, 1 month ago (2014-11-03 21:26:58 UTC) #4
Mark Mentovai
Updated. https://codereview.chromium.org/686353004/diff/80001/minidump/minidump_context_writer.cc File minidump/minidump_context_writer.cc (right): https://codereview.chromium.org/686353004/diff/80001/minidump/minidump_context_writer.cc#newcode105 minidump/minidump_context_writer.cc:105: } Robert Sesek wrote: > What about fxsave.xmm ...
6 years, 1 month ago (2014-11-03 22:01:21 UTC) #5
Robert Sesek
LGTM https://codereview.chromium.org/686353004/diff/80001/minidump/minidump_context_writer.cc File minidump/minidump_context_writer.cc (right): https://codereview.chromium.org/686353004/diff/80001/minidump/minidump_context_writer.cc#newcode155 minidump/minidump_context_writer.cc:155: context_.cs = context_snapshot->cs; On 2014/11/03 22:01:21, Mark Mentovai ...
6 years, 1 month ago (2014-11-03 22:22:06 UTC) #6
Mark Mentovai
https://codereview.chromium.org/686353004/diff/80001/minidump/minidump_context_writer.cc File minidump/minidump_context_writer.cc (right): https://codereview.chromium.org/686353004/diff/80001/minidump/minidump_context_writer.cc#newcode155 minidump/minidump_context_writer.cc:155: context_.cs = context_snapshot->cs; On 2014/11/03 22:22:06, Robert Sesek wrote: ...
6 years, 1 month ago (2014-11-03 22:43:21 UTC) #7
Mark Mentovai
6 years, 1 month ago (2014-11-03 22:43:43 UTC) #8
Message was sent while issue was closed.
Committed patchset #5 (id:100001) manually as
52c2f6edfcc70cc61b1614dad34a7bd52100a5cf (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698