Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(397)

Issue 55700044: Make swapimports.exe work with 64-bit binaries by adding 64-bit (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by Robert
Modified:
10 years, 3 months ago
Reviewers:
chrisha
CC:
sawbuck-changes_googlegroups.com, caitkp
Base URL:
http://sawbuck.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Make swapimports.exe work with 64-bit binaries by adding 64-bit PE image support to PEFile. This will allow other tools that perform operations solely on image headers to work with 64 bit binaries. Run with --x64 to operate on a 64 bit binary. Also suppress noisy logging during normal running. (Add a --verbose flag to re-enable noisy logging). Also, suppress SamplerAppTest.SampleSelfPidWhitelist on Win8+. Also, update stack capture code used in ASAN tests to not explode on the NULL stack frames that ::CaptureStackBackTrace returns on Win8 (a documented behaviour). BUG=https://code.google.com/p/sawbuck/issues/detail?id=85 TEST=pe_unittests.exe R=chrisha@chromium.org Committed: https://code.google.com/p/sawbuck/source/detail?r=2010

Patch Set 1 #

Patch Set 2 : Tests #

Patch Set 3 : Pre-review cleanup #

Total comments: 18

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : fix asan tests on win8 #

Patch Set 9 : svn pset eol madness #

Unified diffs Side-by-side diffs Delta from patch set Stats (+856 lines, -551 lines) Patch
M syzygy/agent/asan/stack_capture.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M syzygy/pe/pdb_info.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M syzygy/pe/pe.gyp View 1 2 3 2 chunks +61 lines, -1 line 0 comments Download
M syzygy/pe/pe_file.h View 1 2 3 11 chunks +30 lines, -23 lines 0 comments Download
M syzygy/pe/pe_file.cc View 1 1 chunk +0 lines, -488 lines 0 comments Download
A syzygy/pe/pe_file_impl.h View 1 2 3 4 1 chunk +551 lines, -0 lines 0 comments Download
M syzygy/pe/pe_file_unittest.cc View 1 2 3 3 chunks +29 lines, -0 lines 0 comments Download
M syzygy/pe/serialization.h View 1 1 chunk +1 line, -1 line 0 comments Download
A syzygy/pe/test_dll_x64.cc View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
A syzygy/pe/test_dll_x64.def View 1 1 chunk +21 lines, -0 lines 0 comments Download
A syzygy/pe/test_dll_x64.rc View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M syzygy/pe/unittest_util.h View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M syzygy/pe/unittest_util.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M syzygy/sampler/sampler_app_unittest.cc View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M syzygy/swapimport/swapimport_app.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M syzygy/swapimport/swapimport_app.cc View 1 2 3 5 chunks +43 lines, -27 lines 0 comments Download
M syzygy/swapimport/swapimport_app_unittest.cc View 1 2 3 4 5 6 5 chunks +50 lines, -7 lines 0 comments Download
M syzygy/swapimport/swapimport_main.cc View 1 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 9
Robert
10 years, 3 months ago (2014-01-24 23:13:26 UTC) #1
chrisha
Nice! Thanks for taking this on! Basic approach looks sound to me, but I've got ...
10 years, 3 months ago (2014-01-27 15:00:18 UTC) #2
Robert
Thanks! PTAL https://codereview.appspot.com/55700044/diff/60001/syzygy/pe/pe.gyp File syzygy/pe/pe.gyp (right): https://codereview.appspot.com/55700044/diff/60001/syzygy/pe/pe.gyp#newcode329 syzygy/pe/pe.gyp:329: 'includes': ['../build/masm.gypi'], On 2014/01/27 15:00:18, chrisha wrote: ...
10 years, 3 months ago (2014-01-27 18:14:26 UTC) #3
chrisha
Awesome! One last nit and lgtm! https://codereview.appspot.com/55700044/diff/80001/syzygy/pe/pe_file_impl.h File syzygy/pe/pe_file_impl.h (right): https://codereview.appspot.com/55700044/diff/80001/syzygy/pe/pe_file_impl.h#newcode546 syzygy/pe/pe_file_impl.h:546: in_archive->Load(&module_checksum); Just noticed ...
10 years, 3 months ago (2014-01-27 19:32:03 UTC) #4
Robert
Thanks! https://codereview.appspot.com/55700044/diff/80001/syzygy/pe/pe_file_impl.h File syzygy/pe/pe_file_impl.h (right): https://codereview.appspot.com/55700044/diff/80001/syzygy/pe/pe_file_impl.h#newcode546 syzygy/pe/pe_file_impl.h:546: in_archive->Load(&module_checksum); On 2014/01/27 19:32:03, chrisha wrote: > Just ...
10 years, 3 months ago (2014-01-27 20:26:15 UTC) #5
chrisha
Is it too late to ask for a swapimport_app_unittest to be added? Something like the ...
10 years, 3 months ago (2014-01-27 20:32:04 UTC) #6
Robert
On 2014/01/27 20:32:04, chrisha wrote: > Is it too late to ask for a swapimport_app_unittest ...
10 years, 3 months ago (2014-01-28 00:12:35 UTC) #7
chrisha
Awesome! lgtm for real this time
10 years, 3 months ago (2014-01-28 16:10:33 UTC) #8
Robert
10 years, 3 months ago (2014-01-28 19:50:46 UTC) #9
Message was sent while issue was closed.
Committed patchset #9 manually as r2010 (presubmit successful).
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b