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

Issue 1052813002: win: make CrashpadInfo retrievable (Closed)

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

Description

win: make CrashpadInfo retrievable The main goal was to get the beginnings of module iteration and retrieval of CrashpadInfo in snapshot. The main change for that is to move crashpad_info_client_options[_test] down out of mac/. This also requires adding some of the supporting code of snapshot in ProcessReaderWin, ProcessSnapshotWin, and ModuleSnapshotWin. These are partially copied from Mac or stubbed out with lots of TODO annotations. This is a bit unfortunate, but seemed like the most productive way to make progress incrementally. That is, it's mostly placeholder at the moment, but hopefully has the right shape for things to come. R=mark@chromium.org BUG=crashpad:1 Committed: https://chromium.googlesource.com/crashpad/crashpad/+/69d135acda60d4de456e682a7d4d52f0eb14bb88

Patch Set 1 #

Patch Set 2 : fix rebase #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : move crashpad_info_client_options, start on process_snapshot_win #

Patch Set 6 : more #

Patch Set 7 : tag crashpad info #

Patch Set 8 : module snapshot and some hookups to process_info #

Patch Set 9 : . #

Patch Set 10 : remove process_memory #

Patch Set 11 : start of peimagereader #

Patch Set 12 : crashpad info pulling working #

Patch Set 13 : remove image_annotations_reader #

Patch Set 14 : tidy #

Patch Set 15 : tidy2 #

Patch Set 16 : tidy3 #

Patch Set 17 : more deletes #

Patch Set 18 : fix mac includes #

Total comments: 52

Patch Set 19 : some review fixes, genericize checked_mach_address_range #

Patch Set 20 : validate reads #

Patch Set 21 : printf warnings #

Patch Set 22 : fix log string #

Patch Set 23 : init size #

Patch Set 24 : . #

Total comments: 29

Patch Set 25 : fixes #

Patch Set 26 : missing file #

Patch Set 27 : address types for win #

Patch Set 28 : . #

Total comments: 20

Patch Set 29 : fixes #

Patch Set 30 : mac #

Patch Set 31 : cast for x86 #

Total comments: 6

