class JobHandle

Defined at line 23 of file ../../src/developer/debug/debug_agent/job_handle.h

Public Methods

std::unique_ptr<JobHandle> Duplicate ()

Creates a copy of this job handle.

zx_koid_t GetKoid ()
std::string GetName ()
std::vector<std::unique_ptr<JobHandle>> GetChildJobs ()

Returns the set of child objects for this job.

std::vector<std::unique_ptr<ProcessHandle>> GetChildProcesses ()
debug::Status WatchJobExceptions (JobExceptionObserver * observer, JobExceptionChannelType type)

Registers for job exceptions. On success, the given observer will be issued notifications

relevant to this job. Can be called with a null observer to unregister from exceptions.

std::unique_ptr<JobHandle> FindJob (zx_koid_t job_koid)

Recursively searches the job tree from this job/process and returns a handle to it. Returns a

null pointer if the job/process was not found. This can also happen if the debug_agent doesn't

have permission to see it.

This is not virtual because it can be implemented entirely in terms of the virtual interface.

Defined at line 11 of file ../../src/developer/debug/debug_agent/job_handle.cc

std::unique_ptr<ProcessHandle> FindProcess (zx_koid_t process_koid)

Defined at line 23 of file ../../src/developer/debug/debug_agent/job_handle.cc

void ~JobHandle ()

Defined at line 25 of file ../../src/developer/debug/debug_agent/job_handle.h