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

Unified Diff: util/util.gyp

Issue 981393003: win: Support reading process info cross-bitness (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@64-port-test-2
Patch Set: rebase Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | util/win/process_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/util.gyp
diff --git a/util/util.gyp b/util/util.gyp
index 4fe0009cd78aade15bbe8c58896c8e2ca6db2b33..e71233da48280b2fd82063c62952e8e5d253a61e 100644
--- a/util/util.gyp
+++ b/util/util.gyp
@@ -134,6 +134,7 @@
'synchronization/semaphore.h',
'win/process_info.cc',
'win/process_info.h',
+ 'win/process_structs.h',
'win/scoped_handle.cc',
'win/scoped_handle.h',
'win/time.cc',
@@ -347,11 +348,12 @@
['OS=="win"', {
'targets': [
{
- 'target_name': 'crashpad_util_test_process_info_test_child',
+ 'target_name': 'crashpad_util_test_process_info_test_child_x64',
'type': 'executable',
'sources': [
'win/process_info_test_child.cc',
],
+ 'msvs_configuration_platform': 'x64',
# Set an unusually high load address to make sure that the main
# executable still appears as the first element in
# ProcessInfo::Modules().
@@ -361,6 +363,28 @@
'/BASE:0x78000000',
'/FIXED',
],
+ 'TargetMachine': '17', # x64.
+ },
+ },
+ },
+ {
+ # Same as above, but explicitly x86 to test 64->32 access.
+ 'target_name': 'crashpad_util_test_process_info_test_child_x86',
+ 'type': 'executable',
+ 'sources': [
+ 'win/process_info_test_child.cc',
+ ],
+ 'msvs_configuration_platform': 'x86',
+ # Set an unusually high load address to make sure that the main
+ # executable still appears as the first element in
+ # ProcessInfo::Modules().
+ 'msvs_settings': {
+ 'VCLinkerTool': {
+ 'AdditionalOptions': [
+ '/BASE:0x78000000',
+ '/FIXED',
+ ],
+ 'TargetMachine': '1', # x86.
},
},
},
« no previous file with comments | « no previous file | util/win/process_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698