Lines Matching refs:MachProcess

3 	* MachProcess.cpp (MachProcess::PrepareForAttach): No longer use the
6 (MachProcess::CleanupAfterAttach): Ditto.
7 (MachProcess::SBForkChildForPTraceDebugging): Ditto.
21 * MachProcess.cpp (MachProcess::PrepareForAttach): Added logging when
49 * MachProcess.cpp (MachProcess::PrepareForAttach): New function.
50 (MachProcess::CheckForProcess): New function.
51 (MachProcess::CleanupAfterAttach): New function.
53 (MachProcess::SBForkChildForPTraceDebugging): Convert to using
55 * MachProcess.h: Declare PrepareForAttach, CleanupAfterAttach and
78 * MachTask.h (MachProcess::GetDYLDAllImageInfosAddress): New prototype.
79 * MachTask.cpp (MachProcess::GetDYLDAllImageInfosAddress): New function.
122 * MachProcess.cpp (MachProcess::SBForkChildForPTraceDebugging): Improved
232 * MachProcess.cpp (MachProcess::PrivateResume): Set the process state before
325 (DNBProcessMemoryRead): Call MachProcess::ReadMemory so breakpoint
327 (DNBProcessMemoryWrite): Call MachProcess::WriteMemory so that we work
347 * MacOSX/MachProcess.cpp (MachProcess::GetState): Use new
349 (MachProcess::SetState): Ditto.
350 (MachProcess::Clear): Ditto.
351 (MachProcess::PrivateResume): Ditto.
352 (MachProcess::ReplyToAllExceptions): Ditto.
353 (MachProcess::ExceptionMessageReceived): Ditto.
354 (MachProcess::AppendSTDOUT): Ditto.
355 (MachProcess::GetAvailableSTDOUT): Ditto.
356 (MachProcess::ThreadFunctionSTDIO): Renamed from to
357 MachProcess::STDIOThread.
358 (MachProcess::StartSTDIOThread): Improved logging.
359 (MachProcess::CreateBreakpoint): Ditto.
360 (MachProcess::CreateWatchpoint): Ditto.
361 (MachProcess::DisableAllBreakpoints): Ditto.
362 (MachProcess::DisableBreakpoint): Ditto.
363 (MachProcess::DisableWatchpoint): Ditto.
364 (MachProcess::EnableBreakpoint): Ditto.
365 (MachProcess::EnableWatchpoint): Ditto.
366 (MachProcess::LaunchForDebug): Ditto.
367 (MachProcess::PosixSpawnChildForPTraceDebugging): Ditto.
368 (MachProcess::Detach): Reset the running event bit after resuming prior
370 (MachProcess::RemoveTrapsFromBuffer): New function that removes
372 (MachProcess::ReadMemory): Read memory from the task, then removes any
374 (MachProcess::WriteMemory): Write memory and any needed data to the
377 * MacOSX/MachProcess.h (MachProcess::ThreadFunctionException): Removed.
378 (MachProcess::ThreadFunctionSTDIO): Renamed to MachProcess::STDIOThread().
379 (MachProcess::RemoveTrapsFromBuffer): New function.
448 * MachProcess.cpp (class MachProcess): Abstracted out all of the task_t
451 (MachProcess::Task): Now returns a reference to a MachTask class.
452 (MachProcess::Clear): Uses new abstracted MachTask class.
453 (MachProcess::Detach): Ditto.
454 (MachProcess::PrivateResume): Ditto.
455 (MachProcess::DisableBreakpoint): Ditto.
456 (MachProcess::ExceptionMessageReceived): Ditto.
457 (MachProcess::ExceptionMessageBundleComplete): Ditto.
458 (MachProcess::AttachForDebug): Ditto.
459 (MachProcess::LaunchForDebug): Ditto.
460 (MachProcess::SBLaunchForDebug): Ditto.
461 (MachProcess::TaskIsValid): Removed (replaced by similar functionality
463 (MachProcess::ExceptionPort): Ditto.
464 (MachProcess::ExceptionPortIsValid): Ditto.
465 (MachProcess::StartExceptionThread): Ditto.
466 (MachProcess::Suspend): Ditto.
467 (MachProcess::TaskResume): Ditto.
468 (MachProcess::TaskBasicInfo): Ditto.
469 (MachProcess::TaskBasicInfo): Ditto.
470 (MachProcess::ReadMemory): Ditto.
471 (MachProcess::WriteMemory): Ditto.
472 (MachProcess::ThreadFunctionException): Ditto.
485 * MachProcess.h (MachProcess::TaskBasicInfo): New member and static
487 * MachProcess.cpp (MachProcess::TaskIsValid): Use new TaskBasicInfo()
489 (MachProcess::Resume): Removed the detach parameter from the PrivateResume()
491 (MachProcess::Kill): Added a absolute timeout pointer to allow callers to
493 (MachProcess::TaskBasicInfo): New member and static function.
494 (MachProcess::TaskResume): New function that resumes the task by making sure
496 (MachProcess::Detach): When detaching from a process make sure it is
499 (MachProcess::PrivateResume): Call new TaskResume function, and removed the
501 (MachProcess::DisableBreakpoint): Only notify the thread list that a
503 (MachProcess::ThreadFunctionException): Added a permanent 1 second timeout
520 * MachProcess.cpp (IsSBProcess): Check for NULL CFArrayRef returned from
522 (MachProcess::Suspend): Check if process state is not running instead of
524 (MachProcess::Detach): Deallocate the exception port when detaching and
526 (MachProcess::PrivateResume): Grab the task's basic info and make sure we
528 (MachProcess::DisableBreakpoint): Removed unused variable opcode_restored
538 * MachProcess.h (MachProcess::Suspend): Now takes an optional absolute
542 * MachProcess.cpp (MachProcess::Suspend): Ditto.
543 (MachProcess::Detach): Now replies to all exceptions, un-suspends all
545 (MachProcess::ReplyToAllExceptions): New function.
546 (MachProcess::PrivateResume): Now takes an additional parameter named
596 * MachProcess.cpp (MachProcess::ExceptionMessageBundleComplete): Now resumes
605 * MachProcess.cpp (MachProcess::PosixSpawnChildForPTraceDebugging): Don't
640 * MachProcess.cpp (MachProcess::Suspend): Improved logging.
641 (MachProcess::Resume): Ditto.
642 (MachProcess::PrivateResume): Handle the case where the process is told
670 detected in the MachProcess::AttachForDebug function on ARM).
674 * MachProcess.cpp (IsSBProcess): New function.
675 (MachProcess::AttachForDebug): Removed flags parameter that was being used
678 (MachProcess::LaunchForDebug): Now has launch parameter that tells it how
682 (MachProcess::SBLaunchForDebug): Now uses DNBError reference instead of
684 (MachProcess::SBForkChildForPTraceDebugging): Ditto.
810 * MacOSX/MachProcess.cpp (MachProcess::SetState): Updated to use new
812 (MachProcess::PrivateResume): Added better logging.
813 (MachProcess::CreateBreakpoint): Added bool HARDWARE parameter for
815 (MachProcess::CreateWatchpoint): New function.
816 (MachProcess::DisableAllWatchpoints): New function.
817 (MachProcess::DisableWatchpoint): New function.
818 (MachProcess::DumpWatchpoint): New function.
819 (MachProcess::EnableBreakpoint): Enabled breakpoints in hardware if
821 (MachProcess::DisableBreakpoint): Disable hardware breakpoints if that
823 (MachProcess::EnableWatchpoint): New function.
824 (MachProcess::ExceptionMessageBundleComplete): Wait for the
827 (MachProcess::LaunchForDebug): Added posix_spawn support.
828 (MachProcess::PosixSpawnChildForPTraceDebugging): New function.
833 * MacOSX/MachProcess.h (PosixSpawnChildForPTraceDebugging): New
887 * MachProcess.h (MachProcess::Resume): Added a signal parameter.
888 * MachProcess.h (MachProcess::PrivateResume): Added a signal parameter.
889 * MachProcess.cpp (MachProcess::Resume): Pass new SIGNAL parameter to
890 MachProcess::PrivateResume.
891 * MachProcess.cpp (MachProcess::PrivateResume): Pass new SIGNAL
909 * MachProcess.cpp (MachProcess::Task): Added getuid(), geteuid(),
938 * MachProcess.cpp (MachProcess::AttachForDebug): AttachForDebug now
940 * MachProcess.h (MachProcess::AttachForDebug): Added flags parameter
973 * macosx/MachProcess.cpp (MachProcess::SBLaunchForDebug): Pass launch_retval.
974 (MachProcess::SBForkChildForPTraceDebugging): Accept & set launch_retval.
975 * Macosx/MachProcess.h: Change prototypes of SBLaunchForDebug &
988 * MachProcess.cpp: (MachProcess::SBForkChildForPTraceDebugging):
1002 * MachProcess.h: Ditto for *LaunchForDebug and
1004 * MachProcess.cpp (MachProcess::LaunchForDebug): Pass on envp.
1005 (MachProcess::SBLaunchForDebug): Ditto.
1006 (MachProcess::ForkChildForPtraceDebugging): Accept envp, haven't actually
1008 (MachProcess::SBForkChildForPtraceDebuggin): Accept envp, convert to
1027 * MachProcess.cpp (MachProcess::DisableAllBreakpoints): New function.
1028 (MachProcess::Detach): Added initial implementation that will halt
1030 * MachProcess.h (MachProcess::DisableAllBreakpoints): New prototype.
1045 * MachProcess.cpp (MachProcess::GetThreadInfo): New function.
1046 * MachProcess.h (MachProcess::GetThreadInfo): New prototype.
1129 * MachProcess.h (MachProcess class): Removed m_attached and
1131 * MachProcess.cpp (MachProcess::AttachForDebug): Set m_flags
1133 (MachProcess::SBLaunchForDebug): Set m_flags to indicate we
1135 (MachProcess::SBForkChildForPTraceDebugging): Changed to new
1137 (MachProcess::ThreadFunctionException): Added code that will
1156 * MachProcess.cpp: (MachProcess::SBForkChildForPTraceDebugging):
1219 * MachProcess.cpp (MachProcess::DumpThreadStoppedReason): Ditto.
1220 (MachProcess::ReadMemory): Ditto.
1221 (MachProcess::WriteMemory): Ditto.
1268 * MachProcess.cpp (MachProcess::CreateBreakpoint): Improved logging.
1269 (MachProcess::DisableBreakpoint): Verify the original opcode gets
1272 (MachProcess::EnableBreakpoint): Verify the breakpoint opcode gets
1306 * MachProcess.cpp (SBForkChildForPTraceDebugging): Bring up to date with
1398 * MachProcess.cpp (MachProcess::StartExceptionThread): Ditto.
1399 (MachProcess::Suspend): Ditto.
1400 (MachProcess::SBForkChildForPTraceDebugging): Ditto.
1448 * MacOSX/MachProcess.cpp: Ditto.