py-event-types.def 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /* Python event definitions -*- c++ -*-
  2. Copyright (C) 2017-2022 Free Software Foundation, Inc.
  3. This file is part of GDB.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or
  7. (at your option) any later version.
  8. This program 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
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  14. /* To use this file, define GDB_PY_DEFINE_EVENT_TYPE to expand how you
  15. like, then include the file.
  16. Each invocation is of the form:
  17. GDB_PY_DEFINE_EVENT_TYPE(name, py_name, doc, base)
  18. NAME is the name of the event.
  19. PY_NAME a string representing what the event should be called in
  20. python.
  21. DOC Python documentation for the new event type
  22. BASE the base event for this event usually just event_object_type.
  23. */
  24. GDB_PY_DEFINE_EVENT_TYPE (breakpoint,
  25. "BreakpointEvent",
  26. "GDB breakpoint stop event object",
  27. stop_event_object_type);
  28. GDB_PY_DEFINE_EVENT_TYPE (continue,
  29. "ContinueEvent",
  30. "GDB continue event object",
  31. thread_event_object_type);
  32. GDB_PY_DEFINE_EVENT_TYPE (exited,
  33. "ExitedEvent",
  34. "GDB exited event object",
  35. event_object_type);
  36. GDB_PY_DEFINE_EVENT_TYPE (new_thread,
  37. "NewThreadEvent",
  38. "GDB new thread event object",
  39. thread_event_object_type);
  40. GDB_PY_DEFINE_EVENT_TYPE (new_inferior,
  41. "NewInferiorEvent",
  42. "GDB new inferior event object",
  43. event_object_type);
  44. GDB_PY_DEFINE_EVENT_TYPE (inferior_deleted,
  45. "InferiorDeletedEvent",
  46. "GDB inferior deleted event object",
  47. event_object_type);
  48. GDB_PY_DEFINE_EVENT_TYPE (inferior_call_pre,
  49. "InferiorCallPreEvent",
  50. "GDB inferior function pre-call event object",
  51. event_object_type);
  52. GDB_PY_DEFINE_EVENT_TYPE (inferior_call_post,
  53. "InferiorCallPostEvent",
  54. "GDB inferior function post-call event object",
  55. event_object_type);
  56. GDB_PY_DEFINE_EVENT_TYPE (register_changed,
  57. "RegisterChangedEvent",
  58. "GDB register change event object",
  59. event_object_type);
  60. GDB_PY_DEFINE_EVENT_TYPE (memory_changed,
  61. "MemoryChangedEvent",
  62. "GDB memory change event object",
  63. event_object_type);
  64. GDB_PY_DEFINE_EVENT_TYPE (new_objfile,
  65. "NewObjFileEvent",
  66. "GDB new object file event object",
  67. event_object_type);
  68. GDB_PY_DEFINE_EVENT_TYPE (clear_objfiles,
  69. "ClearObjFilesEvent",
  70. "GDB clear object files event object",
  71. event_object_type);
  72. GDB_PY_DEFINE_EVENT_TYPE (signal,
  73. "SignalEvent",
  74. "GDB signal event object",
  75. stop_event_object_type);
  76. GDB_PY_DEFINE_EVENT_TYPE (stop,
  77. "StopEvent",
  78. "GDB stop event object",
  79. thread_event_object_type);
  80. GDB_PY_DEFINE_EVENT_TYPE (thread,
  81. "ThreadEvent",
  82. "GDB thread event object",
  83. event_object_type);
  84. GDB_PY_DEFINE_EVENT_TYPE (gdb_exiting,
  85. "GdbExitingEvent",
  86. "GDB is about to exit",
  87. event_object_type);
  88. GDB_PY_DEFINE_EVENT_TYPE (connection,
  89. "ConnectionEvent",
  90. "GDB connection added or removed object",
  91. event_object_type);