X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fgdb-events.h;h=02314287bd3700b8477d36ea8e14056b1ea423d1;hb=de6a76fdbfd7337eda8a746209c59087d8d1dcee;hp=5f7fc6b5a55b2bd56c1fd8cb6954bf6488cfc9ac;hpb=349c5d5f6c08699c3e433b28e2beaa24b65a63b0;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/gdb-events.h b/gdb/gdb-events.h index 5f7fc6b5a5..02314287bd 100644 --- a/gdb/gdb-events.h +++ b/gdb/gdb-events.h @@ -1,6 +1,6 @@ /* User Interface Events. - Copyright 1999, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2001, 2002, 2004, 2007 Free Software Foundation, Inc. Contributed by Cygnus Solutions. @@ -18,7 +18,8 @@ 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. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ /* Work in progress */ @@ -38,19 +39,15 @@ #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. */ -/* 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); @@ -77,7 +74,7 @@ struct gdb_events /* 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); @@ -86,29 +83,13 @@ 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 -#define architecture_changed_event() 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); -#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