Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/electron/crashpad

Electron fork of crashpad
https://github.com/electron/crashpad

Use implicit_cast<> instead of static_cast<> whenever possible.

implicit_cast<> only performs a cast in cases where an implicit
conversion would be possible. It...

48b1964d1b215dae805bdf08089007bb8a7b285f authored about 10 years ago by Mark Mentovai <[email protected]>
Add MinidumpMiscInfoWriter::InitializeFromSnapshot() and its test.

TEST=minidump_test MinidumpMiscInfoWriter.InitializeFromSnapshot
[email protected]

Review U...

bdfd147a47f4fcb44d971a743323f5f870f92805 authored about 10 years ago by Mark Mentovai <[email protected]>
Add MinidumpSystemInfoWriter::InitializeFromSnapshot() and its test.

TEST=minidump_test MinidumpSystemInfo*
[email protected]

Review URL: https://codereview.chr...

8609cdb60da86f2c5fa2df31f9df7d5f0af0a371 authored about 10 years ago by Mark Mentovai <[email protected]>
C++11: Use template aliases instead of inheritance.

This only came up in one location, PointerVector.

A template alias is superior to inheritance, ...

bbeef320e03b9f43893e19a37e4ac1461bc7cd8d authored about 10 years ago by Mark Mentovai <[email protected]>
C++11: Use type aliases instead of typedefs.

This replaces all occurrences of “typedef Y X;” with “using X = Y;”.

[email protected]

Rev...

de0979b930f798df2b9e86abb303f18275ec3e62 authored about 10 years ago by Mark Mentovai <[email protected]>
Add MinidumpExceptionWriter::InitializeFromSnapshot() and test.

TEST=minidump_test MinidumpExceptionWriter.InitializeFromSnapshot
[email protected]

Review ...

62b097629059d6e5abcf9087f24720a0c68211a4 authored about 10 years ago by Mark Mentovai <[email protected]>
Add MinidumpThreadListWriter::InitializeFromSnapshot(), everything

downstream, and tests.

TEST=minidump_test
[email protected]

Review URL: https://codereview....

8248c030e25ea2b3d696b39b68cfb11e6b335673 authored about 10 years ago by Mark Mentovai <[email protected]>
Add MinidumpContextWriter::CreateFromSnapshot(), everything downstream,

and its test.

Minidump context structures now interoperate more easily with snapshot
CPUContext ...

52c2f6edfcc70cc61b1614dad34a7bd52100a5cf authored about 10 years ago by Mark Mentovai <[email protected]>
Fix comment for MinidumpUTF8StringAtRVAAsString().

[email protected]

Review URL: https://codereview.chromium.org/689193003

f3bdc972f964dbaef0d37a607cb57ba4d3949e23 authored about 10 years ago by Mark Mentovai <[email protected]>
util/net: Place death tests into a *DeathTest test case.

Not doing this causes gtest to issue these warnings:

[WARNING] ../../third_party/gtest/gtest/sr...

486429e4f4da4a1b54e07acd89abb99e2330da4d authored about 10 years ago by Mark Mentovai <[email protected]>
Add HTTPTransport, a Mac implementation, and an end-to-end test.

BUG=https://crbug.com/415544
[email protected]

Review URL: https://codereview.chromium.org/69...

d88711adfa1c930cb709b7b7f5d52c8534a72c00 authored about 10 years ago by Robert Sesek <[email protected]>
minidump: Fix InitializeFromSnapshot() comments for module lists.

These classes don’t really have “mutators” other than their singular
AddModule() methods, and th...

45993a6959341ab7f61e7c8e751f53eddf1e5622 authored about 10 years ago by Mark Mentovai <[email protected]>
Add MinidumpMemoryListWriter::AddFromSnapshot(), everything downstream,

and its test.

TEST=minidump_test MinidumpMemoryWriter.AddFromSnapshot
[email protected]

Rev...

4299ab3c4cdf70c8048ba12383b7a4cbf5c97f46 authored about 10 years ago by Mark Mentovai <[email protected]>
minidump: Fix InitializeFromSnapshot() comments for module lists.

