Commit Graph

  • 6d1af6922f Don’t use using directives (“using namespace”) in tests. Mark Mentovai 2014-10-07 17:28:50 -04:00
  • e74a272ab5 Add MinidumpContextWriter test. Mark Mentovai 2014-10-07 17:27:11 -04:00
  • d0294f3bb8 Fix collision between 49c03db12965 and 56503fef865d. Mark Mentovai 2014-10-06 19:02:57 -04:00
  • 49c03db129 Add snapshot/cpu_context_mac*, including InitializeCPUContextX86() and InitializeCPUContextX86_64(), and their tests. Mark Mentovai 2014-10-06 18:46:04 -04:00
  • 56503fef86 Use the correct fxsave type for x86_64. Mark Mentovai 2014-10-06 13:47:10 -04:00
  • 0ff46a4e60 Improve SystemSnapshotMac::TimeZone()’s computation of UTC offsets. Mark Mentovai 2014-10-03 18:40:09 -04:00
  • 6b451ea32a Add MemorySnapshotMac. Mark Mentovai 2014-10-03 14:57:07 -04:00
  • 3f81599848 Add SystemSnapshotMac and its test. Mark Mentovai 2014-10-03 14:55:54 -04:00
  • bc8626f898 Use the correct type for ProcessReader::Thread::port. Mark Mentovai 2014-10-03 12:05:56 -04:00
  • 47f17926e4 util_test: specify libbsm link dependency properly. Mark Mentovai 2014-10-02 18:32:33 -04:00
  • 7b2e7efcc2 Add the Snapshot interface. Mark Mentovai 2014-10-02 17:09:37 -04:00
  • ae7ad05090 int128_test.cc: Add missing #include after d198c50abe9b. Mark Mentovai 2014-10-01 16:56:56 -04:00
  • d198c50abe Convert COMPILE_ASSERT to static_assert Scott Graham 2014-10-01 12:29:01 -07:00
  • 5906513e30 MinidumpContext: fix some problems in AMD64 (x86_64) context enums. Mark Mentovai 2014-09-30 17:22:35 -04:00
  • 7dda7b3228 Superficial gyp changes to not immediately error out on Windows Scott Graham 2014-09-30 13:11:04 -07:00
  • 8decf86db8 Add, test, and use clock utilities. Mark Mentovai 2014-09-24 14:08:48 -04:00
  • cb2288d174 Add MinidumpContext (X86 and AMD64 variants) and their writers. Mark Mentovai 2014-09-24 13:34:45 -04:00
  • 0d59a76735 Fix AMD64 APM revision number in a comment. Mark Mentovai 2014-09-24 13:34:12 -04:00
  • b7a1070335 Add Semaphore and its test, and use it where semaphores are needed. Mark Mentovai 2014-09-24 13:32:31 -04:00
  • 7e5c11f59a Add a missing null pointer check. Erik Chen 2014-09-23 14:54:41 -04:00
  • fec869992f uint128_struct: address misunderstood review feedback. Mark Mentovai 2014-09-22 17:16:03 -04:00
  • fee5d8aea9 Add uint128_struct and its test. Mark Mentovai 2014-09-22 15:46:00 -04:00
  • 0d8f67c1f5 Specify system framework dependencies properly in .gyp files. Mark Mentovai 2014-09-22 14:06:06 -04:00
  • 4517d7c866 Update mini_chromium to get close$NOCANCEL, and update GYP to keep up. Mark Mentovai 2014-09-22 13:18:38 -04:00
  • 7b85d6d372 Multiprocess: wrap waitpid() in HANDLE_EINTR(). Mark Mentovai 2014-09-22 13:17:17 -04:00
  • 8eec7874fd MachMessageServer test: deal with short receive queue lengths on 10.10. Mark Mentovai 2014-09-22 13:15:14 -04:00
  • 75988925f9 Revert "Drop 10.5 support: use ServiceManagement.framework directly." Mark Mentovai 2014-09-22 13:11:40 -04:00
  • 32ed4b367d 10.6 runtime compatibility for MachOImageReader test. Mark Mentovai 2014-09-22 13:10:14 -04:00
  • 8e70083aa0 10.6 runtime compatibility for ProcessReader. Mark Mentovai 2014-09-22 13:08:57 -04:00
  • 51e696ade9 ExceptionPorts::GetExceptionPorts(): don’t return ExceptionHandler elements whose handler port would be MACH_PORT_NULL. Mark Mentovai 2014-09-22 13:07:43 -04:00
  • c93fcf8278 In MachMultiprocess-based tests, the child must wait for the parent to finish. Mark Mentovai 2014-09-22 13:06:12 -04:00
  • eeaf460f82 Add and use CheckedReadFD(), CheckedWriteFD(), and CheckedReadFDAtEOF(). Mark Mentovai 2014-09-18 15:03:49 -04:00
  • 12b67422f9 catch_exception_tool: Show the thread ID, state flavor, and state count. Mark Mentovai 2014-09-18 13:55:03 -04:00
  • 4d35ffa80e Use more-specific typedefs for send rights to task, thread, and exception handler ports. Mark Mentovai 2014-09-18 13:53:43 -04:00
  • 1b61c90e7c Add exception_port_tool. Mark Mentovai 2014-09-18 12:09:00 -04:00
  • 021c93c2e0 Use a more specific type, mach_exception_code_t, when possible. Mark Mentovai 2014-09-18 11:56:03 -04:00
  • 3f2ba965f5 Use ExcServerSuccessfulReturnValue() in one spot that was missed in 57eb311528f2. Mark Mentovai 2014-09-17 18:09:05 -04:00
  • b4fe6dfae0 Refactor EXC_CRASH code[0] processing into a new function, ExcCrashRecoverOriginalException(), and use it where sensible. Mark Mentovai 2014-09-17 17:59:35 -04:00
  • f764db270f Add catch_exception_tool. Mark Mentovai 2014-09-17 15:40:09 -04:00
  • 57eb311528 Add ExcServerSuccessfulReturnValue() and its test. Mark Mentovai 2014-09-17 12:08:18 -04:00
  • 63fd3ae47d Drop 10.5 support: use ServiceManagement.framework directly. Mark Mentovai 2014-09-16 17:45:12 -04:00
  • 84d9952ebf Use backticks more uniformly in MachOImage*Reader Doxygen documentation. Mark Mentovai 2014-09-16 17:37:41 -04:00
  • 8c8089dc77 Add ExceptionPorts and its test. Mark Mentovai 2014-09-16 17:36:33 -04:00
  • 06d48e4b0a Add exception_behaviors and its test. Mark Mentovai 2014-09-16 17:32:35 -04:00
  • 850ec0657d Drop 10.5 support. Mark Mentovai 2014-09-16 11:55:55 -04:00
  • e49510ab7c Add SymbolicConstantsMach and its test. Mark Mentovai 2014-09-16 11:00:51 -04:00
  • 1e7cdb30a0 Add exc_client_variants (UniversalExceptionRaise()) and its test. Mark Mentovai 2014-09-16 09:48:01 -04:00
  • b6a0183cce gtest, gmock: pull older versions via DEPS that don’t require C++11 library support. Mark Mentovai 2014-09-15 15:09:42 -04:00
  • b77c788543 util_test MachMessageServer.ReturnCodeNoReply: keep the child alive until the server is done handling its request. Mark Mentovai 2014-09-15 15:08:28 -04:00
  • 1990a6ca2a ExcServerVariants test: don’t test debug thread state flavors. Mark Mentovai 2014-09-12 12:14:08 -04:00
  • ab4978b51e 10.6 SDK compatibility. Mark Mentovai 2014-09-12 12:13:27 -04:00
  • 24fc801715 Add third_party/apple_cctools containing virgin upstream code. Mark Mentovai 2014-09-11 15:11:50 -04:00
  • 0869b3e86d Add a MappedMemory interface to TaskMemory and use it in MachOImageSymbolTableReader. Mark Mentovai 2014-09-11 15:10:12 -04:00
  • fbf12950fe MachMessageServer: Make request messages const. Mark Mentovai 2014-09-10 18:57:14 -04:00
  • a01c87059b Add symbolic_constants_posix and its test. Mark Mentovai 2014-09-10 17:30:21 -04:00
  • 177f5dcddc Add exc_server_variants including UniversalMachExcServer and its test. Mark Mentovai 2014-09-10 17:29:07 -04:00
  • 10d1b76b90 Add string_number_conversion and its test. Mark Mentovai 2014-09-10 15:30:11 -04:00
  • 7fdc7f277e Add Multiprocess::SetExpectedChildTermination(). Mark Mentovai 2014-09-09 17:04:47 -04:00
  • f1202a0814 Enhance the MachMessageServer test to cover large messages (MACH_RCV_LARGE). Mark Mentovai 2014-09-09 12:28:31 -04:00
  • 88a681e747 Enhance the MachMessageServer test to cover port right ownership management. Mark Mentovai 2014-09-09 09:59:05 -04:00
  • 67082c93b9 Add MachMessageServer and its test. Mark Mentovai 2014-09-08 21:06:34 -04:00
  • 2cae118b60 Add MachOImageSymbolTableReader and hook it up to MachOImageReader. Mark Mentovai 2014-09-05 16:53:18 -04:00
  • 3d4eeae864 Make ProcessReaderModule and ProcessReaderThread nested classes. Mark Mentovai 2014-09-05 16:35:16 -04:00
  • 9dd0ac943a Implement (and test) ProcessReader::Modules(). Mark Mentovai 2014-09-05 13:43:51 -04:00
  • 5a0b7827ff Run mig to generate the exc and mach_exc interfaces. Mark Mentovai 2014-09-05 13:27:06 -04:00
  • 2f425e744b Add missing dependency on util_test_multiprocess_exec_test_child to util_test. Mark Mentovai 2014-09-05 12:40:05 -04:00
  • 35865a00d5 Fix problems discovered with gcc 4.9.1. Mark Mentovai 2014-09-05 12:39:09 -04:00
  • 4f74716f6d Add MachOImageReader and its test, which also tests MachOImageSegmentReader. Mark Mentovai 2014-09-04 11:45:40 -04:00
  • 52064fdd1b Add the MultiprocessExec test and its test. Mark Mentovai 2014-09-03 18:24:29 -04:00
  • d492df404c Add CloseMultipleNowOrOnExec(). Mark Mentovai 2014-09-02 16:21:46 -04:00
  • 1460c47d6a Add MachOImageSegmentReader. Mark Mentovai 2014-09-02 15:50:11 -04:00
  • af0cfd5a57 Add strnlen() wrapper and its test. Mark Mentovai 2014-08-28 14:38:27 -04:00
  • 04842e0ca4 Add CheckedMachAddressRange and its test. Mark Mentovai 2014-08-28 13:47:28 -04:00
  • ff26ea6db9 Refactor MachMultiprocess into a Multiprocess base class without any knowledge of Mach. MachMultiprocess builds on this new base class. Mark Mentovai 2014-08-26 17:10:19 -04:00
  • 30589d87a9 Add ProcessTypes, its test, and many proctype definition files. Mark Mentovai 2014-08-26 17:08:18 -04:00
  • 0cc86a24f9 Add ScopedForbidReturn and its test. Mark Mentovai 2014-08-26 16:50:08 -04:00
  • 8256f9fc23 Add most of ProcessReader and its test. Mark Mentovai 2014-08-25 17:51:09 -04:00
  • d0fcfa42e4 Convert SimpleStringDictionary interface documentation to Doxygen. Mark Mentovai 2014-08-22 17:09:03 -04:00
  • 4004e77ee9 Improvements for MachMultiprocess. Mark Mentovai 2014-08-22 14:00:10 -04:00
  • b980a5984b Add SimpleStringDictionary and its test. Mark Mentovai 2014-08-22 13:52:28 -04:00
  • 9168ba47ac Fix minidump_module_writer_test 32-bit x86 build. Mark Mentovai 2014-08-20 18:32:06 -04:00
  • be5d0ab39c Add CaptureContext and its test. Mark Mentovai 2014-08-20 18:30:19 -04:00
  • 0b7f86a650 Add on_demand_service_tool. Mark Mentovai 2014-08-20 15:18:55 -04:00
  • bbe4d85935 Add MachMultiprocess and its test. Mark Mentovai 2014-08-20 13:58:42 -04:00
  • 280c4345c5 Add BootstrapCheckIn and its test. Mark Mentovai 2014-08-18 20:41:00 -07:00
  • 8fe32b7b9c Add mac_util, including MacOSXMinorVersion(), MacOSXVersion(), and MacModelAndBoard(), along with their tests. Mark Mentovai 2014-08-15 22:33:14 -07:00
  • a70edb3b7f Add ServiceManagement*() and their tests. Mark Mentovai 2014-08-15 22:30:24 -07:00
  • d05166c26c Add CheckedRange<> and its test. Mark Mentovai 2014-08-15 10:22:37 -07:00
  • 6997418cd4 Add InRangeCast<> and its test. Mark Mentovai 2014-08-14 16:00:44 -07:00
  • 01f9e396b8 Include <limits.h> in util/file/file_writer.cc because it uses IOV_MAX. Mark Mentovai 2014-08-14 09:58:31 -07:00
  • 5f554ff10e Add ProcessArgumentsForPID() (process_util) and its test. Mark Mentovai 2014-08-14 09:57:19 -07:00
  • 21af173940 Add InitializationStateDcheck, its base class, and their tests. Mark Mentovai 2014-08-14 09:51:26 -07:00
  • 7090b209ad Use the gtest_main target for test executables. Mark Mentovai 2014-08-13 15:28:59 -07:00
  • 2a6927614c Hide COMPILE_ASSERT from Doxygen, which doesn’t otherwise understand it. Mark Mentovai 2014-08-13 15:28:23 -07:00
  • e0a79bec5e MinidumpMemoryWriter test: Don’t suffix uint64_t constants. Mark Mentovai 2014-08-13 15:27:33 -07:00
  • 0ba9d2b065 Add MinidumpModuleWriter, MinidumpModuleListWriter, related classes, and their test. Mark Mentovai 2014-08-13 15:26:21 -07:00
  • 3b2c6d32f4 Add MinidumpMemoryWriter, MinidumpMemoryListWriter, and their test. Mark Mentovai 2014-08-12 10:26:40 -07:00
  • c73a97d4e3 Add MinidumpMiscInfoWriter and its test. Mark Mentovai 2014-08-11 11:42:12 -07:00
  • aa3adf2c5b Add MinidumpSystemInfoWriter and its test. Mark Mentovai 2014-08-07 14:58:26 -04:00
  • 293964f69b Add CFPropertyToLaunchData() and its test. Mark Mentovai 2014-08-03 18:53:10 -04:00