+2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * observable.c (observer_debug): Change to bool.
+
2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
* dwarf2/read.c: Add 'unordered_set' include.
namespace observers
{
-unsigned int observer_debug;
+bool observer_debug = false;
#define DEFINE_OBSERVABLE(name) decltype (name) name (# name)
void
_initialize_observer ()
{
- add_setshow_zuinteger_cmd ("observer", class_maintenance,
- &gdb::observers::observer_debug, _("\
+ add_setshow_boolean_cmd ("observer", class_maintenance,
+ &gdb::observers::observer_debug, _("\
Set observer debugging."), _("\
Show observer debugging."), _("\
When non-zero, observer debugging is enabled."),
- NULL,
- show_observer_debug,
- &setdebuglist, &showdebuglist);
+ NULL,
+ show_observer_debug,
+ &setdebuglist, &showdebuglist);
}
+2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * observable.h (observer_debug): Change to bool.
+
2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
* common-debug.h: Include preprocessor.h.
namespace observers
{
-extern unsigned int observer_debug;
+extern bool observer_debug;
/* An observer is an entity which is interested in being notified
when GDB reaches certain states, or certain events occur in GDB.