2004-07-17 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / observer.c
index 20bc8aa2004602d9af875ca3b56a254e61060733..6bdcdf5b45299254331d0fd1bc65dd9a9a9a9787 100644 (file)
 
 #include "defs.h"
 #include "observer.h"
+#include "command.h"
+#include "gdbcmd.h"
+
+static int observer_debug;
 
 /* The internal generic observer.  */
 
@@ -172,21 +176,35 @@ int observer_test_second_observer = 0;
 int observer_test_third_observer = 0;
 
 void
-observer_test_first_notification_function (void)
+observer_test_first_notification_function (struct bpstats *bs)
 {
   observer_test_first_observer++;
 }
 
 void
-observer_test_second_notification_function (void)
+observer_test_second_notification_function (struct bpstats *bs)
 {
   observer_test_second_observer++;
 }
 
 void
-observer_test_third_notification_function (void)
+observer_test_third_notification_function (struct bpstats *bs)
 {
   observer_test_third_observer++;
 }
 
+extern initialize_file_ftype _initialize_observer; /* -Wmissing-prototypes */
+
+void
+_initialize_observer (void)
+{
+  add_setshow_zinteger_cmd ("observer", class_maintenance, &observer_debug, "\
+Set observer debugging.\n\
+When non-zero, observer debugging is enabled.",  "\
+Show observer debugging.\n\
+When non-zero, observer debugging is enabled.",
+                           NULL, NULL,
+                           &setdebuglist, &showdebuglist);
+}
+
 #include "observer.inc"
This page took 0.048365 seconds and 4 git commands to generate.