Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include
File: thread_db.h
/* thread_db.h -- interface to libthread_db.so library for debugging -lpthread
[0] Fix | Delete
Copyright (C) 1999-2018 Free Software Foundation, Inc.
[1] Fix | Delete
This file is part of the GNU C Library.
[2] Fix | Delete
[3] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[4] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[5] Fix | Delete
License as published by the Free Software Foundation; either
[6] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[7] Fix | Delete
[8] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[9] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[10] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[11] Fix | Delete
Lesser General Public License for more details.
[12] Fix | Delete
[13] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[14] Fix | Delete
License along with the GNU C Library; if not, see
[15] Fix | Delete
<http://www.gnu.org/licenses/>. */
[16] Fix | Delete
[17] Fix | Delete
#ifndef _THREAD_DB_H
[18] Fix | Delete
#define _THREAD_DB_H 1
[19] Fix | Delete
[20] Fix | Delete
/* This is the debugger interface for the NPTL library. It is
[21] Fix | Delete
modelled closely after the interface with same names in Solaris
[22] Fix | Delete
with the goal to share the same code in the debugger. */
[23] Fix | Delete
#include <pthread.h>
[24] Fix | Delete
#include <stdint.h>
[25] Fix | Delete
#include <sys/types.h>
[26] Fix | Delete
#include <sys/procfs.h>
[27] Fix | Delete
[28] Fix | Delete
[29] Fix | Delete
/* Error codes of the library. */
[30] Fix | Delete
typedef enum
[31] Fix | Delete
{
[32] Fix | Delete
TD_OK, /* No error. */
[33] Fix | Delete
TD_ERR, /* No further specified error. */
[34] Fix | Delete
TD_NOTHR, /* No matching thread found. */
[35] Fix | Delete
TD_NOSV, /* No matching synchronization handle found. */
[36] Fix | Delete
TD_NOLWP, /* No matching light-weighted process found. */
[37] Fix | Delete
TD_BADPH, /* Invalid process handle. */
[38] Fix | Delete
TD_BADTH, /* Invalid thread handle. */
[39] Fix | Delete
TD_BADSH, /* Invalid synchronization handle. */
[40] Fix | Delete
TD_BADTA, /* Invalid thread agent. */
[41] Fix | Delete
TD_BADKEY, /* Invalid key. */
[42] Fix | Delete
TD_NOMSG, /* No event available. */
[43] Fix | Delete
TD_NOFPREGS, /* No floating-point register content available. */
[44] Fix | Delete
TD_NOLIBTHREAD, /* Application not linked with thread library. */
[45] Fix | Delete
TD_NOEVENT, /* Requested event is not supported. */
[46] Fix | Delete
TD_NOCAPAB, /* Capability not available. */
[47] Fix | Delete
TD_DBERR, /* Internal debug library error. */
[48] Fix | Delete
TD_NOAPLIC, /* Operation is not applicable. */
[49] Fix | Delete
TD_NOTSD, /* No thread-specific data available. */
[50] Fix | Delete
TD_MALLOC, /* Out of memory. */
[51] Fix | Delete
TD_PARTIALREG, /* Not entire register set was read or written. */
[52] Fix | Delete
TD_NOXREGS, /* X register set not available for given thread. */
[53] Fix | Delete
TD_TLSDEFER, /* Thread has not yet allocated TLS for given module. */
[54] Fix | Delete
TD_NOTALLOC = TD_TLSDEFER,
[55] Fix | Delete
TD_VERSION, /* Version if libpthread and libthread_db do not match. */
[56] Fix | Delete
TD_NOTLS /* There is no TLS segment in the given module. */
[57] Fix | Delete
} td_err_e;
[58] Fix | Delete
[59] Fix | Delete
[60] Fix | Delete
/* Possible thread states. TD_THR_ANY_STATE is a pseudo-state used to
[61] Fix | Delete
select threads regardless of state in td_ta_thr_iter(). */
[62] Fix | Delete
typedef enum
[63] Fix | Delete
{
[64] Fix | Delete
TD_THR_ANY_STATE,
[65] Fix | Delete
TD_THR_UNKNOWN,
[66] Fix | Delete
TD_THR_STOPPED,
[67] Fix | Delete
TD_THR_RUN,
[68] Fix | Delete
TD_THR_ACTIVE,
[69] Fix | Delete
TD_THR_ZOMBIE,
[70] Fix | Delete
TD_THR_SLEEP,
[71] Fix | Delete
TD_THR_STOPPED_ASLEEP
[72] Fix | Delete
} td_thr_state_e;
[73] Fix | Delete
[74] Fix | Delete
/* Thread type: user or system. TD_THR_ANY_TYPE is a pseudo-type used
[75] Fix | Delete
to select threads regardless of type in td_ta_thr_iter(). */
[76] Fix | Delete
typedef enum
[77] Fix | Delete
{
[78] Fix | Delete
TD_THR_ANY_TYPE,
[79] Fix | Delete
TD_THR_USER,
[80] Fix | Delete
TD_THR_SYSTEM
[81] Fix | Delete
} td_thr_type_e;
[82] Fix | Delete
[83] Fix | Delete
[84] Fix | Delete
/* Types of the debugging library. */
[85] Fix | Delete
[86] Fix | Delete
/* Handle for a process. This type is opaque. */
[87] Fix | Delete
typedef struct td_thragent td_thragent_t;
[88] Fix | Delete
[89] Fix | Delete
/* The actual thread handle type. This is also opaque. */
[90] Fix | Delete
typedef struct td_thrhandle
[91] Fix | Delete
{
[92] Fix | Delete
td_thragent_t *th_ta_p;
[93] Fix | Delete
psaddr_t th_unique;
[94] Fix | Delete
} td_thrhandle_t;
[95] Fix | Delete
[96] Fix | Delete
[97] Fix | Delete
/* Forward declaration of a type defined by and for the dynamic linker. */
[98] Fix | Delete
struct link_map;
[99] Fix | Delete
[100] Fix | Delete
[101] Fix | Delete
/* Flags for `td_ta_thr_iter'. */
[102] Fix | Delete
#define TD_THR_ANY_USER_FLAGS 0xffffffff
[103] Fix | Delete
#define TD_THR_LOWEST_PRIORITY -20
[104] Fix | Delete
#define TD_SIGNO_MASK NULL
[105] Fix | Delete
[106] Fix | Delete
[107] Fix | Delete
#define TD_EVENTSIZE 2
[108] Fix | Delete
#define BT_UISHIFT 5 /* log base 2 of BT_NBIPUI, to extract word index */
[109] Fix | Delete
#define BT_NBIPUI (1 << BT_UISHIFT) /* n bits per unsigned int */
[110] Fix | Delete
#define BT_UIMASK (BT_NBIPUI - 1) /* to extract bit index */
[111] Fix | Delete
[112] Fix | Delete
/* Bitmask of enabled events. */
[113] Fix | Delete
typedef struct td_thr_events
[114] Fix | Delete
{
[115] Fix | Delete
uint32_t event_bits[TD_EVENTSIZE];
[116] Fix | Delete
} td_thr_events_t;
[117] Fix | Delete
[118] Fix | Delete
/* Event set manipulation macros. */
[119] Fix | Delete
#define __td_eventmask(n) \
[120] Fix | Delete
(UINT32_C (1) << (((n) - 1) & BT_UIMASK))
[121] Fix | Delete
#define __td_eventword(n) \
[122] Fix | Delete
((UINT32_C ((n) - 1)) >> BT_UISHIFT)
[123] Fix | Delete
[124] Fix | Delete
#define td_event_emptyset(setp) \
[125] Fix | Delete
do { \
[126] Fix | Delete
int __i; \
[127] Fix | Delete
for (__i = TD_EVENTSIZE; __i > 0; --__i) \
[128] Fix | Delete
(setp)->event_bits[__i - 1] = 0; \
[129] Fix | Delete
} while (0)
[130] Fix | Delete
[131] Fix | Delete
#define td_event_fillset(setp) \
[132] Fix | Delete
do { \
[133] Fix | Delete
int __i; \
[134] Fix | Delete
for (__i = TD_EVENTSIZE; __i > 0; --__i) \
[135] Fix | Delete
(setp)->event_bits[__i - 1] = UINT32_C (0xffffffff); \
[136] Fix | Delete
} while (0)
[137] Fix | Delete
[138] Fix | Delete
#define td_event_addset(setp, n) \
[139] Fix | Delete
(((setp)->event_bits[__td_eventword (n)]) |= __td_eventmask (n))
[140] Fix | Delete
#define td_event_delset(setp, n) \
[141] Fix | Delete
(((setp)->event_bits[__td_eventword (n)]) &= ~__td_eventmask (n))
[142] Fix | Delete
#define td_eventismember(setp, n) \
[143] Fix | Delete
(__td_eventmask (n) & ((setp)->event_bits[__td_eventword (n)]))
[144] Fix | Delete
#if TD_EVENTSIZE == 2
[145] Fix | Delete
# define td_eventisempty(setp) \
[146] Fix | Delete
(!((setp)->event_bits[0]) && !((setp)->event_bits[1]))
[147] Fix | Delete
#else
[148] Fix | Delete
# error "td_eventisempty must be changed to match TD_EVENTSIZE"
[149] Fix | Delete
#endif
[150] Fix | Delete
[151] Fix | Delete
/* Events reportable by the thread implementation. */
[152] Fix | Delete
typedef enum
[153] Fix | Delete
{
[154] Fix | Delete
TD_ALL_EVENTS, /* Pseudo-event number. */
[155] Fix | Delete
TD_EVENT_NONE = TD_ALL_EVENTS, /* Depends on context. */
[156] Fix | Delete
TD_READY, /* Is executable now. */
[157] Fix | Delete
TD_SLEEP, /* Blocked in a synchronization obj. */
[158] Fix | Delete
TD_SWITCHTO, /* Now assigned to a process. */
[159] Fix | Delete
TD_SWITCHFROM, /* Not anymore assigned to a process. */
[160] Fix | Delete
TD_LOCK_TRY, /* Trying to get an unavailable lock. */
[161] Fix | Delete
TD_CATCHSIG, /* Signal posted to the thread. */
[162] Fix | Delete
TD_IDLE, /* Process getting idle. */
[163] Fix | Delete
TD_CREATE, /* New thread created. */
[164] Fix | Delete
TD_DEATH, /* Thread terminated. */
[165] Fix | Delete
TD_PREEMPT, /* Preempted. */
[166] Fix | Delete
TD_PRI_INHERIT, /* Inherited elevated priority. */
[167] Fix | Delete
TD_REAP, /* Reaped. */
[168] Fix | Delete
TD_CONCURRENCY, /* Number of processes changing. */
[169] Fix | Delete
TD_TIMEOUT, /* Conditional variable wait timed out. */
[170] Fix | Delete
TD_MIN_EVENT_NUM = TD_READY,
[171] Fix | Delete
TD_MAX_EVENT_NUM = TD_TIMEOUT,
[172] Fix | Delete
TD_EVENTS_ENABLE = 31 /* Event reporting enabled. */
[173] Fix | Delete
} td_event_e;
[174] Fix | Delete
[175] Fix | Delete
/* Values representing the different ways events are reported. */
[176] Fix | Delete
typedef enum
[177] Fix | Delete
{
[178] Fix | Delete
NOTIFY_BPT, /* User must insert breakpoint at u.bptaddr. */
[179] Fix | Delete
NOTIFY_AUTOBPT, /* Breakpoint at u.bptaddr is automatically
[180] Fix | Delete
inserted. */
[181] Fix | Delete
NOTIFY_SYSCALL /* System call u.syscallno will be invoked. */
[182] Fix | Delete
} td_notify_e;
[183] Fix | Delete
[184] Fix | Delete
/* Description how event type is reported. */
[185] Fix | Delete
typedef struct td_notify
[186] Fix | Delete
{
[187] Fix | Delete
td_notify_e type; /* Way the event is reported. */
[188] Fix | Delete
union
[189] Fix | Delete
{
[190] Fix | Delete
psaddr_t bptaddr; /* Address of breakpoint. */
[191] Fix | Delete
int syscallno; /* Number of system call used. */
[192] Fix | Delete
} u;
[193] Fix | Delete
} td_notify_t;
[194] Fix | Delete
[195] Fix | Delete
/* Structure used to report event. */
[196] Fix | Delete
typedef struct td_event_msg
[197] Fix | Delete
{
[198] Fix | Delete
td_event_e event; /* Event type being reported. */
[199] Fix | Delete
const td_thrhandle_t *th_p; /* Thread reporting the event. */
[200] Fix | Delete
union
[201] Fix | Delete
{
[202] Fix | Delete
# if 0
[203] Fix | Delete
td_synchandle_t *sh; /* Handle of synchronization object. */
[204] Fix | Delete
#endif
[205] Fix | Delete
uintptr_t data; /* Event specific data. */
[206] Fix | Delete
} msg;
[207] Fix | Delete
} td_event_msg_t;
[208] Fix | Delete
[209] Fix | Delete
/* Structure containing event data available in each thread structure. */
[210] Fix | Delete
typedef struct
[211] Fix | Delete
{
[212] Fix | Delete
td_thr_events_t eventmask; /* Mask of enabled events. */
[213] Fix | Delete
td_event_e eventnum; /* Number of last event. */
[214] Fix | Delete
void *eventdata; /* Data associated with event. */
[215] Fix | Delete
} td_eventbuf_t;
[216] Fix | Delete
[217] Fix | Delete
[218] Fix | Delete
/* Gathered statistics about the process. */
[219] Fix | Delete
typedef struct td_ta_stats
[220] Fix | Delete
{
[221] Fix | Delete
int nthreads; /* Total number of threads in use. */
[222] Fix | Delete
int r_concurrency; /* Concurrency level requested by user. */
[223] Fix | Delete
int nrunnable_num; /* Average runnable threads, numerator. */
[224] Fix | Delete
int nrunnable_den; /* Average runnable threads, denominator. */
[225] Fix | Delete
int a_concurrency_num; /* Achieved concurrency level, numerator. */
[226] Fix | Delete
int a_concurrency_den; /* Achieved concurrency level, denominator. */
[227] Fix | Delete
int nlwps_num; /* Average number of processes in use,
[228] Fix | Delete
numerator. */
[229] Fix | Delete
int nlwps_den; /* Average number of processes in use,
[230] Fix | Delete
denominator. */
[231] Fix | Delete
int nidle_num; /* Average number of idling processes,
[232] Fix | Delete
numerator. */
[233] Fix | Delete
int nidle_den; /* Average number of idling processes,
[234] Fix | Delete
denominator. */
[235] Fix | Delete
} td_ta_stats_t;
[236] Fix | Delete
[237] Fix | Delete
[238] Fix | Delete
/* Since Sun's library is based on Solaris threads we have to define a few
[239] Fix | Delete
types to map them to POSIX threads. */
[240] Fix | Delete
typedef pthread_t thread_t;
[241] Fix | Delete
typedef pthread_key_t thread_key_t;
[242] Fix | Delete
[243] Fix | Delete
[244] Fix | Delete
/* Callback for iteration over threads. */
[245] Fix | Delete
typedef int td_thr_iter_f (const td_thrhandle_t *, void *);
[246] Fix | Delete
[247] Fix | Delete
/* Callback for iteration over thread local data. */
[248] Fix | Delete
typedef int td_key_iter_f (thread_key_t, void (*) (void *), void *);
[249] Fix | Delete
[250] Fix | Delete
[251] Fix | Delete
[252] Fix | Delete
/* Forward declaration. This has to be defined by the user. */
[253] Fix | Delete
struct ps_prochandle;
[254] Fix | Delete
[255] Fix | Delete
[256] Fix | Delete
/* Information about the thread. */
[257] Fix | Delete
typedef struct td_thrinfo
[258] Fix | Delete
{
[259] Fix | Delete
td_thragent_t *ti_ta_p; /* Process handle. */
[260] Fix | Delete
unsigned int ti_user_flags; /* Unused. */
[261] Fix | Delete
thread_t ti_tid; /* Thread ID returned by
[262] Fix | Delete
pthread_create(). */
[263] Fix | Delete
char *ti_tls; /* Pointer to thread-local data. */
[264] Fix | Delete
psaddr_t ti_startfunc; /* Start function passed to
[265] Fix | Delete
pthread_create(). */
[266] Fix | Delete
psaddr_t ti_stkbase; /* Base of thread's stack. */
[267] Fix | Delete
long int ti_stksize; /* Size of thread's stack. */
[268] Fix | Delete
psaddr_t ti_ro_area; /* Unused. */
[269] Fix | Delete
int ti_ro_size; /* Unused. */
[270] Fix | Delete
td_thr_state_e ti_state; /* Thread state. */
[271] Fix | Delete
unsigned char ti_db_suspended; /* Nonzero if suspended by debugger. */
[272] Fix | Delete
td_thr_type_e ti_type; /* Type of the thread (system vs
[273] Fix | Delete
user thread). */
[274] Fix | Delete
intptr_t ti_pc; /* Unused. */
[275] Fix | Delete
intptr_t ti_sp; /* Unused. */
[276] Fix | Delete
short int ti_flags; /* Unused. */
[277] Fix | Delete
int ti_pri; /* Thread priority. */
[278] Fix | Delete
lwpid_t ti_lid; /* Kernel PID for this thread. */
[279] Fix | Delete
sigset_t ti_sigmask; /* Signal mask. */
[280] Fix | Delete
unsigned char ti_traceme; /* Nonzero if event reporting
[281] Fix | Delete
enabled. */
[282] Fix | Delete
unsigned char ti_preemptflag; /* Unused. */
[283] Fix | Delete
unsigned char ti_pirecflag; /* Unused. */
[284] Fix | Delete
sigset_t ti_pending; /* Set of pending signals. */
[285] Fix | Delete
td_thr_events_t ti_events; /* Set of enabled events. */
[286] Fix | Delete
} td_thrinfo_t;
[287] Fix | Delete
[288] Fix | Delete
[289] Fix | Delete
[290] Fix | Delete
/* Prototypes for exported library functions. */
[291] Fix | Delete
[292] Fix | Delete
/* Initialize the thread debug support library. */
[293] Fix | Delete
extern td_err_e td_init (void);
[294] Fix | Delete
[295] Fix | Delete
/* Historical relict. Should not be used anymore. */
[296] Fix | Delete
extern td_err_e td_log (void);
[297] Fix | Delete
[298] Fix | Delete
/* Return list of symbols the library can request. */
[299] Fix | Delete
extern const char **td_symbol_list (void);
[300] Fix | Delete
[301] Fix | Delete
/* Generate new thread debug library handle for process PS. */
[302] Fix | Delete
extern td_err_e td_ta_new (struct ps_prochandle *__ps, td_thragent_t **__ta);
[303] Fix | Delete
[304] Fix | Delete
/* Free resources allocated for TA. */
[305] Fix | Delete
extern td_err_e td_ta_delete (td_thragent_t *__ta);
[306] Fix | Delete
[307] Fix | Delete
/* Get number of currently running threads in process associated with TA. */
[308] Fix | Delete
extern td_err_e td_ta_get_nthreads (const td_thragent_t *__ta, int *__np);
[309] Fix | Delete
[310] Fix | Delete
/* Return process handle passed in `td_ta_new' for process associated with
[311] Fix | Delete
TA. */
[312] Fix | Delete
extern td_err_e td_ta_get_ph (const td_thragent_t *__ta,
[313] Fix | Delete
struct ps_prochandle **__ph);
[314] Fix | Delete
[315] Fix | Delete
/* Map thread library handle PT to thread debug library handle for process
[316] Fix | Delete
associated with TA and store result in *TH. */
[317] Fix | Delete
extern td_err_e td_ta_map_id2thr (const td_thragent_t *__ta, pthread_t __pt,
[318] Fix | Delete
td_thrhandle_t *__th);
[319] Fix | Delete
[320] Fix | Delete
/* Map process ID LWPID to thread debug library handle for process
[321] Fix | Delete
associated with TA and store result in *TH. */
[322] Fix | Delete
extern td_err_e td_ta_map_lwp2thr (const td_thragent_t *__ta, lwpid_t __lwpid,
[323] Fix | Delete
td_thrhandle_t *__th);
[324] Fix | Delete
[325] Fix | Delete
[326] Fix | Delete
/* Call for each thread in a process associated with TA the callback function
[327] Fix | Delete
CALLBACK. */
[328] Fix | Delete
extern td_err_e td_ta_thr_iter (const td_thragent_t *__ta,
[329] Fix | Delete
td_thr_iter_f *__callback, void *__cbdata_p,
[330] Fix | Delete
td_thr_state_e __state, int __ti_pri,
[331] Fix | Delete
sigset_t *__ti_sigmask_p,
[332] Fix | Delete
unsigned int __ti_user_flags);
[333] Fix | Delete
[334] Fix | Delete
/* Call for each defined thread local data entry the callback function KI. */
[335] Fix | Delete
extern td_err_e td_ta_tsd_iter (const td_thragent_t *__ta, td_key_iter_f *__ki,
[336] Fix | Delete
void *__p);
[337] Fix | Delete
[338] Fix | Delete
[339] Fix | Delete
/* Get event address for EVENT. */
[340] Fix | Delete
extern td_err_e td_ta_event_addr (const td_thragent_t *__ta,
[341] Fix | Delete
td_event_e __event, td_notify_t *__ptr);
[342] Fix | Delete
[343] Fix | Delete
/* Enable EVENT in global mask. */
[344] Fix | Delete
extern td_err_e td_ta_set_event (const td_thragent_t *__ta,
[345] Fix | Delete
td_thr_events_t *__event);
[346] Fix | Delete
[347] Fix | Delete
/* Disable EVENT in global mask. */
[348] Fix | Delete
extern td_err_e td_ta_clear_event (const td_thragent_t *__ta,
[349] Fix | Delete
td_thr_events_t *__event);
[350] Fix | Delete
[351] Fix | Delete
/* Return information about last event. */
[352] Fix | Delete
extern td_err_e td_ta_event_getmsg (const td_thragent_t *__ta,
[353] Fix | Delete
td_event_msg_t *__msg);
[354] Fix | Delete
[355] Fix | Delete
[356] Fix | Delete
/* Set suggested concurrency level for process associated with TA. */
[357] Fix | Delete
extern td_err_e td_ta_setconcurrency (const td_thragent_t *__ta, int __level);
[358] Fix | Delete
[359] Fix | Delete
[360] Fix | Delete
/* Enable collecting statistics for process associated with TA. */
[361] Fix | Delete
extern td_err_e td_ta_enable_stats (const td_thragent_t *__ta, int __enable);
[362] Fix | Delete
[363] Fix | Delete
/* Reset statistics. */
[364] Fix | Delete
extern td_err_e td_ta_reset_stats (const td_thragent_t *__ta);
[365] Fix | Delete
[366] Fix | Delete
/* Retrieve statistics from process associated with TA. */
[367] Fix | Delete
extern td_err_e td_ta_get_stats (const td_thragent_t *__ta,
[368] Fix | Delete
td_ta_stats_t *__statsp);
[369] Fix | Delete
[370] Fix | Delete
[371] Fix | Delete
/* Validate that TH is a thread handle. */
[372] Fix | Delete
extern td_err_e td_thr_validate (const td_thrhandle_t *__th);
[373] Fix | Delete
[374] Fix | Delete
/* Return information about thread TH. */
[375] Fix | Delete
extern td_err_e td_thr_get_info (const td_thrhandle_t *__th,
[376] Fix | Delete
td_thrinfo_t *__infop);
[377] Fix | Delete
[378] Fix | Delete
/* Retrieve floating-point register contents of process running thread TH. */
[379] Fix | Delete
extern td_err_e td_thr_getfpregs (const td_thrhandle_t *__th,
[380] Fix | Delete
prfpregset_t *__regset);
[381] Fix | Delete
[382] Fix | Delete
/* Retrieve general register contents of process running thread TH. */
[383] Fix | Delete
extern td_err_e td_thr_getgregs (const td_thrhandle_t *__th,
[384] Fix | Delete
prgregset_t __gregs);
[385] Fix | Delete
[386] Fix | Delete
/* Retrieve extended register contents of process running thread TH. */
[387] Fix | Delete
extern td_err_e td_thr_getxregs (const td_thrhandle_t *__th, void *__xregs);
[388] Fix | Delete
[389] Fix | Delete
/* Get size of extended register set of process running thread TH. */
[390] Fix | Delete
extern td_err_e td_thr_getxregsize (const td_thrhandle_t *__th, int *__sizep);
[391] Fix | Delete
[392] Fix | Delete
/* Set floating-point register contents of process running thread TH. */
[393] Fix | Delete
extern td_err_e td_thr_setfpregs (const td_thrhandle_t *__th,
[394] Fix | Delete
const prfpregset_t *__fpregs);
[395] Fix | Delete
[396] Fix | Delete
/* Set general register contents of process running thread TH. */
[397] Fix | Delete
extern td_err_e td_thr_setgregs (const td_thrhandle_t *__th,
[398] Fix | Delete
prgregset_t __gregs);
[399] Fix | Delete
[400] Fix | Delete
/* Set extended register contents of process running thread TH. */
[401] Fix | Delete
extern td_err_e td_thr_setxregs (const td_thrhandle_t *__th,
[402] Fix | Delete
const void *__addr);
[403] Fix | Delete
[404] Fix | Delete
[405] Fix | Delete
/* Get address of the given module's TLS storage area for the given thread. */
[406] Fix | Delete
extern td_err_e td_thr_tlsbase (const td_thrhandle_t *__th,
[407] Fix | Delete
unsigned long int __modid,
[408] Fix | Delete
psaddr_t *__base);
[409] Fix | Delete
[410] Fix | Delete
/* Get address of thread local variable. */
[411] Fix | Delete
extern td_err_e td_thr_tls_get_addr (const td_thrhandle_t *__th,
[412] Fix | Delete
psaddr_t __map_address, size_t __offset,
[413] Fix | Delete
psaddr_t *__address);
[414] Fix | Delete
[415] Fix | Delete
[416] Fix | Delete
/* Enable reporting for EVENT for thread TH. */
[417] Fix | Delete
extern td_err_e td_thr_event_enable (const td_thrhandle_t *__th, int __event);
[418] Fix | Delete
[419] Fix | Delete
/* Enable EVENT for thread TH. */
[420] Fix | Delete
extern td_err_e td_thr_set_event (const td_thrhandle_t *__th,
[421] Fix | Delete
td_thr_events_t *__event);
[422] Fix | Delete
[423] Fix | Delete
/* Disable EVENT for thread TH. */
[424] Fix | Delete
extern td_err_e td_thr_clear_event (const td_thrhandle_t *__th,
[425] Fix | Delete
td_thr_events_t *__event);
[426] Fix | Delete
[427] Fix | Delete
/* Get event message for thread TH. */
[428] Fix | Delete
extern td_err_e td_thr_event_getmsg (const td_thrhandle_t *__th,
[429] Fix | Delete
td_event_msg_t *__msg);
[430] Fix | Delete
[431] Fix | Delete
[432] Fix | Delete
/* Set priority of thread TH. */
[433] Fix | Delete
extern td_err_e td_thr_setprio (const td_thrhandle_t *__th, int __prio);
[434] Fix | Delete
[435] Fix | Delete
[436] Fix | Delete
/* Set pending signals for thread TH. */
[437] Fix | Delete
extern td_err_e td_thr_setsigpending (const td_thrhandle_t *__th,
[438] Fix | Delete
unsigned char __n, const sigset_t *__ss);
[439] Fix | Delete
[440] Fix | Delete
/* Set signal mask for thread TH. */
[441] Fix | Delete
extern td_err_e td_thr_sigsetmask (const td_thrhandle_t *__th,
[442] Fix | Delete
const sigset_t *__ss);
[443] Fix | Delete
[444] Fix | Delete
[445] Fix | Delete
/* Return thread local data associated with key TK in thread TH. */
[446] Fix | Delete
extern td_err_e td_thr_tsd (const td_thrhandle_t *__th,
[447] Fix | Delete
const thread_key_t __tk, void **__data);
[448] Fix | Delete
[449] Fix | Delete
[450] Fix | Delete
/* Suspend execution of thread TH. */
[451] Fix | Delete
extern td_err_e td_thr_dbsuspend (const td_thrhandle_t *__th);
[452] Fix | Delete
[453] Fix | Delete
/* Resume execution of thread TH. */
[454] Fix | Delete
extern td_err_e td_thr_dbresume (const td_thrhandle_t *__th);
[455] Fix | Delete
[456] Fix | Delete
#endif /* thread_db.h */
[457] Fix | Delete
[458] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function