db-symbols.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* List of symbols in libpthread examined by libthread_db.
  2. Copyright (C) 2009-2019 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library.
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. The GNU C Library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with the GNU C Library; if not, see
  14. <http://www.gnu.org/licenses/>. */
  15. #define DOT(x) x /* No prefix. */
  16. #define STRINGIFY(name) STRINGIFY_1(name)
  17. #define STRINGIFY_1(name) #name
  18. #define DB_STRUCT(type) \
  19. DB_LOOKUP_NAME (SYM_SIZEOF_##type, _thread_db_sizeof_##type)
  20. #define DB_STRUCT_FIELD(type, field) \
  21. DB_LOOKUP_NAME (SYM_##type##_FIELD_##field, _thread_db_##type##_##field)
  22. #define DB_SYMBOL(name) \
  23. DB_LOOKUP_NAME (SYM_##name, name)
  24. #define DB_FUNCTION(name) \
  25. DB_LOOKUP_NAME (SYM_##name, DOT (name))
  26. #define DB_VARIABLE(name) \
  27. DB_LOOKUP_NAME (SYM_##name, name) \
  28. DB_LOOKUP_NAME (SYM_DESC_##name, _thread_db_##name)
  29. # include "structs.def"
  30. # undef DB_STRUCT
  31. # undef DB_FUNCTION
  32. # undef DB_SYMBOL
  33. # undef DB_VARIABLE
  34. # undef DOT
  35. DB_LOOKUP_NAME_TH_UNIQUE (SYM_TH_UNIQUE_REGISTER64, _thread_db_register64)
  36. DB_LOOKUP_NAME_TH_UNIQUE (SYM_TH_UNIQUE_REGISTER32, _thread_db_register32)
  37. DB_LOOKUP_NAME_TH_UNIQUE (SYM_TH_UNIQUE_CONST_THREAD_AREA,
  38. _thread_db_const_thread_area)
  39. DB_LOOKUP_NAME_TH_UNIQUE (SYM_TH_UNIQUE_REGISTER32_THREAD_AREA,
  40. _thread_db_register32_thread_area)
  41. DB_LOOKUP_NAME_TH_UNIQUE (SYM_TH_UNIQUE_REGISTER64_THREAD_AREA,
  42. _thread_db_register64_thread_area)