OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [gdb/] [gdb-events.h] - Diff between revs 827 and 840

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 827 Rev 840
/* User Interface Events.
/* User Interface Events.
 
 
   Copyright (C) 1999, 2001, 2002, 2004, 2007, 2008
   Copyright (C) 1999, 2001, 2002, 2004, 2007, 2008
   Free Software Foundation, Inc.
   Free Software Foundation, Inc.
 
 
   Contributed by Cygnus Solutions.
   Contributed by Cygnus Solutions.
 
 
   This file is part of GDB.
   This file is part of GDB.
 
 
   This program is free software; you can redistribute it and/or modify
   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
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 3 of the License, or
   the Free Software Foundation; either version 3 of the License, or
   (at your option) any later version.
   (at your option) any later version.
 
 
   This program is distributed in the hope that it will be useful,
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   GNU General Public License for more details.
 
 
   You should have received a copy of the GNU General Public License
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 
/* Work in progress */
/* Work in progress */
 
 
/* This file was created with the aid of ``gdb-events.sh''.
/* This file was created with the aid of ``gdb-events.sh''.
 
 
   The bourn shell script ``gdb-events.sh'' creates the files
   The bourn shell script ``gdb-events.sh'' creates the files
   ``new-gdb-events.c'' and ``new-gdb-events.h and then compares
   ``new-gdb-events.c'' and ``new-gdb-events.h and then compares
   them against the existing ``gdb-events.[hc]''.  Any differences
   them against the existing ``gdb-events.[hc]''.  Any differences
   found being reported.
   found being reported.
 
 
   If editing this file, please also run gdb-events.sh and merge any
   If editing this file, please also run gdb-events.sh and merge any
   changes into that script. Conversely, when making sweeping changes
   changes into that script. Conversely, when making sweeping changes
   to this file, modifying gdb-events.sh and using its output may
   to this file, modifying gdb-events.sh and using its output may
   prove easier. */
   prove easier. */
 
 
 
 
#ifndef GDB_EVENTS_H
#ifndef GDB_EVENTS_H
#define GDB_EVENTS_H
#define GDB_EVENTS_H
 
 
 
 
/* COMPAT: pointer variables for old, unconverted events.
/* COMPAT: pointer variables for old, unconverted events.
   A call to set_gdb_events() will automatically update these. */
   A call to set_gdb_events() will automatically update these. */
 
 
 
 
 
 
/* Type definition of all hook functions.  Recommended pratice is to
/* Type definition of all hook functions.  Recommended pratice is to
   first declare each hook function using the below ftype and then
   first declare each hook function using the below ftype and then
   define it.  */
   define it.  */
 
 
typedef void (gdb_events_breakpoint_create_ftype) (int b);
typedef void (gdb_events_breakpoint_create_ftype) (int b);
typedef void (gdb_events_breakpoint_delete_ftype) (int b);
typedef void (gdb_events_breakpoint_delete_ftype) (int b);
typedef void (gdb_events_breakpoint_modify_ftype) (int b);
typedef void (gdb_events_breakpoint_modify_ftype) (int b);
typedef void (gdb_events_tracepoint_create_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_delete_ftype) (int number);
typedef void (gdb_events_tracepoint_modify_ftype) (int number);
typedef void (gdb_events_tracepoint_modify_ftype) (int number);
typedef void (gdb_events_architecture_changed_ftype) (void);
typedef void (gdb_events_architecture_changed_ftype) (void);
 
 
 
 
/* gdb-events: object. */
/* gdb-events: object. */
 
 
struct gdb_events
struct gdb_events
  {
  {
    gdb_events_breakpoint_create_ftype *breakpoint_create;
    gdb_events_breakpoint_create_ftype *breakpoint_create;
    gdb_events_breakpoint_delete_ftype *breakpoint_delete;
    gdb_events_breakpoint_delete_ftype *breakpoint_delete;
    gdb_events_breakpoint_modify_ftype *breakpoint_modify;
    gdb_events_breakpoint_modify_ftype *breakpoint_modify;
    gdb_events_tracepoint_create_ftype *tracepoint_create;
    gdb_events_tracepoint_create_ftype *tracepoint_create;
    gdb_events_tracepoint_delete_ftype *tracepoint_delete;
    gdb_events_tracepoint_delete_ftype *tracepoint_delete;
    gdb_events_tracepoint_modify_ftype *tracepoint_modify;
    gdb_events_tracepoint_modify_ftype *tracepoint_modify;
    gdb_events_architecture_changed_ftype *architecture_changed;
    gdb_events_architecture_changed_ftype *architecture_changed;
  };
  };
 
 
 
 
/* Interface into events functions.
/* Interface into events functions.
   Where a *_p() predicate is present, it must be called before
   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_create_event (int b);
extern void breakpoint_delete_event (int b);
extern void breakpoint_delete_event (int b);
extern void breakpoint_modify_event (int b);
extern void breakpoint_modify_event (int b);
extern void tracepoint_create_event (int number);
extern void tracepoint_create_event (int number);
extern void tracepoint_delete_event (int number);
extern void tracepoint_delete_event (int number);
extern void tracepoint_modify_event (int number);
extern void tracepoint_modify_event (int number);
extern void architecture_changed_event (void);
extern void architecture_changed_event (void);
 
 
/* Install custom gdb-events hooks.  */
/* Install custom gdb-events hooks.  */
extern struct gdb_events *deprecated_set_gdb_event_hooks (struct gdb_events *vector);
extern struct gdb_events *deprecated_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);
 
 
/* Clear event handlers.  */
/* Clear event handlers.  */
extern void clear_gdb_event_hooks (void);
extern void clear_gdb_event_hooks (void);
 
 
#endif
#endif
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.