These classes don’t really have “mutators” other than their singular
AddModule() methods, and th...

f7b38a9dd95c5162023f9b56762222d9f5586bbc authored about 10 years ago by Mark Mentovai <[email protected]>
Treat '+' as a safe MIME type character.

This addresses a review comment from
https://codereview.chromium.org/681303003/diff/120001/util/...

123e01f96d9bf6da772cbfe5a523602a76c98982 authored about 10 years ago by Robert Sesek <[email protected]>
Add HTTPMultipartBuilder and its test.

BUG=https://crbug.com/415544
[email protected]

Review URL: https://codereview.chromium.org/68...

9db5d6f77370518edba19de874a8dc15b1fe21fa authored about 10 years ago by Robert Sesek <[email protected]>
snapshot: Make destructors of interface classes public and virtual.

[email protected]

Review URL: https://codereview.chromium.org/689483003

4ee00568b72e2aa25c262f2d46aacca36bddcffb authored about 10 years ago by Mark Mentovai <[email protected]>
minidump: Add InitializeFromSnapshot() for MinidumpModuleWriter and

MinidumpModuleListWriter.

TEST=minidump_test
[email protected]

Review URL: https://coderevi...

84b44610cfd483fed7bfd3a5627461025be3aeb2 authored about 10 years ago by Mark Mentovai <[email protected]>
Fix a few documentation problems.

[email protected]

Review URL: https://codereview.chromium.org/688643002

7f30a9ebef9f0d1594983af5d35c4afe30bb2fc4 authored about 10 years ago by Mark Mentovai <[email protected]>
minidump: Use decltype(object) instead of typeof(object).

TEST=minidump_test
[email protected]

Review URL: https://codereview.chromium.org/681313005

78bec65b27f21c4731735b1873775522f5e7fa6b authored about 10 years ago by Mark Mentovai <[email protected]>
minidump: Add InitializeFromSnapshot() for

MinidumpModuleCrashpadInfoListWriter and everything downstream.

TEST=minidump_test
R=rsesek@chro...

765e42832140a7e75f6ed57c36034dbbec3785cd authored about 10 years ago by Mark Mentovai <[email protected]>
minidump: Change the ownership model.

All minidump objects now own their all of their children, rather than
having them maintain weak ...

0a4ea0b52dc98083bef0f8521e347172214e6846 authored about 10 years ago by Mark Mentovai <[email protected]>
Add HTTPBodyStream interface, three concrete implementations, and their tests.

BUG=415544
[email protected]

Review URL: https://codereview.chromium.org/669153006

977a7a805210856303bfd32de7f7d52b0edcfdce authored about 10 years ago by Robert Sesek <[email protected]>
minidump: Rename MinidumpCrashpadModuleInfoWriter files.

The classes were renamed in response to
https://codereview.chromium.org/675803002/diff/1/minidum...

3f48f6d79869cfbd7fc85bbe4c49729b1d6a04fc authored about 10 years ago by Mark Mentovai <[email protected]>
Add MinidumpModuleCrashpadInfo, its list form, their writers, and their

test.

Move SimpleAnnotations from being a property of the minidump to being a
property of the mo...

61af24848fe6965cdad46c0089295e91cc13b1e9 authored about 10 years ago by Mark Mentovai <[email protected]>
minidump: Use forward declarations in more places.

TEST=minidump_test
[email protected]

Review URL: https://codereview.chromium.org/679443002

38aeadc1c1db0e1b3a45df1d9784f57a6032fbbc authored about 10 years ago by Mark Mentovai <[email protected]>
minidump: Annotate existing virtual destructors that override a base

class virtual destructor with “override”.

TEST=minidump_test MinidumpContextWriter.*:MinidumpMod...

44a839614b83b4c140d1d20c877d9467ccb03905 authored about 10 years ago by Mark Mentovai <[email protected]>
minidump: Be consistent about setting the fields of WritableIoVec.

The iov_base field appears before the iov_len field, but for some
reason, sometimes the fields w...

dcdbd2098f64b61a708ab2e1c0d0bd2acdc469f2 authored about 10 years ago by Mark Mentovai <[email protected]>
minidump: Migrate the rest of the tests to

