diff options
author | Andrew Burgess <aburgess@redhat.com> | 2023-11-07 16:46:34 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2023-12-08 17:52:00 +0000 |
commit | 8fd5a6058fc14e1d460fa166457f949e23e50b5f (patch) | |
tree | f97c040dfebfe77f659a672373c595d5b3bc83fe /etc | |
parent | 3bf9e166ca76e89a7c8ed95bf8340f4d5e80e143 (diff) | |
download | gdb-8fd5a6058fc14e1d460fa166457f949e23e50b5f.zip gdb-8fd5a6058fc14e1d460fa166457f949e23e50b5f.tar.gz gdb-8fd5a6058fc14e1d460fa166457f949e23e50b5f.tar.bz2 |
gdbserver: allow for general 'monitor set debug COMPONENT VALUE' use
Building on the last commit, which added a general --debug=COMPONENT
option to the gdbserver command line, this commit updates the monitor
command to allow for general:
(gdb) monitor set debug COMPONENT off|on
style commands. Just like with the previous commit, the COMPONENT can
be any one of all, threads, remote, event-loop, and correspond to the
same set of global debug flags.
While on the command line it is possible to do:
--debug=remote,event-loop,threads
the components have to be entered one at a time with the monitor
command. I guess there's no reason why we couldn't allow component
grouping within the monitor command, but (to me) what I have here
seemed more in the spirit of GDB's existing 'set debug ...' commands.
If people want it then we can always add component grouping later.
Notice in the above that I use 'off' and 'on' instead of '0' and '1',
which is what the 'monitor set debug' command used to use. The 0/1
can still be used, but I now advertise off/on in all the docs and help
text, again, this feels more inline with GDB's existing boolean
settings.
I have removed the two existing monitor commands:
monitor set remote-debug 0|1
monitor set event-loop-debug 0|1
These are replaced by:
monitor set debug remote off|on
monitor set debug event-loop off|on
respectively.
Approved-By: Tom Tromey <tom@tromey.com>
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions