+2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * remote.h (remote_debug): Change to bool.
+ * remote.c (remote_debug): Change to bool.
+ (_initialize_remote): Adjust.
+
2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
* target.h (remote_debug): Move to...
/* See remote.h */
-int remote_debug = 0;
+bool remote_debug = false;
#define OPAQUETHREADBYTES 8
NULL, show_remote_packet_max_chars,
&setdebuglist, &showdebuglist);
- add_setshow_zinteger_cmd ("remote", no_class, &remote_debug, _("\
-Set debugging of remote protocol."), _("\
-Show debugging of remote protocol."), _("\
+ add_setshow_boolean_cmd ("remote", no_class, &remote_debug,
+ _("Set debugging of remote protocol."),
+ _("Show debugging of remote protocol."),
+ _("\
When enabled, each packet sent or received with the remote target\n\
is displayed."),
- NULL,
- show_remote_debug,
- &setdebuglist, &showdebuglist);
+ NULL,
+ show_remote_debug,
+ &setdebuglist, &showdebuglist);
add_setshow_zuinteger_unlimited_cmd ("remotetimeout", no_class,
&remote_timeout, _("\
struct target_desc;
struct remote_target;
-/* Debugging level. 0 is off, and non-zero values mean to print some debug
- information (higher values, more information). */
-extern int remote_debug;
+/* True when printing "remote" debug statements is enabled. */
+
+extern bool remote_debug;
/* Read a packet from the remote machine, with error checking, and
store it in *BUF. Resize *BUF using xrealloc if necessary to hold