]> git.ipfire.org Git - thirdparty/glibc.git/blame - nptl_db/structs.def
Update copyright notices with scripts/update-copyrights
[thirdparty/glibc.git] / nptl_db / structs.def
CommitLineData
7f08f55a 1/* List of types and symbols in libpthread examined by libthread_db.
d4697bc9 2 Copyright (C) 2003-2014 Free Software Foundation, Inc.
7f08f55a
RM
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
59ba27a6
PE
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
7f08f55a
RM
18
19#ifndef DB_STRUCT_ARRAY_FIELD
20# define DB_STRUCT_ARRAY_FIELD(type, field) DB_STRUCT_FIELD (type, field)
21# define DB_ARRAY_VARIABLE(name) DB_VARIABLE (name)
22# define STRUCTS_DEF_DEFAULTS 1
23#endif
24
25DB_STRUCT (pthread)
26DB_STRUCT_FIELD (pthread, list)
27DB_STRUCT_FIELD (pthread, report_events)
28DB_STRUCT_FIELD (pthread, tid)
d11dc9ec 29DB_STRUCT_FIELD (pthread, pid)
7f08f55a
RM
30DB_STRUCT_FIELD (pthread, start_routine)
31DB_STRUCT_FIELD (pthread, cancelhandling)
32DB_STRUCT_FIELD (pthread, schedpolicy)
33DB_STRUCT_FIELD (pthread, schedparam_sched_priority)
34DB_STRUCT_FIELD (pthread, specific)
35DB_STRUCT_FIELD (pthread, eventbuf)
36DB_STRUCT_FIELD (pthread, eventbuf_eventmask)
37DB_STRUCT_ARRAY_FIELD (pthread, eventbuf_eventmask_event_bits)
38DB_STRUCT_FIELD (pthread, nextevent)
39
40DB_STRUCT (list_t)
41DB_STRUCT_FIELD (list_t, next)
42DB_STRUCT_FIELD (list_t, prev)
43
44DB_STRUCT (td_thr_events_t)
45DB_STRUCT_ARRAY_FIELD (td_thr_events_t, event_bits)
46
47DB_STRUCT (td_eventbuf_t)
48DB_STRUCT_FIELD (td_eventbuf_t, eventnum)
49DB_STRUCT_FIELD (td_eventbuf_t, eventdata)
50
51DB_SYMBOL (stack_used)
52DB_SYMBOL (__stack_user)
53DB_SYMBOL (nptl_version)
d43147cd
RM
54DB_FUNCTION (__nptl_create_event)
55DB_FUNCTION (__nptl_death_event)
7f08f55a
RM
56DB_SYMBOL (__nptl_threads_events)
57DB_VARIABLE (__nptl_nthreads)
58DB_VARIABLE (__nptl_last_event)
7d9d8bd1 59DB_VARIABLE (__nptl_initial_report_events)
7f08f55a
RM
60
61DB_ARRAY_VARIABLE (__pthread_keys)
62DB_STRUCT (pthread_key_struct)
63DB_STRUCT_FIELD (pthread_key_struct, seq)
64DB_STRUCT_FIELD (pthread_key_struct, destr)
65
66DB_STRUCT (pthread_key_data)
67DB_STRUCT_FIELD (pthread_key_data, seq)
68DB_STRUCT_FIELD (pthread_key_data, data)
69DB_STRUCT (pthread_key_data_level2)
70DB_STRUCT_ARRAY_FIELD (pthread_key_data_level2, data)
71
7f08f55a 72DB_STRUCT_FIELD (link_map, l_tls_modid)
7f08f55a 73
7f08f55a 74DB_STRUCT_ARRAY_FIELD (dtv, dtv)
11bf311e 75#define pointer_val pointer.val /* Field of anonymous struct in dtv_t. */
0fdd44dc 76DB_STRUCT_FIELD (dtv_t, pointer_val)
7f08f55a
RM
77#if !defined IS_IN_libpthread || TLS_TCB_AT_TP
78DB_STRUCT_FIELD (pthread, dtvp)
79#endif
80
81#ifdef STRUCTS_DEF_DEFAULTS
82# undef DB_STRUCT_ARRAY_FIELD
83# undef DB_ARRAY_VARIABLE
84# undef STRUCTS_DEF_DEFAULTS
85#endif