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

t
ttrace(2) ttrace(2)
tts_siginfo is the siginfo, if applicable.
The data associated with a TTEVT_LWP_CREATE
, TTEVT_LWP_TERMINATE
or
TTEVT_LWP_ABORT_SYSCALL
event is as follows:
typedef struct {
lwpid_t tts_target_lwpid;
} ttthread_data_t;
tts_target_lwpid
is the lwpid of the targeted lwp.
The data associated with a
TTEVT_SYSCALL
event is as follows:
typedef struct {
int64_t tts_rval[2];
int tts_errno;
} ttsyscall_data_t;
The tts_rval fields are the return value(s) of the system call.
tts_errno is the error status if the system call failed.
The data associated with a TTEVT_LWP_EXIT
event is as follows:
typedef struct {
int tts_exitcode;
} ttexit_data_t;
tts_exitcode
is the exit code of the process.
The data associated with a TTEVT_BPT_SSTEP
event is as follows:
On PA-RISC systems:
typedef struct {
int tts_isbpt;
} ttbpt_data_t;
tts_isbpt
is set to zero if it is a single-step and to one if the event is a breakpoint
(including single-stepping into a breakpoint).
On Itanium(
g-based systems:
typedef enum {
TTBPT_SSTEP = 0, /* Single stepping */
TTBPT_BPT, /* Breakpoint */
TTBPT_TBRANCH /* Taken Branch */
} ttbpt_type_t;
typedef struct {
ttbpt_type_t tts_isbpt;
} ttbpt_data_t;
TT_PROC_GET_NEXT_LWP_STATE
This request is identical to TT_PROC_GET_FIRST_LWP_STATE except that it returns
the state for the next thread on the stopped list. As events cause threads to stop, they are
added to this list. This provides a way for the tracing process to examine the state of all
the stopped threads in the target process. Both these requests return either a 1 (one) if
valid data is returned or 0 (zero) otherwise. Valid data is returned if the status is that
there was a stopped thread for which to return.
TT_PROC_GET_MPROTECT
This request allows the debugger to obtain protection information for a page in the address
space of the code being debugged. The addr argument specifies the address for which the
protection is to be obtained. The addr2 argument specifies the address of an integer in
which the protection data will be copied.
For this request, the lwpid and data arguments must be set to zero.
TT_PROC_SET_MPROTECT
This requests allows the debugger to modify the protection of the address space of the code
being debugged. The addr argument specifies the start address. The data argument
specifies the extent (in bytes) of the space to be modified. The addr2 argument contains the
502 Hewlett-Packard Company 6 HP-UX 11i Version 3: February 2007