diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-04-23 16:28:26 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-04-23 16:28:26 -0400 |
commit | 98c897e37a473ebda0f61b4e180fca0a314f0c9b (patch) | |
tree | efa2e6683d216f5ce7373d24c63e49cd32a9efa2 /gdb/observable.c | |
parent | 69cc19455b61a3ec1e884a165fae69abe726addb (diff) | |
download | gdb-98c897e37a473ebda0f61b4e180fca0a314f0c9b.zip gdb-98c897e37a473ebda0f61b4e180fca0a314f0c9b.tar.gz gdb-98c897e37a473ebda0f61b4e180fca0a314f0c9b.tar.bz2 |
gdbsupport, gdb: change observer_debug to bool
gdb/ChangeLog:
* observable.c (observer_debug): Change to bool.
gdbsupport/ChangeLog:
* observable.h (observer_debug): Change to bool.
Change-Id: I58634235a20740a66eacb1c83bae3cf3304ae1fd
Diffstat (limited to 'gdb/observable.c')
-rw-r--r-- | gdb/observable.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/observable.c b/gdb/observable.c index 10b8aad..51f5edb 100644 --- a/gdb/observable.c +++ b/gdb/observable.c @@ -28,7 +28,7 @@ namespace gdb namespace observers { -unsigned int observer_debug; +bool observer_debug = false; #define DEFINE_OBSERVABLE(name) decltype (name) name (# name) @@ -92,12 +92,12 @@ void _initialize_observer (); 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); } |