HP-UX Reference (11i v3 07/02) - 2 System Calls (vol 5)

t
ttrace(2) ttrace(2)
[EACCES] The process is already being traced.
[EAGAIN] Unable to attach to a process. This error can only be encountered when attaching to a
process in the middle of an exec() syscall.
[EDEADLK] One thread of a multithreaded process (p1) has performed a
vfork(), the child (p2)
is stopped at the vfork event and the debugger is attempting to stop or resume a
thread in the parent process (p1).
[EFAULT] Invalid user address.
[EINTR] Cannot suspend process or attach is interrupted (
TT_PROC_ATTACH).
[EINVAL] request is an illegal number.
[EINVAL] A non-zero value has been passed in a parameter expecting a zero value or vice-versa.
[EINVAL] The data argument of
TT_PROC_SETTRC
or TT_PROC_ATTACH
is not
TT_VERSION .
[EINVAL] Size too large for data transfer.
[EINVAL] Invalid signal number.
[EINVAL] Misaligned request or not a word multiple (TT_PROC_RDTEXT
,
TT_PROC_RDTEXT_NOATTACH
, TT_PROC_WRTEXT).
[EINVAL] Invalid signal (
TT_LWP_CONTINUE
, TT_LWP_SINGLE).
[EINVAL] Invalid offset (
TT_LWP_RUREGS
, TT_LWP_RUREGS_NOATTACH,
TT_LWP_WUREGS ).
[EINVAL] An offset in the save_state structure is not word-aligned.
[EINVAL] An invalid register is targeted by
TT_LWP_WUREGS.
[EINVAL] The core file argument to a TT_PROC_CORE request exists and is not a regular file.
[EINVAL] The data argument to
TT_VEC_GENERIC
is greater than TT_VEC_MAX.
[EINVAL] An invalid request is specified in the
ttv_req eld of a tt_vec_t passed to
TT_VEC_GENERIC.
[EINVAL] Undocumented fields in a tt_vec_t passed to
TT_VEC_GENERIC are not 0
(zero).
[EINVAL] The
ttvr_count or ttvr_ret1 field of a tt_vec_res_t
passed to
TT_VEC_GENERIC is NULL.
[EINVAL] The size argument to a
TT_PROC_GET_PATHNAME
is larger than MAXPATHLEN.
[ENODATA] Data in this register is not readable or not writable at this time.
[ENOENT] The directory portion of the core file argument to a
TT_PROC_CORE request does not
exist.
[ENOMEM] System is out of memory.
[EPROTO] Attempting to stop a thread already stopped by the debugger.
[EPROTO] Attempting to resume a thread not stopped by the debugger.
[EPROTO] Attempting to read or write registers while the thread is not stopped.
[EPROTO] Attempting to obtain the state of a thread which was not stopped by the debugger.
[EPROTO] Invoked before an exec event took place (
TT_PROC_GET_PATHNAME
).
[EPROTO] The process is exiting and the request is not allowed in this condition.
[EPROTO] The debugger is attempting to modify wide registers after having modified narrow
registers.
[EPROTO] The debugger is attempting to first modify the text of a process in the middle of a
vfork. Text modification is allowed during vfork as long as it was first modified before
the vfork.
512 Hewlett-Packard Company 16 HP-UX 11i Version 3: February 2007