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

Issue 978463003: minidump: Reorganize MinidumpModuleCrashpadInfo to improve linking between structures (Closed)

Created:
5 years, 9 months ago by Mark Mentovai
Modified:
5 years, 9 months ago
Reviewers:
Robert Sesek
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

minidump: Reorganize MinidumpModuleCrashpadInfo to improve linking between classic and extension structures. Previosly, each MinidumpModuleCrashpadInfo structure contained a minidump_module_list_index field referencing a module in the MINIDUMP_MODULE_LIST stream by index. This layout was discovered to cause a problem for the new minidump reader in ModuleSnapshotMinidump. Instead, the module list index for linkage should be contained in the MinidumpModuleCrashpadInfoList alongside the LOCATION_DESCRIPTORs pointing to each MinidumpModuleCrashpadInfo. The organizational difference is small, but this enables a better design for ModuleSnapshotMinidump. When initializing a ModuleSnapshotMinidump with the new layout, it is possible for the caller to have access to the location descriptor for the MinidumpModuleCrashpadInfo corresponding to a MINIDUMP_MODULE_LIST. Previously, the caller would not have had this data without interpreting each MinidumpModuleCrashpadInfo, which ModuleSnapshotMinidump would have to do anyway. MinidumpModuleCrashpadInfoListWriter was the only user of MinidumpLocationDescriptorListWriter, which is obsoleted and removed in this change. Its functionality is moving directly into MinidumpModuleCrashpadInfoListWriter, but it is no longer generic enough to maintain as a distinct class. TEST=minidump_test \ MinidumpModuleCrashpadInfoWriter.*,MinidumpCrashpadInfoWriter.* R=rsesek@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/4539fd1553d43ff2c754d84af45c2e5040d0f0c2

Patch Set 1 #

Patch Set 2 : Minor update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -531 lines) Patch
M minidump/minidump.gyp View 3 chunks +0 lines, -5 lines 0 comments Download
M minidump/minidump_crashpad_info_writer_test.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M minidump/minidump_extensions.h View 4 chunks +27 lines, -23 lines 0 comments Download
D minidump/minidump_location_descriptor_list_writer.h View 1 chunk +0 lines, -83 lines 0 comments Download
D minidump/minidump_location_descriptor_list_writer.cc View 1 chunk +0 lines, -105 lines 0 comments Download
D minidump/minidump_location_descriptor_list_writer_test.cc View 1 chunk +0 lines, -110 lines 0 comments Download
M minidump/minidump_module_crashpad_info_writer.h View 5 chunks +22 lines, -15 lines 0 comments Download
M minidump/minidump_module_crashpad_info_writer.cc View 1 3 chunks +88 lines, -16 lines 0 comments Download
M minidump/minidump_module_crashpad_info_writer_test.cc View 15 chunks +88 lines, -59 lines 0 comments Download
D minidump/test/minidump_location_descriptor_list_test_util.h View 1 chunk +0 lines, -45 lines 0 comments Download
D minidump/test/minidump_location_descriptor_list_test_util.cc View 1 chunk +0 lines, -49 lines 0 comments Download
M minidump/test/minidump_rva_list_test_util.cc View 1 chunk +1 line, -2 lines 0 comments Download
M minidump/test/minidump_writable_test_util.h View 3 chunks +7 lines, -7 lines 0 comments Download
M minidump/test/minidump_writable_test_util.cc View 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
Mark Mentovai
5 years, 9 months ago (2015-03-03 20:07:16 UTC) #2
Robert Sesek
LGTM. Yes this is much cleaner.
5 years, 9 months ago (2015-03-04 00:17:39 UTC) #3
Mark Mentovai
5 years, 9 months ago (2015-03-04 15:53:57 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
4539fd1553d43ff2c754d84af45c2e5040d0f0c2 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698