powerpc64le: Enforce -mabi=ibmlongdouble when -mfloat128 used
[glibc.git] / nptl_db / db-symbols.h
blobcae85afc8fb1e58f6cee413fa4b91580aa5bd35d
1 /* List of symbols in libpthread examined by libthread_db.
2 Copyright (C) 2009-2020 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, see
17 <https://www.gnu.org/licenses/>. */
19 #define DOT(x) x /* No prefix. */
21 #define STRINGIFY(name) STRINGIFY_1(name)
22 #define STRINGIFY_1(name) #name
24 #define DB_STRUCT(type) \
25 DB_LOOKUP_NAME (SYM_SIZEOF_##type, _thread_db_sizeof_##type)
26 #define DB_STRUCT_FIELD(type, field) \
27 DB_LOOKUP_NAME (SYM_##type##_FIELD_##field, _thread_db_##type##_##field)
28 #define DB_STRUCT_FLEXIBLE_ARRAY(type, field) DB_STRUCT_FIELD (type, field)
29 #define DB_SYMBOL(name) \
30 DB_LOOKUP_NAME (SYM_##name, name)
31 #define DB_FUNCTION(name) \
32 DB_LOOKUP_NAME (SYM_##name, DOT (name))
33 #define DB_VARIABLE(name) \
34 DB_LOOKUP_NAME (SYM_##name, name) \
35 DB_LOOKUP_NAME (SYM_DESC_##name, _thread_db_##name)
37 # include "structs.def"
39 # undef DB_STRUCT
40 # undef DB_STRUCT_FIELD
41 # undef DB_STRUCT_FLEXIBLE_ARRAY
42 # undef DB_FUNCTION
43 # undef DB_SYMBOL
44 # undef DB_VARIABLE
45 # undef DOT
47 DB_LOOKUP_NAME_TH_UNIQUE (SYM_TH_UNIQUE_REGISTER64, _thread_db_register64)
48 DB_LOOKUP_NAME_TH_UNIQUE (SYM_TH_UNIQUE_REGISTER32, _thread_db_register32)
49 DB_LOOKUP_NAME_TH_UNIQUE (SYM_TH_UNIQUE_CONST_THREAD_AREA,
50 _thread_db_const_thread_area)
51 DB_LOOKUP_NAME_TH_UNIQUE (SYM_TH_UNIQUE_REGISTER32_THREAD_AREA,
52 _thread_db_register32_thread_area)
53 DB_LOOKUP_NAME_TH_UNIQUE (SYM_TH_UNIQUE_REGISTER64_THREAD_AREA,
54 _thread_db_register64_thread_area)