*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / gdb-events.h
index 7d0d86f38ec1863d35a9893ea0b8a0f41b3dae9d..9c38c0afb6fea84500c9f3ac0bf931fd7f4c5377 100644 (file)
@@ -1,5 +1,7 @@
 /* User Interface Events.
 /* User Interface Events.
-   Copyright 1999, 2001 Free Software Foundation, Inc.
+
+   Copyright (C) 1999, 2001, 2002, 2004, 2007, 2008
+   Free Software Foundation, Inc.
 
    Contributed by Cygnus Solutions.
 
 
    Contributed by Cygnus Solutions.
 
@@ -7,7 +9,7 @@
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
 
    This program is distributed in the hope that it will be useful,
    (at your option) any later version.
 
    This program is distributed in the hope that it will be useful,
@@ -16,8 +18,7 @@
    GNU General Public License for more details.
 
    You should have received a copy of the GNU General Public License
    GNU General Public License for more details.
 
    You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 /* Work in progress */
 
 
 /* Work in progress */
 
 #ifndef GDB_EVENTS_H
 #define GDB_EVENTS_H
 
 #ifndef GDB_EVENTS_H
 #define GDB_EVENTS_H
 
-#ifndef WITH_GDB_EVENTS
-#define WITH_GDB_EVENTS 1
-#endif
-
 
 /* COMPAT: pointer variables for old, unconverted events.
    A call to set_gdb_events() will automatically update these. */
 
 
 
 
 /* COMPAT: pointer variables for old, unconverted events.
    A call to set_gdb_events() will automatically update these. */
 
 
 
-/* Type definition of all hook functions.
-   Recommended pratice is to first declare each hook function using
-   the below ftype and then define it. */
+/* Type definition of all hook functions.  Recommended pratice is to
+   first declare each hook function using the below ftype and then
+   define it.  */
 
 typedef void (gdb_events_breakpoint_create_ftype) (int b);
 typedef void (gdb_events_breakpoint_delete_ftype) (int b);
 
 typedef void (gdb_events_breakpoint_create_ftype) (int b);
 typedef void (gdb_events_breakpoint_delete_ftype) (int b);
@@ -57,6 +54,7 @@ typedef void (gdb_events_breakpoint_modify_ftype) (int b);
 typedef void (gdb_events_tracepoint_create_ftype) (int number);
 typedef void (gdb_events_tracepoint_delete_ftype) (int number);
 typedef void (gdb_events_tracepoint_modify_ftype) (int number);
 typedef void (gdb_events_tracepoint_create_ftype) (int number);
 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);
 
 
 /* gdb-events: object. */
 
 
 /* gdb-events: object. */
@@ -69,41 +67,28 @@ struct gdb_events
     gdb_events_tracepoint_create_ftype *tracepoint_create;
     gdb_events_tracepoint_delete_ftype *tracepoint_delete;
     gdb_events_tracepoint_modify_ftype *tracepoint_modify;
     gdb_events_tracepoint_create_ftype *tracepoint_create;
     gdb_events_tracepoint_delete_ftype *tracepoint_delete;
     gdb_events_tracepoint_modify_ftype *tracepoint_modify;
+    gdb_events_architecture_changed_ftype *architecture_changed;
   };
 
 
 /* Interface into events functions.
    Where a *_p() predicate is present, it must be called before
   };
 
 
 /* Interface into events functions.
    Where a *_p() predicate is present, it must be called before
-   calling the hook proper. */
+   calling the hook proper.  */
 extern void breakpoint_create_event (int b);
 extern void breakpoint_delete_event (int b);
 extern void breakpoint_modify_event (int b);
 extern void tracepoint_create_event (int number);
 extern void tracepoint_delete_event (int number);
 extern void tracepoint_modify_event (int number);
 extern void breakpoint_create_event (int b);
 extern void breakpoint_delete_event (int b);
 extern void breakpoint_modify_event (int b);
 extern void tracepoint_create_event (int number);
 extern void tracepoint_delete_event (int number);
 extern void tracepoint_modify_event (int number);
+extern void architecture_changed_event (void);
 
 
+/* Install custom gdb-events hooks.  */
+extern struct gdb_events *deprecated_set_gdb_event_hooks (struct gdb_events *vector);
 
 
-/* When GDB_EVENTS are not being used, completly disable them. */
-
-#if !WITH_GDB_EVENTS
-#define breakpoint_create_event(b) 0
-#define breakpoint_delete_event(b) 0
-#define breakpoint_modify_event(b) 0
-#define tracepoint_create_event(number) 0
-#define tracepoint_delete_event(number) 0
-#define tracepoint_modify_event(number) 0
-#endif
-
-/* Install custom gdb-events hooks. */
-extern struct gdb_events *set_gdb_event_hooks (struct gdb_events *vector);
-
-/* Deliver any pending events. */
+/* Deliver any pending events.  */
 extern void gdb_events_deliver (struct gdb_events *vector);
 
 extern void gdb_events_deliver (struct gdb_events *vector);
 
-#if !WITH_GDB_EVENTS
-#define set_gdb_events(x) 0
-#define set_gdb_event_hooks(x) 0
-#define gdb_events_deliver(x) 0
-#endif
+/* Clear event handlers.  */
+extern void clear_gdb_event_hooks (void);
 
 #endif
 
 #endif
This page took 0.024607 seconds and 4 git commands to generate.