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

Issue 981393003: win: Support reading process info cross-bitness (Closed)

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

Description

win: Support reading process info cross-bitness This only works 64->64, 32->32, and 64->32. We shouldn't have a need for 32->64. It will also currently not work if the crash service is running on Wow64 itself (that is, 32->32, but on an x64 OS). We should also be able to avoid needing that. Primarily, this change templatizes the winternl.h process structure types on word size, so the PEB can be read in a foreign bitsize process. This also happens to resolve using void* as pointer values into foreign processes, as they're now all either DWORD or DWORD64 depending on which traits class is used. R=mark@chromium.org BUG=crashpad:1 Committed: https://chromium.googlesource.com/crashpad/crashpad/+/ab6cdb6bc18ebb91b9523ee12d0385743f0cccad

Patch Set 1 #

Patch Set 2 : . #

Total comments: 13

Patch Set 3 : Review feedback #

Total comments: 12

Patch Set 4 : Review 2 #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+479 lines, -136 lines) Patch
M util/util.gyp View 1 2 3 4 3 chunks +25 lines, -1 line 0 comments Download
M util/win/process_info.h View 1 2 3 chunks +7 lines, -18 lines 0 comments Download
M util/win/process_info.cc View 1 2 3 7 chunks +141 lines, -110 lines 0 comments Download
M util/win/process_info_test.cc View 1 2 3 4 4 chunks +15 lines, -7 lines 0 comments Download
A util/win/process_structs.h View 1 2 3 1 chunk +291 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
scottmg
5 years, 9 months ago (2015-03-07 03:08:37 UTC) #8
Mark Mentovai
Cool, Scott! https://codereview.chromium.org/981393003/diff/120001/util/win/process_info.cc File util/win/process_info.cc (right): https://codereview.chromium.org/981393003/diff/120001/util/win/process_info.cc#newcode105 util/win/process_info.cc:105: uintptr_t peb_address, peb_address is in the remote ...
5 years, 9 months ago (2015-03-09 16:11:46 UTC) #9
scottmg
https://codereview.chromium.org/981393003/diff/120001/util/win/process_info.cc File util/win/process_info.cc (right): https://codereview.chromium.org/981393003/diff/120001/util/win/process_info.cc#newcode105 util/win/process_info.cc:105: uintptr_t peb_address, On 2015/03/09 16:11:46, Mark Mentovai wrote: > ...
5 years, 9 months ago (2015-03-09 21:16:37 UTC) #11
Mark Mentovai
LGTM https://codereview.chromium.org/981393003/diff/160001/util/util.gyp File util/util.gyp (right): https://codereview.chromium.org/981393003/diff/160001/util/util.gyp#newcode346 util/util.gyp:346: 'target_name': 'util_test_process_info_test_child_x64', Do you want to add a ...
5 years, 9 months ago (2015-03-09 22:44:45 UTC) #12
scottmg
Thanks! https://codereview.chromium.org/981393003/diff/160001/util/util.gyp File util/util.gyp (right): https://codereview.chromium.org/981393003/diff/160001/util/util.gyp#newcode346 util/util.gyp:346: 'target_name': 'util_test_process_info_test_child_x64', On 2015/03/09 22:44:44, Mark Mentovai wrote: ...
5 years, 9 months ago (2015-03-09 23:23:57 UTC) #14
Mark Mentovai
Great! LGTM.
5 years, 9 months ago (2015-03-09 23:36:59 UTC) #15
scottmg
5 years, 9 months ago (2015-03-09 23:37:49 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:210001) manually as
ab6cdb6bc18ebb91b9523ee12d0385743f0cccad (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698