diff options
Diffstat (limited to 'gdb/observer.c')
-rw-r--r-- | gdb/observer.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gdb/observer.c b/gdb/observer.c index 53916ce..6bdcdf5 100644 --- a/gdb/observer.c +++ b/gdb/observer.c @@ -52,6 +52,10 @@ #include "defs.h" #include "observer.h" +#include "command.h" +#include "gdbcmd.h" + +static int observer_debug; /* The internal generic observer. */ @@ -189,4 +193,18 @@ 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" |