ttrace.2 (2010 09)
t
ttrace(2) ttrace(2)
} ttsignal_data_t;
tts_signal is the signal number.
tts_sigflags is TTSF_USERSIGINFO
if a siginfo was delivered with the signal,
0otherwise.
tts_sigaction is the disposition of the signal.
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-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
6 Hewlett-Packard Company − 6 − HP-UX 11i Version 3: September 2010