MinidumpWritableAtLocationDescriptor<>().

TEST=minidump_test
[email protected]

Review URL: ...

20f95a2f5bb2500567328c2c1b3793f6a918cfac authored about 10 years ago by Mark Mentovai <[email protected]>
Refactor minidump test utilities for MinidumpWritable,

MinidumpFileWriter, and Minidump*StringWriter.

TEST=minidump_test
[email protected]

Review ...

8a6a4c68e44c1aa1e5c4e513a4a75da72bf1e134 authored about 10 years ago by Mark Mentovai <[email protected]>
Move minidump/*_test_util.* to minidump/test.

Suggested at
https://codereview.chromium.org/654573003/diff/1/minidump/minidump_string_writer_te...

01c535b0011ef2bfad5697d9b45038f25a917fe2 authored about 10 years ago by Mark Mentovai <[email protected]>
Add MinidumpCrashpadInfoWriter and its test.

TEST=minidump_test MinidumpCrashpadInfoWriter.*
[email protected]

Review URL: https://coder...

b8a2f41156eb94fe0f597fecac5d967f1500519a authored about 10 years ago by Mark Mentovai <[email protected]>
client.gyp: Sort.

[email protected]

Review URL: https://codereview.chromium.org/657303003

b9db7543a3ed5efbf180d733311efcfd5a50e446 authored about 10 years ago by Mark Mentovai <[email protected]>
include "util/stdlib/cxx.h" before checking CXX_LIBRARY_VERSION.

[email protected]

Review URL: https://codereview.chromium.org/662813003

7d84d6512be3377d1b90a534a7eed35716b461ce authored about 10 years ago by Mark Mentovai <[email protected]>
Add ProcessSnapshotMac.

[email protected]

Review URL: https://codereview.chromium.org/650223007

279ca87e68d80e6f858483bacb10bd7249b389d0 authored about 10 years ago by Mark Mentovai <[email protected]>
Add ModuleSnapshotMac.

[email protected]

Review URL: https://codereview.chromium.org/649633004

6584361343aa65a2b38f491687d25ee4ef6f618f authored about 10 years ago by Mark Mentovai <[email protected]>
Add crashpad_info, MachOImageAnnotationsReader, and its test.

TEST=snapshot_test MachOImageAnnotationsReader.*
[email protected]

Review URL: https://code...

b43f510a529e2dbdc9da79345f26ee4043a3b7dd authored about 10 years ago by Mark Mentovai <[email protected]>
Create snapshot/mac and move some files from snapshot and util to there.

TEST=snapshot_test, util_test CheckedMachAddressRange.*
[email protected]

Review URL: https...

bcae4d94d58cd730b4045b3514a0ed0345245537 authored about 10 years ago by Mark Mentovai <[email protected]>
Add CRASHPAD_SIMULATE_CRASH() and supporting client code.

TEST=client_test SimulateCrash.SimulateCrash
[email protected]

Review URL: https://coderevi...

dd9cf1b367baf7475f15ce16b4364b853ad57904 authored about 10 years ago by Mark Mentovai <[email protected]>
Add tool man pages in asciidoc format.

nroff mandoc-format man pages can be generated by running:

a2x --format manpage \
--attribu...

f59e3e6b780100a705dd583f44467f7c1f9b14bd authored about 10 years ago by Mark Mentovai <[email protected]>
Add MinidumpSimpleStringDictionaryWriter and its test.

TEST=minidump_test MinidumpSimpleStringDictionaryWriter.*
[email protected]

Review URL: htt...

c9db1b1d1922f23068d7fc35d08e58a50f08fe23 authored about 10 years ago by Mark Mentovai <[email protected]>
ScopedTaskSuspend test: remove extraneous CheckedReadFDAtEOF().

The base class takes care of this.

TEST=util_test ScopedTaskSuspend.ScopedTaskSuspend
R=rsesek@...

6c1a46f2bbb4a7e4371c0f95f735f249f266d664 authored about 10 years ago by Mark Mentovai <[email protected]>
Use exactly one of final, override, and virtual.

This change was generated mechanically by running:

find . \
\( -name \*.cc -or -name \*...

525de2c35a376787e084e4028e952792b1d5b85a authored about 10 years ago by Mark Mentovai <[email protected]>
Convert NULL to nullptr.

This change was generated mechanically by running:

find . \( -name \*.cc -or -name \*.mm -or ...

5d74f120fc5797135d42f6bebf9ab80c49cc4a70 authored about 10 years ago by Mark Mentovai <[email protected]>
ProcessReader: Fix comment about TASK_BASIC_INFO_64.

[email protected]

Review URL: https://codereview.chromium.org/650993003

d90ce10e1fbf2e422ca197278524140665545a6f authored about 10 years ago by Mark Mentovai <[email protected]>
Add ExceptionSnapshotMac.

[email protected]

Review URL: https://codereview.chromium.org/650303002

d7eb23c93e90072a464438955c1a06c32b4d02c2 authored about 10 years ago by Mark Mentovai <[email protected]>
Add ThreadSnapshotMac.

[email protected]

Review URL: https://codereview.chromium.org/652003002

356a2db147d332c6f8af77ab301398f3931448e7 authored about 10 years ago by Mark Mentovai <[email protected]>
Add ScopedTaskSuspend and its test.

This also introduces ScopedFcntlFlags.

TEST=util_test ScopedTaskSuspend.*:ScopedFcntlFlags.*
R=...

2bd5e23ea49d8a7160bbdab403652fdd2f25086c authored about 10 years ago by Mark Mentovai <[email protected]>
Use the correct null constants for Mach threads, tasks, and hosts.

This uses THREAD_NULL, TASK_NULL, and HOST_NULL in preference to
MACH_PORT_NULL and kMachPortNul...

8c7872e9e0218ba2a86f546826e8be78521abfed authored about 10 years ago by Mark Mentovai <[email protected]>
util_test Clock.SleepNanoseconds: don’t set an upper bound for the

amount of time spent sleeping.

Even with the slop, this wound up being flaky, specifically on vi...

8f23d3e475e736af68333d95ff78c48cc6c4d80c authored over 10 years ago by Mark Mentovai <[email protected]>
ServiceManagement test: reduce test flake.

ExpectProcessIsRunning() goes to a lot of trouble to deal with the flaky
{CTL_KERN, KERN_PROCARG...

7669b3301048b71aa1f405d34b020847c6efb950 authored over 10 years ago by Mark Mentovai <[email protected]>
Rename minidump_test_util.* to minidump_file_writer_test_util.*.

This is in line with the other new minidump_*_test_util files, namely,
the “context” and “memory...

c182be95a2498ddbe0efa6b8ba27a95547ab230c authored over 10 years ago by Mark Mentovai <[email protected]>
Add MinidumpThreadWriter, MinidumpThreadListWriter, and their test.

TEST=minidump_test MinidumpThreadWriter*
[email protected]

Review URL: https://codereview.c...

b8684a8a3c85a672521d77800805fc9c547ee971 authored over 10 years ago by Mark Mentovai <[email protected]>
minidump: Use variable names in tests that match parallel array indices.

Inspired by
https://codereview.chromium.org/637503006/diff/20001/minidump/minidump_thread_writer...

8d36e3581c67c2f6e2c0e77db4dabb76c3824415 authored over 10 years ago by Mark Mentovai <[email protected]>
Add MinidumpExceptionWriter and its test.

TEST=minidump_test MinidumpExceptionWriter*
[email protected]

Review URL: https://coderevie...

9d115e239190a4165660cbeedcbb7bbba2996edf authored over 10 years ago by Mark Mentovai <[email protected]>
In tests, use ASSERT_NO_FATAL_FAILURE() instead of checking

testing::Test::HasFatalFailure() after calling functions that could fail
fatally.

Inspired by
ht...

22350bd67657acd11c62127a132b3d403396bda5 authored over 10 years ago by Mark Mentovai <[email protected]>
Pull test utilities from MinidumpMemoryWriter’s test out into their own file.

These utilities are also useful to MinidumpThreadWriter’s test.

TEST=minidump_test MinidumpMemo...

9c76cc60db794ded66a219aad8ad1dac8307e860 authored over 10 years ago by Mark Mentovai <[email protected]>
Simplify MinidumpModuleWriter’s module name requirement implementation.

TEST=minidump_test MinidumpModuleWriter*
[email protected]

Review URL: https://codereview.c...

b677bc4ec07a6320b24f107903850c4eddc87fde authored over 10 years ago by Mark Mentovai <[email protected]>
Don’t use using directives (“using namespace”) in tools.

The contents of tools are moved into the namespace
crashpad::(anonymous namespace).

https://goo...

40602fab1f75d138c1a1d0a3c155351c964473dd authored over 10 years ago by Mark Mentovai <[email protected]>
Don’t use using directives (“using namespace”) in tests.

The contents of tests are moved into the namespace
crashpad::test::(anonymous namespace).

https...

6d1af6922fc8326eeb5f17941afa1b2f037ba379 authored over 10 years ago by Mark Mentovai <[email protected]>
Add MinidumpContextWriter test.

TEST=minidump_test MinidumpContextWriter.*
[email protected]

Review URL: https://codereview...

e74a272ab50f7af0fa58e9a3d4657cd9bd3ef799 authored over 10 years ago by Mark Mentovai <[email protected]>
Fix collision between 49c03db12965 and 56503fef865d.

[email protected]

Review URL: https://codereview.chromium.org/628403002

d0294f3bb870d96f39a33a59d976401e10d834da authored over 10 years ago by Mark Mentovai <[email protected]>
Add snapshot/cpu_context_mac*, including InitializeCPUContextX86() and

InitializeCPUContextX86_64(), and their tests.

TEST=snapshot_test CPUContextMac.*
R=rsesek@chrom...

49c03db12965de9e3342259bfd8e297d70849018 authored over 10 years ago by Mark Mentovai <[email protected]>
Use the correct fxsave type for x86_64.

No functional change.

TEST=snapshot_test SystemSnapshotMacTest.CPUX86SupportsDAZ
R=rsesek@chrom...

56503fef865d137db5862893ea3998a4ae2c0736 authored over 10 years ago by Mark Mentovai <[email protected]>
Improve SystemSnapshotMac::TimeZone()’s computation of UTC offsets.

In locations that observe daylight saving time, this method now probes
different times to determ...

0ff46a4e602cd42de5cc5e9da21e1b69387a9f16 authored over 10 years ago by Mark Mentovai <[email protected]>
Add MemorySnapshotMac.

[email protected]

Review URL: https://codereview.chromium.org/623163004

6b451ea32a2eb45a7a5a773300044031f0d22a24 authored over 10 years ago by Mark Mentovai <[email protected]>
Add SystemSnapshotMac and its test.

TEST=snapshot_test SystemSnapshotMac.*
[email protected]

Review URL: https://codereview.chr...

3f81599848a53bd46f82a58f2699e44c33df56d0 authored over 10 years ago by Mark Mentovai <[email protected]>
Use the correct type for ProcessReader::Thread::port.

It is a thread_t, not a task_t.

[email protected]

Review URL: https://codereview.chromium....

bc8626f898770205054338e6561a251a933c3f23 authored over 10 years ago by Mark Mentovai <[email protected]>
util_test: specify libbsm link dependency properly.

7dda7b322881 accidentally moved the libbsm.dylib dependency from
util_test_lib to util_test. It ...

47f17926e4f3f1425a39732ae3ca60cc6fc5365d authored over 10 years ago by Mark Mentovai <[email protected]>
Add the Snapshot interface.

These are all of the abstract base classes used in the Snapshot series,
discussed in the thread ...

7b2e7efcc247583cd8044118c48480c5aa59c756 authored over 10 years ago by Mark Mentovai <[email protected]>
int128_test.cc: Add missing #include after d198c50abe9b.

[email protected]

Review URL: https://codereview.chromium.org/620793003

ae7ad050908048a3878e5c8624312beac6899a99 authored over 10 years ago by Mark Mentovai <[email protected]>
Convert COMPILE_ASSERT to static_assert

(Perhaps I should have just left it in mini_chromium, but anyway.)

[email protected]
BUG=cras...

d198c50abe9bf2132d2e65f814cf9d0d48e49cc0 authored over 10 years ago by Scott Graham <[email protected]>
MinidumpContext: fix some problems in AMD64 (x86_64) context enums.

This fixes a sloppy compliation error: “Redefinition of enumerator
'kMinidumpContextX86Xstate'”....

5906513e301dc61b9da3a524b067d4ad904cca70 authored over 10 years ago by Mark Mentovai <[email protected]>
Superficial gyp changes to not immediately error out on Windows

Just guarding the usage of $SDKROOT so that ninja doesn't error out
on invalid $ escape on parsi...

7dda7b3228817cfad06e6ee523271c24ddabe416 authored over 10 years ago by Scott Graham <[email protected]>
Add, test, and use clock utilities.

This includes ClockMonotonicNanoseconds() and SleepNanoseconds().

SleepNanoseconds() is like ba...

8decf86db833551f996760772c222ce8feafa9e4 authored over 10 years ago by Mark Mentovai <[email protected]>
Add MinidumpContext (X86 and AMD64 variants) and their writers.

These are fairly simple classes and it’s not valuable to test them
individually. They will be te...

cb2288d1748c7cb51f0c934b51714e7b6d387967 authored over 10 years ago by Mark Mentovai <[email protected]>
Fix AMD64 APM revision number in a comment.

[email protected]

Review URL: https://codereview.chromium.org/597263002

0d59a76735b0c09e7b16b24ec321918c5d2244c3 authored over 10 years ago by Mark Mentovai <[email protected]>
Add Semaphore and its test, and use it where semaphores are needed.

TEST=util_test Semaphore.*:ProcessReader.*:ExceptionPorts.*
[email protected]

Review URL: h...

b7a10703359ab6b409c5d031e97a96df9301117a authored over 10 years ago by Mark Mentovai <[email protected]>
Add a missing null pointer check.

[email protected]

Review URL: https://codereview.chromium.org/593183003/

7e5c11f59a83b040c18205bc3d163ba63036d5e8 authored over 10 years ago by Erik Chen <[email protected]>
uint128_struct: address misunderstood review feedback.

TEST=util_test Int128.UInt128
[email protected]

Review URL: https://codereview.chromium.org...

fec869992fb9a32b98133cae220ff04a1174adc9 authored over 10 years ago by Mark Mentovai <[email protected]>
Add uint128_struct and its test.

This will be used in the upcoming Minidump context structures.

This also updates mini_chromium ...

fee5d8aea971a1c8e5415afd5510f966ed0404d6 authored over 10 years ago by Mark Mentovai <[email protected]>
Specify system framework dependencies properly in .gyp files.

[email protected]

Review URL: https://codereview.chromium.org/588073004

0d8f67c1f5828e44cbada3ce2c87132e23a6658c authored over 10 years ago by Mark Mentovai <[email protected]>
Update mini_chromium to get close$NOCANCEL, and update GYP to keep up.

Update mini_chromium to 313bd83d6d9d, picking up:

313bd83d6d9d Use close$NOCANCEL on Mac, as in...

4517d7c866065ebbf2cecbc2b7f792ca7905ad5c authored over 10 years ago by Mark Mentovai <[email protected]>
Multiprocess: wrap waitpid() in HANDLE_EINTR().

TEST=util_test Multiprocess.Multiprocess
[email protected]

Review URL: https://codereview.c...

7b85d6d372c0e659ed56bc6b856134ba221b1fd2 authored over 10 years ago by Mark Mentovai <[email protected]>
MachMessageServer test: deal with short receive queue lengths on 10.10.

The queue length of a new receive port appears to be 2 on Mac OS X 10.10
DP8 14A361c. The value ...

8eec7874fd035bba7aadb469013e54730890b181 authored over 10 years ago by Mark Mentovai <[email protected]>
Revert "Drop 10.5 support: use ServiceManagement.framework directly."

This reverts commit 63fd3ae47d2513ef4390c3d8c0dde3fa95152480.

SMJobRemove() still performs a 1-...

75988925f9161e4c339f3a02a1d8ed3e7d5a9018 authored over 10 years ago by Mark Mentovai <[email protected]>
10.6 runtime compatibility for MachOImageReader test.

Don’t require a __TEXT, __text section in every module. Some system
modules on 10.6, including A...

32ed4b367dd82497a3a5569cef80c114e27adf1d authored over 10 years ago by Mark Mentovai <[email protected]>
10.6 runtime compatibility for ProcessReader.

On 10.6, the main executable does not show up at index 0, but appears
elsewhere in the list. Mod...

8e70083aa030a1a89590d906d2402771b23de570 authored over 10 years ago by Mark Mentovai <[email protected]>
ExceptionPorts::GetExceptionPorts(): don’t return ExceptionHandler

elements whose handler port would be MACH_PORT_NULL.

For most exception targets, *_get_exception...

51e696ade94dd2b71fae487afe8a02c109fdcf2b authored over 10 years ago by Mark Mentovai <[email protected]>
In MachMultiprocess-based tests, the child must wait for the parent to

finish.

It was possible for the child process to exit before the parent had a
chance to complete...

c93fcf82789d1073af9eef2e4a6dd17309c5d842 authored over 10 years ago by Mark Mentovai <[email protected]>
Add and use CheckedReadFD(), CheckedWriteFD(), and CheckedReadFDAtEOF().

TEST=util_test
[email protected]

Review URL: https://codereview.chromium.org/577333002

eeaf460f820752a95ec91cbd29d76c9f7018de85 authored over 10 years ago by Mark Mentovai <[email protected]>
catch_exception_tool: Show the thread ID, state flavor, and state count.

For identity-carrying exceptions, the system-wide thread ID is shown.

For state-carrying except...

12b67422f9083b36dc67b70fe40aeb6fb56d1e5f authored over 10 years ago by Mark Mentovai <[email protected]>
Use more-specific typedefs for send rights to task, thread, and

exception handler ports.

task_t, thread_t, and exception_handler_t are typedefs for mach_port_t....

4d35ffa80ebafdcdec5b580323a1005b182d2ec9 authored over 10 years ago by Mark Mentovai <[email protected]>
Add exception_port_tool.

[email protected]

Review URL: https://codereview.chromium.org/575033004

1b61c90e7ca2d18c8ee0f14af1a23fa50b60d9b4 authored over 10 years ago by Mark Mentovai <[email protected]>
Use a more specific type, mach_exception_code_t, when possible.

mach_exception_data_type_t is more generic and is used for any element
of a codes[] array. For i...

021c93c2e06882958d1b3feb2c8fc1bd6ffda8f2 authored over 10 years ago by Mark Mentovai <[email protected]>
Use ExcServerSuccessfulReturnValue() in one spot that was missed in

57eb311528f2.

[email protected]

Review URL: https://codereview.chromium.org/575243002

3f2ba965f517492cced4e1ce91cc5f3983edcac7 authored over 10 years ago by Mark Mentovai <[email protected]>
Refactor EXC_CRASH code[0] processing into a new function,

ExcCrashRecoverOriginalException(), and use it where sensible.

TEST=util_test ExcVariantsTest.Ex...

b4fe6dfae04961633e2ffd16fafcdddd8df3ee32 authored over 10 years ago by Mark Mentovai <[email protected]>
Add catch_exception_tool.

catch_exception_tool catches Mach exceptions. Currenlty, it simply
prints a message with some in...

f764db270fb24c3144e8e8811ea1a6621671a63f authored over 10 years ago by Mark Mentovai <[email protected]>
Add ExcServerSuccessfulReturnValue() and its test.

There’s also some light reformatting in here. Should save a few lines.

TEST=util_test ExcServer...

57eb311528f23c40d0120e4c6c2ef3a1220c863d authored over 10 years ago by Mark Mentovai <[email protected]>
Drop 10.5 support: use ServiceManagement.framework directly.

TEST=util_test ServiceManagement.SubmitRemoveJob
[email protected]

Review URL: https://code...

63fd3ae47d2513ef4390c3d8c0dde3fa95152480 authored over 10 years ago by Mark Mentovai <[email protected]>