1 /* GDB Notifications to Observers.
3 Copyright 2004, 2005 Free Software Foundation, Inc.
5 This file is part of GDB.
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.
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.
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.
24 This file was generated using observer.sh and observer.texi. */
33 /* normal_stop notifications. */
35 typedef void (observer_normal_stop_ftype
) (struct bpstats
*bs
);
37 extern struct observer
*observer_attach_normal_stop (observer_normal_stop_ftype
*f
);
38 extern void observer_detach_normal_stop (struct observer
*observer
);
39 extern void observer_notify_normal_stop (struct bpstats
*bs
);
41 /* target_changed notifications. */
43 typedef void (observer_target_changed_ftype
) (struct target_ops
*target
);
45 extern struct observer
*observer_attach_target_changed (observer_target_changed_ftype
*f
);
46 extern void observer_detach_target_changed (struct observer
*observer
);
47 extern void observer_notify_target_changed (struct target_ops
*target
);
49 /* executable_changed notifications. */
51 typedef void (observer_executable_changed_ftype
) (void *unused_args
);
53 extern struct observer
*observer_attach_executable_changed (observer_executable_changed_ftype
*f
);
54 extern void observer_detach_executable_changed (struct observer
*observer
);
55 extern void observer_notify_executable_changed (void *unused_args
);
57 /* inferior_created notifications. */
59 typedef void (observer_inferior_created_ftype
) (struct target_ops
*objfile
, int from_tty
);
61 extern struct observer
*observer_attach_inferior_created (observer_inferior_created_ftype
*f
);
62 extern void observer_detach_inferior_created (struct observer
*observer
);
63 extern void observer_notify_inferior_created (struct target_ops
*objfile
, int from_tty
);
65 /* solib_loaded notifications. */
67 typedef void (observer_solib_loaded_ftype
) (struct so_list
*solib
);
69 extern struct observer
*observer_attach_solib_loaded (observer_solib_loaded_ftype
*f
);
70 extern void observer_detach_solib_loaded (struct observer
*observer
);
71 extern void observer_notify_solib_loaded (struct so_list
*solib
);
73 /* solib_unloaded notifications. */
75 typedef void (observer_solib_unloaded_ftype
) (struct so_list
*solib
);
77 extern struct observer
*observer_attach_solib_unloaded (observer_solib_unloaded_ftype
*f
);
78 extern void observer_detach_solib_unloaded (struct observer
*observer
);
79 extern void observer_notify_solib_unloaded (struct so_list
*solib
);
81 #endif /* OBSERVER_H */