/* User Interface Events.
- Copyright 1999, 2001, 2002 Free Software Foundation, Inc.
+ Copyright 1999, 2001, 2002, 2004 Free Software Foundation, Inc.
Contributed by Cygnus Solutions.
typedef void (gdb_events_tracepoint_delete_ftype) (int number);
typedef void (gdb_events_tracepoint_modify_ftype) (int number);
typedef void (gdb_events_architecture_changed_ftype) (void);
+typedef void (gdb_events_target_changed_ftype) (void);
+typedef void (gdb_events_selected_frame_level_changed_ftype) (int level);
+typedef void (gdb_events_selected_thread_changed_ftype) (int thread_num);
/* gdb-events: object. */
gdb_events_tracepoint_delete_ftype *tracepoint_delete;
gdb_events_tracepoint_modify_ftype *tracepoint_modify;
gdb_events_architecture_changed_ftype *architecture_changed;
+ gdb_events_target_changed_ftype *target_changed;
+ gdb_events_selected_frame_level_changed_ftype *selected_frame_level_changed;
+ gdb_events_selected_thread_changed_ftype *selected_thread_changed;
};
extern void tracepoint_delete_event (int number);
extern void tracepoint_modify_event (int number);
extern void architecture_changed_event (void);
+extern void target_changed_event (void);
+extern void selected_frame_level_changed_event (int level);
+extern void selected_thread_changed_event (int thread_num);
-/* When GDB_EVENTS are not being used, completly disable them. */
+/* When GDB_EVENTS are not being used, completely disable them. */
#if !WITH_GDB_EVENTS
#define breakpoint_create_event(b) 0
#define tracepoint_delete_event(number) 0
#define tracepoint_modify_event(number) 0
#define architecture_changed_event() 0
+#define target_changed_event() 0
+#define selected_frame_level_changed_event(level) 0
+#define selected_thread_changed_event(thread_num) 0
#endif
/* Install custom gdb-events hooks. */
/* Deliver any pending events. */
extern void gdb_events_deliver (struct gdb_events *vector);
+/* Clear event handlers */
+extern void clear_gdb_event_hooks (void);
+
#if !WITH_GDB_EVENTS
#define set_gdb_events(x) 0
#define set_gdb_event_hooks(x) 0