Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gdb/lib/libgdb/arch/i386 add missing file
details: https://anonhg.NetBSD.org/src/rev/e9e01c611f50
branches: trunk
changeset: 770267:e9e01c611f50
user: christos <christos%NetBSD.org@localhost>
date: Mon Oct 10 14:07:16 2011 +0000
description:
add missing file
diffstat:
external/gpl3/gdb/lib/libgdb/arch/i386/observer.inc | 1034 +++++++++++++++++++
1 files changed, 1034 insertions(+), 0 deletions(-)
diffs (truncated from 1038 to 300 lines):
diff -r f1188e67dc73 -r e9e01c611f50 external/gpl3/gdb/lib/libgdb/arch/i386/observer.inc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gdb/lib/libgdb/arch/i386/observer.inc Mon Oct 10 14:07:16 2011 +0000
@@ -0,0 +1,1034 @@
+/* This file is automatically generated. DO NOT EDIT! */
+/* Generated from: NetBSD: mknative-gdb,v 1.3 2011/09/26 02:36:20 christos Exp */
+/* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */
+
+/* GDB Notifications to Observers.
+
+ Copyright (C) 2004, 2005, 2007, 2008, 2009, 2010, 2011
+ Free Software Foundation, Inc.
+
+ This file is part of GDB.
+
+ 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 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ 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, see <http://www.gnu.org/licenses/>.
+
+ --
+
+ This file was generated using observer.sh and observer.texi. */
+
+
+/* normal_stop notifications. */
+
+static struct observer_list *normal_stop_subject = NULL;
+
+struct normal_stop_args { struct bpstats *bs; int print_frame; };
+
+static void
+observer_normal_stop_notification_stub (const void *data, const void *args_data)
+{
+ observer_normal_stop_ftype *notify = (observer_normal_stop_ftype *) data;
+ const struct normal_stop_args *args = args_data;
+ notify (args->bs, args->print_frame);
+}
+
+struct observer *
+observer_attach_normal_stop (observer_normal_stop_ftype *f)
+{
+ return generic_observer_attach (&normal_stop_subject,
+ &observer_normal_stop_notification_stub,
+ (void *) f);
+}
+
+void
+observer_detach_normal_stop (struct observer *observer)
+{
+ generic_observer_detach (&normal_stop_subject, observer);
+}
+
+void
+observer_notify_normal_stop (struct bpstats *bs, int print_frame)
+{
+ struct normal_stop_args args;
+ args.bs = bs, args.print_frame = print_frame;
+
+ if (observer_debug)
+ fprintf_unfiltered (gdb_stdlog, "observer_notify_normal_stop() called\n");
+ generic_observer_notify (normal_stop_subject, &args);
+}
+
+/* target_changed notifications. */
+
+static struct observer_list *target_changed_subject = NULL;
+
+struct target_changed_args { struct target_ops *target; };
+
+static void
+observer_target_changed_notification_stub (const void *data, const void *args_data)
+{
+ observer_target_changed_ftype *notify = (observer_target_changed_ftype *) data;
+ const struct target_changed_args *args = args_data;
+ notify (args->target);
+}
+
+struct observer *
+observer_attach_target_changed (observer_target_changed_ftype *f)
+{
+ return generic_observer_attach (&target_changed_subject,
+ &observer_target_changed_notification_stub,
+ (void *) f);
+}
+
+void
+observer_detach_target_changed (struct observer *observer)
+{
+ generic_observer_detach (&target_changed_subject, observer);
+}
+
+void
+observer_notify_target_changed (struct target_ops *target)
+{
+ struct target_changed_args args;
+ args.target = target;
+
+ if (observer_debug)
+ fprintf_unfiltered (gdb_stdlog, "observer_notify_target_changed() called\n");
+ generic_observer_notify (target_changed_subject, &args);
+}
+
+/* executable_changed notifications. */
+
+static struct observer_list *executable_changed_subject = NULL;
+
+static void
+observer_executable_changed_notification_stub (const void *data, const void *args_data)
+{
+ observer_executable_changed_ftype *notify = (observer_executable_changed_ftype *) data;
+ const struct executable_changed_args *args = args_data;
+ notify ();
+}
+
+struct observer *
+observer_attach_executable_changed (observer_executable_changed_ftype *f)
+{
+ return generic_observer_attach (&executable_changed_subject,
+ &observer_executable_changed_notification_stub,
+ (void *) f);
+}
+
+void
+observer_detach_executable_changed (struct observer *observer)
+{
+ generic_observer_detach (&executable_changed_subject, observer);
+}
+
+void
+observer_notify_executable_changed (void)
+{
+char *args = NULL;
+ if (observer_debug)
+ fprintf_unfiltered (gdb_stdlog, "observer_notify_executable_changed() called\n");
+ generic_observer_notify (executable_changed_subject, &args);
+}
+
+/* inferior_created notifications. */
+
+static struct observer_list *inferior_created_subject = NULL;
+
+struct inferior_created_args { struct target_ops *objfile; int from_tty; };
+
+static void
+observer_inferior_created_notification_stub (const void *data, const void *args_data)
+{
+ observer_inferior_created_ftype *notify = (observer_inferior_created_ftype *) data;
+ const struct inferior_created_args *args = args_data;
+ notify (args->objfile, args->from_tty);
+}
+
+struct observer *
+observer_attach_inferior_created (observer_inferior_created_ftype *f)
+{
+ return generic_observer_attach (&inferior_created_subject,
+ &observer_inferior_created_notification_stub,
+ (void *) f);
+}
+
+void
+observer_detach_inferior_created (struct observer *observer)
+{
+ generic_observer_detach (&inferior_created_subject, observer);
+}
+
+void
+observer_notify_inferior_created (struct target_ops *objfile, int from_tty)
+{
+ struct inferior_created_args args;
+ args.objfile = objfile, args.from_tty = from_tty;
+
+ if (observer_debug)
+ fprintf_unfiltered (gdb_stdlog, "observer_notify_inferior_created() called\n");
+ generic_observer_notify (inferior_created_subject, &args);
+}
+
+/* solib_loaded notifications. */
+
+static struct observer_list *solib_loaded_subject = NULL;
+
+struct solib_loaded_args { struct so_list *solib; };
+
+static void
+observer_solib_loaded_notification_stub (const void *data, const void *args_data)
+{
+ observer_solib_loaded_ftype *notify = (observer_solib_loaded_ftype *) data;
+ const struct solib_loaded_args *args = args_data;
+ notify (args->solib);
+}
+
+struct observer *
+observer_attach_solib_loaded (observer_solib_loaded_ftype *f)
+{
+ return generic_observer_attach (&solib_loaded_subject,
+ &observer_solib_loaded_notification_stub,
+ (void *) f);
+}
+
+void
+observer_detach_solib_loaded (struct observer *observer)
+{
+ generic_observer_detach (&solib_loaded_subject, observer);
+}
+
+void
+observer_notify_solib_loaded (struct so_list *solib)
+{
+ struct solib_loaded_args args;
+ args.solib = solib;
+
+ if (observer_debug)
+ fprintf_unfiltered (gdb_stdlog, "observer_notify_solib_loaded() called\n");
+ generic_observer_notify (solib_loaded_subject, &args);
+}
+
+/* solib_unloaded notifications. */
+
+static struct observer_list *solib_unloaded_subject = NULL;
+
+struct solib_unloaded_args { struct so_list *solib; };
+
+static void
+observer_solib_unloaded_notification_stub (const void *data, const void *args_data)
+{
+ observer_solib_unloaded_ftype *notify = (observer_solib_unloaded_ftype *) data;
+ const struct solib_unloaded_args *args = args_data;
+ notify (args->solib);
+}
+
+struct observer *
+observer_attach_solib_unloaded (observer_solib_unloaded_ftype *f)
+{
+ return generic_observer_attach (&solib_unloaded_subject,
+ &observer_solib_unloaded_notification_stub,
+ (void *) f);
+}
+
+void
+observer_detach_solib_unloaded (struct observer *observer)
+{
+ generic_observer_detach (&solib_unloaded_subject, observer);
+}
+
+void
+observer_notify_solib_unloaded (struct so_list *solib)
+{
+ struct solib_unloaded_args args;
+ args.solib = solib;
+
+ if (observer_debug)
+ fprintf_unfiltered (gdb_stdlog, "observer_notify_solib_unloaded() called\n");
+ generic_observer_notify (solib_unloaded_subject, &args);
+}
+
+/* new_objfile notifications. */
+
+static struct observer_list *new_objfile_subject = NULL;
+
+struct new_objfile_args { struct objfile *objfile; };
+
+static void
+observer_new_objfile_notification_stub (const void *data, const void *args_data)
+{
+ observer_new_objfile_ftype *notify = (observer_new_objfile_ftype *) data;
+ const struct new_objfile_args *args = args_data;
+ notify (args->objfile);
+}
+
+struct observer *
+observer_attach_new_objfile (observer_new_objfile_ftype *f)
+{
+ return generic_observer_attach (&new_objfile_subject,
+ &observer_new_objfile_notification_stub,
+ (void *) f);
+}
+
+void
+observer_detach_new_objfile (struct observer *observer)
+{
+ generic_observer_detach (&new_objfile_subject, observer);
+}
+
+void
+observer_notify_new_objfile (struct objfile *objfile)
+{
+ struct new_objfile_args args;
+ args.objfile = objfile;
+
+ if (observer_debug)
+ fprintf_unfiltered (gdb_stdlog, "observer_notify_new_objfile() called\n");
+ generic_observer_notify (new_objfile_subject, &args);
Home |
Main Index |
Thread Index |
Old Index