Make unistd.h pre-c((-safe.
[glibc.git] / nptl_db / db-symbols.h
blobd6c35250b1c0e208b8c426fb6662e69f6ded945f
1 /* List of symbols in libpthread examined by libthread_db.
2 Copyright (C) 2009 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
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.
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.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 02111-1307 USA. */
20 #ifdef HAVE_ASM_GLOBAL_DOT_NAME
21 # define DOT(x) .##x /* PPC64 requires . prefix on code symbols. */
22 #else
23 # define DOT(x) x /* No prefix. */
24 #endif
26 #define STRINGIFY(name) STRINGIFY_1(name)
27 #define STRINGIFY_1(name) #name
29 #define DB_STRUCT(type) \
30 DB_LOOKUP_NAME (SYM_SIZEOF_##type, _thread_db_sizeof_##type)
31 #define DB_STRUCT_FIELD(type, field) \
32 DB_LOOKUP_NAME (SYM_##type##_FIELD_##field, _thread_db_##type##_##field)
33 #define DB_SYMBOL(name) \
34 DB_LOOKUP_NAME (SYM_##name, name)
35 #define DB_FUNCTION(name) \
36 DB_LOOKUP_NAME (SYM_##name, DOT (name))
37 #define DB_VARIABLE(name) \
38 DB_LOOKUP_NAME (SYM_##name, name) \
39 DB_LOOKUP_NAME (SYM_DESC_##name, _thread_db_##name)
41 # include "structs.def"
43 # undef DB_STRUCT
44 # undef DB_FUNCTION
45 # undef DB_SYMBOL
46 # undef DB_VARIABLE
47 # undef DOT
49 DB_LOOKUP_NAME_TH_UNIQUE (SYM_TH_UNIQUE_REGISTER64, _thread_db_register64)
50 DB_LOOKUP_NAME_TH_UNIQUE (SYM_TH_UNIQUE_REGISTER32, _thread_db_register32)
51 DB_LOOKUP_NAME_TH_UNIQUE (SYM_TH_UNIQUE_CONST_THREAD_AREA,
52 _thread_db_const_thread_area)
53 DB_LOOKUP_NAME_TH_UNIQUE (SYM_TH_UNIQUE_REGISTER32_THREAD_AREA,
54 _thread_db_register32_thread_area)
55 DB_LOOKUP_NAME_TH_UNIQUE (SYM_TH_UNIQUE_REGISTER64_THREAD_AREA,
56 _thread_db_register64_thread_area)