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

Issue 1349313003: win: support x64 reading x86 (wow64) (Closed)

Created:
5 years, 3 months ago by scottmg
Modified:
5 years, 3 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: support x64 reading x86 (wow64) Removes the bitness-specific targets in favour of pulling binaries from the other build directory. This is to avoid the added complexity of duplicating all the targets for the x86 in x64 build. Overall, mostly templatizing more functions to support the wow64-flavoured structures. The only additional functionality required is reading the x86 TEB that's chained from the x64 TEB when running as WOW64. The crashing child test was switched to a manual CreateProcess because it needs to launch a binary other than itself. R=mark@chromium.org BUG=crashpad:50 Committed: https://chromium.googlesource.com/crashpad/crashpad/+/bf556829d90992dfb777d8294f5c19e56527eaa2

Patch Set 1 #

Patch Set 2 : process info #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : ws #

Patch Set 6 : . #

Patch Set 7 : . #

Total comments: 27

Patch Set 8 : fixes #

Total comments: 8

Patch Set 9 : . #

Patch Set 10 : mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+387 lines, -308 lines) Patch
M build/gyp_crashpad.py View 2 chunks +17 lines, -7 lines 0 comments Download
M build/run_tests.py View 1 chunk +3 lines, -2 lines 0 comments Download
M snapshot/snapshot_test.gyp View 1 2 3 4 5 6 7 8 9 2 chunks +22 lines, -0 lines 0 comments Download
M snapshot/win/cpu_context_win.cc View 1 2 3 4 5 6 7 8 2 chunks +62 lines, -50 lines 0 comments Download
A + snapshot/win/crashpad_snapshot_test_crashing_child.cc View 1 2 3 4 5 6 7 1 chunk +19 lines, -30 lines 0 comments Download
M snapshot/win/exception_snapshot_win.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -5 lines 0 comments Download
M snapshot/win/exception_snapshot_win.cc View 1 2 3 4 5 6 7 4 chunks +40 lines, -34 lines 0 comments Download
M snapshot/win/exception_snapshot_win_test.cc View 1 2 3 4 5 6 7 4 chunks +103 lines, -96 lines 0 comments Download
M snapshot/win/process_reader_win.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -2 lines 0 comments Download
M snapshot/win/process_reader_win.cc View 1 2 3 4 5 6 7 8 6 chunks +57 lines, -23 lines 0 comments Download
M snapshot/win/process_reader_win_test.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M snapshot/win/thread_snapshot_win.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -7 lines 0 comments Download
M util/util_test.gyp View 3 chunks +2 lines, -27 lines 0 comments Download
M util/win/process_info_test.cc View 1 4 chunks +18 lines, -14 lines 0 comments Download
M util/win/process_structs.h View 1 2 3 4 5 6 7 3 chunks +24 lines, -9 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
scottmg
5 years, 3 months ago (2015-09-18 03:28:57 UTC) #1
Mark Mentovai
https://codereview.chromium.org/1349313003/diff/120001/snapshot/win/cpu_context_win.cc File snapshot/win/cpu_context_win.cc (right): https://codereview.chromium.org/1349313003/diff/120001/snapshot/win/cpu_context_win.cc#newcode26 snapshot/win/cpu_context_win.cc:26: template <int Control, These flags have the same value ...
5 years, 3 months ago (2015-09-18 15:44:07 UTC) #2
scottmg
Thanks https://codereview.chromium.org/1349313003/diff/120001/snapshot/win/cpu_context_win.cc File snapshot/win/cpu_context_win.cc (right): https://codereview.chromium.org/1349313003/diff/120001/snapshot/win/cpu_context_win.cc#newcode26 snapshot/win/cpu_context_win.cc:26: template <int Control, On 2015/09/18 15:44:06, Mark Mentovai ...
5 years, 3 months ago (2015-09-18 19:45:26 UTC) #4
Mark Mentovai
LGTM https://codereview.chromium.org/1349313003/diff/120001/util/win/process_structs.h File util/win/process_structs.h (right): https://codereview.chromium.org/1349313003/diff/120001/util/win/process_structs.h#newcode288 util/win/process_structs.h:288: // See https://msdn.microsoft.com/en-us/library/dn424783.aspx. scottmg wrote: > On 2015/09/18 ...
5 years, 3 months ago (2015-09-18 22:10:50 UTC) #5
scottmg
https://codereview.chromium.org/1349313003/diff/160001/snapshot/win/cpu_context_win.cc File snapshot/win/cpu_context_win.cc (right): https://codereview.chromium.org/1349313003/diff/160001/snapshot/win/cpu_context_win.cc#newcode30 snapshot/win/cpu_context_win.cc:30: // We assume in this function that the WOW64_CONTEXT_* ...
5 years, 3 months ago (2015-09-18 22:25:00 UTC) #6
scottmg
(Oops, and .gyp fix for Mac.) The x64 bots will go red after landing this ...
5 years, 3 months ago (2015-09-18 22:29:31 UTC) #7
Mark Mentovai
LGTM
5 years, 3 months ago (2015-09-18 22:30:41 UTC) #8
scottmg
On 2015/09/18 22:29:31, scottmg wrote: > (Oops, and .gyp fix for Mac.) > > The ...
5 years, 3 months ago (2015-09-18 23:05:27 UTC) #9
scottmg
Committed patchset #10 (id:200001) manually as bf556829d90992dfb777d8294f5c19e56527eaa2 (presubmit successful).
5 years, 3 months ago (2015-09-18 23:06:10 UTC) #10
scottmg
5 years, 3 months ago (2015-09-19 00:05:29 UTC) #11
Message was sent while issue was closed.
On 2015/09/18 23:05:27, scottmg wrote:
> On 2015/09/18 22:29:31, scottmg wrote:
> > (Oops, and .gyp fix for Mac.)
> > 
> > The x64 bots will go red after landing this until I update their config to
run
> > the build the extra tree. Working on that now.
> 
> Bot update at https://codereview.chromium.org/1354973003/.

Took me a few minutes to realize what's going on (the bots didn't go red).

Because of the changes to gclient runhooks (Debug is now always x86 and
Debug_x64 is x64) it means that both crashpad_win_dbg and crashpad_win_x86_dbg
are both testing an x86 build running on an x64 OS. Once the bot config changes
land, the names will be improved, and we'll have x64 and x64-reading-wow64 test
coverage on the _x64 bot.

Powered by Google App Engine
This is Rietveld 408576698