1/* GDB Notifications to Observers. 2 3 Copyright 2004 Free Software Foundation, Inc. 4 5 This file is part of GDB. 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation; either version 2 of the License, or 10 (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with this program; if not, write to the Free Software 19 Foundation, Inc., 59 Temple Place - Suite 330, 20 Boston, MA 02111-1307, USA. 21 22 -- 23 24 This file was generated using observer.sh and observer.texi. */ 25 26#ifndef OBSERVER_H 27#define OBSERVER_H 28 29struct observer; 30struct bpstats; 31struct so_list; 32 33/* normal_stop notifications. */ 34 35typedef void (observer_normal_stop_ftype) (struct bpstats *bs); 36 37extern struct observer *observer_attach_normal_stop (observer_normal_stop_ftype *f); 38extern void observer_detach_normal_stop (struct observer *observer); 39extern void observer_notify_normal_stop (struct bpstats *bs); 40 41/* target_changed notifications. */ 42 43typedef void (observer_target_changed_ftype) (struct target_ops *target); 44 45extern struct observer *observer_attach_target_changed (observer_target_changed_ftype *f); 46extern void observer_detach_target_changed (struct observer *observer); 47extern void observer_notify_target_changed (struct target_ops *target); 48 49/* inferior_created notifications. */ 50 51typedef void (observer_inferior_created_ftype) (struct target_ops *objfile, int from_tty); 52 53extern struct observer *observer_attach_inferior_created (observer_inferior_created_ftype *f); 54extern void observer_detach_inferior_created (struct observer *observer); 55extern void observer_notify_inferior_created (struct target_ops *objfile, int from_tty); 56 57/* solib_unloaded notifications. */ 58 59typedef void (observer_solib_unloaded_ftype) (struct so_list *solib); 60 61extern struct observer *observer_attach_solib_unloaded (observer_solib_unloaded_ftype *f); 62extern void observer_detach_solib_unloaded (struct observer *observer); 63extern void observer_notify_solib_unloaded (struct so_list *solib); 64 65#endif /* OBSERVER_H */ 66