Mark Mentovai
583d1dc3ef
Provide std::move() in compat instead of using crashpad::move()
...
This more-natural spelling doesn’t require Crashpad developers to have
to remember anything special when writing code in Crashpad. It’s easier
to grep for and it’s easier to remove the “compat” part when pre-C++11
libraries are no longer relevant.
R=scottmg@chromium.org
Review URL: https://codereview.chromium.org/1513573005 .
2015-12-09 17:36:32 -05:00
Dana Jansens
6bebb10829
Replace use of .Pass() with crashpad::move().
...
Since C++11 library support isn't available everywhere crashpad is
compiled, add our own move() method in the crashpad namespace to replace
std::move() for now. Replace uses of .Pass() with this method.
R=mark@chromium.org , scottmg@chromium.org
BUG=chromium:557422
Review URL: https://codereview.chromium.org/1483073004 .
2015-11-30 14:20:54 -08:00
Mark Mentovai
b666bcbe98
win: Use signed int as the integer representation of HANDLEs
...
HandleToInt() and IntToHandle() use int, a signed type, for the 32-bit
integer representation of HANDLE values. For opaque values, an unsigned
type would normally be used, but in this case, signed was chosen for
sign extension to work correctly. INVALID_HANDLE_VALUE is defined as
((HANDLE)(LONG_PTR)-1), and this needs to round-trip through the chosen
integer representation back to the same HANDLE value. Sign extension is
also recommended by
https://msdn.microsoft.com/en-us/library/windows/desktop/aa384203 .
As suggested in
https://codereview.chromium.org/1422503015/diff/1/util/win/handle.cc#newcode24
R=scottmg@chromium.org
Review URL: https://codereview.chromium.org/1422023010 .
2015-11-06 15:03:13 -05:00
Scott Graham
e75e8c800f
win: Lower integrity level of connection pipe
...
This is necessary to be able to connect to crashpad_handler from a
Chrome renderer.
R=jschuh@chromium.org , mark@chromium.org
BUG=chromium:546288
Review URL: https://codereview.chromium.org/1405093013 .
2015-11-06 10:43:39 -08:00
Mark Mentovai
2eeaa3ac54
win: Add HandleToInt() and IntToHandle()
...
This consolidates all of the twisted casts and comments that discuss how
HANDLEs are really only 32 bits wide even in 64-bit processes on 64-bit
operating systems into a single location.
R=scottmg@chromium.org
Review URL: https://codereview.chromium.org/1422503015 .
2015-11-05 14:00:26 -05:00
Mark Mentovai
740c668e87
win: Implement CrashpadClient::StartHandler()
...
BUG=crashpad:69
R=scottmg@chromium.org
Review URL: https://codereview.chromium.org/1428803006 .
2015-11-02 13:59:36 -05:00
Scott Graham
bd9bc07625
win: Make reading CrashpadInfo work across bitness
...
R=mark@chromium.org
BUG=crashpad:50
Review URL: https://codereview.chromium.org/1355503005 .
2015-09-22 10:37:11 -07:00
Scott Graham
6082aed2f2
win: Get Crashpad compiling under VS2015
...
R=mark@chromium.org
BUG=crashpad:1, chromium:440500
Review URL: https://codereview.chromium.org/1357833002 .
2015-09-21 10:51:15 -07:00
Scott Graham
4a34a3dd89
win: Make reading NT_IMAGE_HEADERS work cross-bitness
...
Factor out some test launching code used in cross-bitness tests.
R=mark@chromium.org
BUG=crashpad:50
Review URL: https://codereview.chromium.org/1352323002 .
2015-09-20 11:16:31 -07:00
Scott Graham
8ce88d8953
win x86: Grab bag of restructuring to get tests working on x86-on-x86
...
A few function implementations that were missing, various switches
for functions/functionality that didn't exist on XP, and far too long
figuring out what exactly was wrong with SYSTEM_PROCESS_INFORMATION
on x86 (the "alignment_for_x86" fields).
R=mark@chromium.org
BUG=crashpad:1, crashpad:50, chromium:531663
Review URL: https://codereview.chromium.org/1336823002 .
2015-09-16 12:42:20 -07:00
Scott Graham
754cc3609c
win x86: a few trivial compile fixes when GYP_DEFINES=target_arch=ia32
...
(CL to add x86 bots to waterfall in progress too.)
R=mark@chromium.org
BUG=crashpad:49
Review URL: https://codereview.chromium.org/1325173002 .
2015-09-02 18:35:19 -07:00
Erik Wright
263582c2d0
Refactor multiprocess test code to allow multiple child processes to be launched.
...
BUG=
R=scottmg@chromium.org
Review URL: https://codereview.chromium.org/1164453003 .
2015-07-31 12:31:58 -04:00
Scott Graham
1d33a8b0b6
win: fix uncaught multiprocess child test failures
...
R=erikwright@chromium.org
Review URL: https://codereview.chromium.org/1164683005
2015-06-01 12:17:10 -07:00
Scott Graham
ac709baa2e
win: add a child ProcessReader test
...
Now that we have a multiprocess test harness, add a test for
ProcessReaderWin for reading from a child.
Parent test code wasn't closing handles properly; fix that.
R=rsesek@chromium.org
BUG=crashpad:1
Review URL: https://codereview.chromium.org/1160843006
2015-06-01 10:07:51 -07:00
Scott Graham
44727e9c79
win: Add WinMultiprocess for multiprocess Windows tests
...
As a prerequisite for https://codereview.chromium.org/1138923004/ .
R=cpu@chromium.org , rsesek@chromium.org
TBR=mark@chromium.org
BUG=crashpad:1
Review URL: https://codereview.chromium.org/1151953002
2015-05-28 09:04:17 -07:00