Patch Set 32 : more fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1162 lines, -754 lines) Patch
M client/crashpad_info.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -2 lines 0 comments Download
M handler/mac/crash_report_exception_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
A + snapshot/crashpad_info_client_options.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
A + snapshot/crashpad_info_client_options.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A + snapshot/crashpad_info_client_options_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +58 lines, -8 lines 0 comments Download
A + snapshot/crashpad_info_client_options_test_module.cc View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download
D snapshot/mac/crashpad_info_client_options.h View 1 2 3 4 1 chunk +0 lines, -64 lines 0 comments Download
D snapshot/mac/crashpad_info_client_options.cc View 1 2 3 4 1 chunk +0 lines, -44 lines 0 comments Download
D snapshot/mac/crashpad_info_client_options_test.cc View 1 2 3 4 1 chunk +0 lines, -205 lines 0 comments Download
D snapshot/mac/crashpad_info_client_options_test_module.cc View 1 2 3 4 1 chunk +0 lines, -35 lines 0 comments Download
M snapshot/mac/module_snapshot_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M snapshot/mac/process_snapshot_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M snapshot/snapshot.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +8 lines, -2 lines 0 comments Download
M snapshot/snapshot_test.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +16 lines, -23 lines 0 comments Download
A + snapshot/win/module_snapshot_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +20 lines, -19 lines 0 comments Download
A snapshot/win/module_snapshot_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +136 lines, -0 lines 0 comments Download
A snapshot/win/pe_image_reader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +120 lines, -0 lines 0 comments Download
A snapshot/win/pe_image_reader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +182 lines, -0 lines 0 comments Download
M snapshot/win/process_reader_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 2 chunks +12 lines, -0 lines 0 comments Download
M snapshot/win/process_reader_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2 chunks +34 lines, -1 line 0 comments Download
A + snapshot/win/process_reader_win_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +22 lines, -8 lines 0 comments Download
A + snapshot/win/process_snapshot_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +32 lines, -57 lines 0 comments Download
A snapshot/win/process_snapshot_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +162 lines, -0 lines 0 comments Download
M util/mac/checked_mach_address_range.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 2 chunks +3 lines, -96 lines 0 comments Download
D util/mac/checked_mach_address_range.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +0 lines, -87 lines 0 comments Download
A + util/numeric/checked_address_range.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 7 chunks +39 lines, -26 lines 0 comments Download
A util/numeric/checked_address_range.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +120 lines, -0 lines 0 comments Download
A + util/numeric/checked_address_range_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 7 chunks +27 lines, -23 lines 0 comments Download
M util/util.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 3 chunks +4 lines, -1 line 0 comments Download
M util/util_test.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +1 line, -1 line 0 comments Download
A + util/win/address_types.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +12 lines, -14 lines 0 comments Download
A util/win/checked_win_address_range.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +36 lines, -0 lines 0 comments Download
M util/win/process_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 3 chunks +22 lines, -3 lines 0 comments Download
M util/win/process_info.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 8 chunks +28 lines, -12 lines 0 comments Download
M util/win/process_info_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 4 chunks +45 lines, -16 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
scottmg
5 years, 8 months ago (2015-04-24 20:01:37 UTC) #3
Mark Mentovai
I made it through everything but the new Windows code before I had to leave ...
5 years, 7 months ago (2015-04-29 00:41:50 UTC) #4
Mark Mentovai
https://codereview.chromium.org/1052813002/diff/360001/snapshot/win/module_snapshot_win.cc File snapshot/win/module_snapshot_win.cc (right): https://codereview.chromium.org/1052813002/diff/360001/snapshot/win/module_snapshot_win.cc#newcode47 snapshot/win/module_snapshot_win.cc:47: pe_image_reader_->Initialize( Check return value? The callee can’t fail as ...
5 years, 7 months ago (2015-04-29 19:37:16 UTC) #5
scottmg
Thanks Mark. https://codereview.chromium.org/1052813002/diff/360001/snapshot/crashpad_info_client_options_test.cc File snapshot/crashpad_info_client_options_test.cc (right): https://codereview.chromium.org/1052813002/diff/360001/snapshot/crashpad_info_client_options_test.cc#newcode113 snapshot/crashpad_info_client_options_test.cc:113: using DlHandle = void*; On 2015/04/29 00:41:50, ...
5 years, 7 months ago (2015-04-30 03:31:32 UTC) #6
Mark Mentovai
I like this! This is some real serious stuff we’re getting into now. https://codereview.chromium.org/1052813002/diff/360001/snapshot/win/module_snapshot_win.cc File ...
5 years, 7 months ago (2015-04-30 20:58:36 UTC) #7
scottmg
Thanks https://codereview.chromium.org/1052813002/diff/480001/snapshot/crashpad_info_client_options_test_module.cc File snapshot/crashpad_info_client_options_test_module.cc (right): https://codereview.chromium.org/1052813002/diff/480001/snapshot/crashpad_info_client_options_test_module.cc#newcode44 snapshot/crashpad_info_client_options_test_module.cc:44: BOOL WINAPI DllMain(HINSTANCE hinstance, DWORD reason, LPVOID reserved) ...
5 years, 7 months ago (2015-04-30 22:09:44 UTC) #8
scottmg
https://codereview.chromium.org/1052813002/diff/480001/snapshot/win/pe_image_reader.h File snapshot/win/pe_image_reader.h (right): https://codereview.chromium.org/1052813002/diff/480001/snapshot/win/pe_image_reader.h#newcode75 snapshot/win/pe_image_reader.h:75: uintptr_t size, On 2015/04/30 22:09:44, scottmg wrote: > On ...
5 years, 7 months ago (2015-04-30 22:12:23 UTC) #9
scottmg
https://codereview.chromium.org/1052813002/diff/480001/snapshot/win/pe_image_reader.h File snapshot/win/pe_image_reader.h (right): https://codereview.chromium.org/1052813002/diff/480001/snapshot/win/pe_image_reader.h#newcode75 snapshot/win/pe_image_reader.h:75: uintptr_t size, On 2015/04/30 22:12:23, scottmg wrote: > On ...
5 years, 7 months ago (2015-04-30 22:28:23 UTC) #10
Mark Mentovai
https://codereview.chromium.org/1052813002/diff/550001/snapshot/win/pe_image_reader.cc File snapshot/win/pe_image_reader.cc (right): https://codereview.chromium.org/1052813002/diff/550001/snapshot/win/pe_image_reader.cc#newcode56 snapshot/win/pe_image_reader.cc:56: address_ = address; Do you need distinct fields for ...
5 years, 7 months ago (2015-05-01 19:05:32 UTC) #11
scottmg
https://codereview.chromium.org/1052813002/diff/550001/snapshot/win/pe_image_reader.cc File snapshot/win/pe_image_reader.cc (right): https://codereview.chromium.org/1052813002/diff/550001/snapshot/win/pe_image_reader.cc#newcode56 snapshot/win/pe_image_reader.cc:56: address_ = address; On 2015/05/01 19:05:31, Mark Mentovai wrote: ...
5 years, 7 months ago (2015-05-01 19:46:32 UTC) #12
Mark Mentovai
LGTM, this is awesome! https://codereview.chromium.org/1052813002/diff/610001/snapshot/win/module_snapshot_win.cc File snapshot/win/module_snapshot_win.cc (right): https://codereview.chromium.org/1052813002/diff/610001/snapshot/win/module_snapshot_win.cc#newcode17 snapshot/win/module_snapshot_win.cc:17: #include "base/strings/stringprintf.h" Unused. https://codereview.chromium.org/1052813002/diff/610001/snapshot/win/module_snapshot_win.cc#newcode22 snapshot/win/module_snapshot_win.cc:22: ...
5 years, 7 months ago (2015-05-01 20:00:14 UTC) #13
scottmg
Thanks! https://codereview.chromium.org/1052813002/diff/610001/snapshot/win/module_snapshot_win.cc File snapshot/win/module_snapshot_win.cc (right): https://codereview.chromium.org/1052813002/diff/610001/snapshot/win/module_snapshot_win.cc#newcode17 snapshot/win/module_snapshot_win.cc:17: #include "base/strings/stringprintf.h" On 2015/05/01 20:00:14, Mark Mentovai wrote: ...
5 years, 7 months ago (2015-05-01 20:45:59 UTC) #14
scottmg
5 years, 7 months ago (2015-05-01 20:48:34 UTC) #15
Message was sent while issue was closed.
Committed patchset #32 (id:630001) manually as
69d135acda60d4de456e682a7d4d52f0eb14bb88 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698