structs.def 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /* List of types and symbols in libpthread examined by libthread_db.
  2. Copyright (C) 2003, 2006 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. #ifndef DB_STRUCT_ARRAY_FIELD
  16. # define DB_STRUCT_ARRAY_FIELD(type, field) DB_STRUCT_FIELD (type, field)
  17. # define DB_ARRAY_VARIABLE(name) DB_VARIABLE (name)
  18. # define STRUCTS_DEF_DEFAULTS 1
  19. #endif
  20. DB_STRUCT (pthread)
  21. DB_STRUCT_FIELD (pthread, list)
  22. DB_STRUCT_FIELD (pthread, report_events)
  23. DB_STRUCT_FIELD (pthread, tid)
  24. DB_STRUCT_FIELD (pthread, start_routine)
  25. DB_STRUCT_FIELD (pthread, cancelhandling)
  26. DB_STRUCT_FIELD (pthread, schedpolicy)
  27. DB_STRUCT_FIELD (pthread, schedparam_sched_priority)
  28. DB_STRUCT_FIELD (pthread, specific)
  29. DB_STRUCT_FIELD (pthread, eventbuf)
  30. DB_STRUCT_FIELD (pthread, eventbuf_eventmask)
  31. DB_STRUCT_ARRAY_FIELD (pthread, eventbuf_eventmask_event_bits)
  32. DB_STRUCT_FIELD (pthread, nextevent)
  33. DB_STRUCT (list_t)
  34. DB_STRUCT_FIELD (list_t, next)
  35. DB_STRUCT_FIELD (list_t, prev)
  36. DB_STRUCT (td_thr_events_t)
  37. DB_STRUCT_ARRAY_FIELD (td_thr_events_t, event_bits)
  38. DB_STRUCT (td_eventbuf_t)
  39. DB_STRUCT_FIELD (td_eventbuf_t, eventnum)
  40. DB_STRUCT_FIELD (td_eventbuf_t, eventdata)
  41. DB_SYMBOL (stack_used)
  42. DB_SYMBOL (__stack_user)
  43. DB_SYMBOL (nptl_version)
  44. DB_FUNCTION (__nptl_create_event)
  45. DB_FUNCTION (__nptl_death_event)
  46. DB_SYMBOL (__nptl_threads_events)
  47. DB_VARIABLE (__nptl_nthreads)
  48. DB_VARIABLE (__nptl_last_event)
  49. DB_ARRAY_VARIABLE (__pthread_keys)
  50. DB_STRUCT (pthread_key_struct)
  51. DB_STRUCT_FIELD (pthread_key_struct, seq)
  52. DB_STRUCT_FIELD (pthread_key_struct, destr)
  53. DB_STRUCT (pthread_key_data)
  54. DB_STRUCT_FIELD (pthread_key_data, seq)
  55. DB_STRUCT_FIELD (pthread_key_data, data)
  56. DB_STRUCT (pthread_key_data_level2)
  57. DB_STRUCT_ARRAY_FIELD (pthread_key_data_level2, data)
  58. #if USE_TLS
  59. DB_STRUCT_FIELD (link_map, l_tls_modid)
  60. #endif
  61. #if !defined IS_IN_libpthread || USE_TLS
  62. DB_STRUCT_ARRAY_FIELD (dtv, dtv)
  63. # define pointer_val pointer.val /* Field of anonymous struct in dtv_t. */
  64. DB_STRUCT_FIELD (dtv_t, pointer_val)
  65. #endif
  66. #if !defined IS_IN_libpthread || (defined TLS_TCB_AT_TP && TLS_TCB_AT_TP)
  67. DB_STRUCT_FIELD (pthread, dtvp)
  68. #endif
  69. #ifdef STRUCTS_DEF_DEFAULTS
  70. # undef DB_STRUCT_ARRAY_FIELD
  71. # undef DB_ARRAY_VARIABLE
  72. # undef STRUCTS_DEF_DEFAULTS
  73. #endif