binutils-gdb/gdb/testsuite/gdb.mi
Tom de Vries 6ff9675421 [gdb/cli] Add "set logging enabled", deprecate "set logging on/off"
Before commit 3b6acaee89 "Update more calls to add_prefix_cmd" we had the
following output for "show logging file":
...
$ gdb -q -batch -ex "set trace-commands on" \
    -ex "set logging off" \
    -ex "show logging file" \
    -ex "set logging on" \
    -ex "show logging file"
+set logging off
+show logging file
Future logs will be written to gdb.txt.
+set logging on
+show logging file
Currently logging to "gdb.txt".
...

After that commit we have instead:
...
+set logging off
+show logging file
The current logfile is "gdb.txt".
+set logging on
+show logging file
The current logfile is "gdb.txt".
...

Before the commit, whether logging is enabled or not can be deduced from the
output of the command.  After the commit, the message is unified and it's no
longer clear whether logging is enabled or not.

Fix this by:
- adding a new command "show logging enabled"
- adding a corresponding new command "set logging enabled on/off"
- making the commands "set logging on/off" deprecated aliases of the
  "set logging enabled on/off" command.

Update the docs and testsuite to use "set logging enabled".  Mention the new
and deprecated commands in NEWS.

Tested on x86_64-linux.
2021-11-25 07:49:16 +01:00
..
array.f90
basics.c
ChangeLog-1999-2003
dw2-ref-missing-frame-func.c
dw2-ref-missing-frame-main.c
dw2-ref-missing-frame.exp
dw2-ref-missing-frame.S
gdb669.exp
gdb680.exp
gdb701.c
gdb701.exp
gdb792.cc
gdb792.exp
gdb2549.exp [gdb/testsuite] Fix gdb.mi/gdb2549.exp with check-read1 2021-10-08 13:07:52 +02:00
interrupt-thread-group.c gdb: disable commit-resumed on -exec-interrupt --thread-group 2021-07-13 09:16:15 -04:00
interrupt-thread-group.exp gdb: disable commit-resumed on -exec-interrupt --thread-group 2021-07-13 09:16:15 -04:00
list-thread-groups-available.c
list-thread-groups-available.exp
list-thread-groups-no-inferior.exp
mi2-amd64-entry-value.c
mi2-amd64-entry-value.exp
mi2-amd64-entry-value.s
mi2-cli-display.c
mi2-cli-display.exp
mi2-prompt.exp
mi2-var-child.exp
mi-async-run.c
mi-async-run.exp [gdb/testsuite] Fix untested messages in gdb.mi/*.exp 2021-09-30 19:07:47 +02:00
mi-async.exp [gdb/testsuite] Require use_gdb_stub == 0 where appropriate 2021-10-13 11:06:36 +02:00
mi-basics.exp
mi-break-qualified.cc
mi-break-qualified.exp
mi-break.exp Fixes for gdb.mi/mi-break.exp 2021-10-21 13:54:09 -05:00
mi-breakpoint-changed.exp [gdb/testsuite] Fix FAILs in gdb.mi/mi-breakpoint-changed.exp 2021-10-22 17:42:37 +02:00
mi-breakpoint-multiple-locations.cc
mi-breakpoint-multiple-locations.exp
mi-catch-cpp-exceptions.cc
mi-catch-cpp-exceptions.exp
mi-catch-load-so.c
mi-catch-load.c
mi-catch-load.exp
mi-cli.exp
mi-cmd-error.exp
mi-cmd-param-changed.exp
mi-complete.cc
mi-complete.exp
mi-condbreak-call-thr-state-mt.c
mi-condbreak-call-thr-state-st.c
mi-condbreak-call-thr-state.c
mi-condbreak-call-thr-state.exp
mi-console.c
mi-console.exp
mi-detach.exp
mi-disassemble.exp
mi-dprintf-pending.c
mi-dprintf-pending.exp
mi-dprintf-pendshr.c
mi-dprintf.c
mi-dprintf.exp
mi-editing.exp
mi-eval.exp
mi-exec-run.exp
mi-exit-code.c
mi-exit-code.exp
mi-file-transfer.exp
mi-file.exp
mi-fill-memory.exp
mi-fortran-modules-2.f90
mi-fortran-modules.exp [gdb/testsuite] Fix fortran module tests with stressed cpu 2021-10-09 11:35:43 +02:00
mi-fortran-modules.f90
mi-frame-regs.exp [gdb/testsuite] Fix untested messages in gdb.mi/*.exp 2021-09-30 19:07:47 +02:00
mi-fullname-deleted.exp [gdb/testsuite] Fix untested messages in gdb.mi/*.exp 2021-09-30 19:07:47 +02:00
mi-hack-cli.exp
mi-i-cmd.exp
mi-info-os.exp
mi-info-sources-base.c
mi-info-sources.c
mi-info-sources.exp [gdb/testsuite] Minimize gdb restarts 2021-09-25 09:28:57 +02:00
mi-inheritance-syntax-error.cc
mi-inheritance-syntax-error.exp
mi-language.exp
mi-linespec-err-cp.cc
mi-linespec-err-cp.exp [gdb/testsuite] Minimize gdb restarts 2021-09-25 09:28:57 +02:00
mi-logging.exp [gdb/cli] Add "set logging enabled", deprecate "set logging on/off" 2021-11-25 07:49:16 +01:00
mi-memory-changed.exp [gdb/testsuite] Fix handling of nr_args < 3 in mi_gdb_test 2021-09-10 17:16:48 +02:00
mi-nonstop-exit.exp
mi-nonstop.exp
mi-ns-stale-regcache.exp
mi-nsintrall.exp
mi-nsmoribund.exp [gdb/testsuite] Fix FAIL in gdb.mi/mi-nsmoribund.exp 2021-10-05 15:52:53 +02:00
mi-nsthrexec.exp
mi-pending.c
mi-pending.exp
mi-pendshr2.c
mi-pendshr.c
mi-pthreads.exp
mi-read-memory.c
mi-read-memory.exp
mi-record-changed.exp
mi-reg-undefined.c
mi-reg-undefined.exp
mi-reg-undefined.S
mi-regs.exp
mi-return.exp
mi-reverse.exp Fix for mi-reverse.exp 2021-07-26 10:47:56 -05:00
mi-simplerun.exp
mi-solib.exp
mi-stack.c
mi-stack.exp
mi-start.c
mi-start.exp
mi-stepi.exp
mi-stepn.c
mi-stepn.exp
mi-sym-info-1.c
mi-sym-info-2.c
mi-sym-info.exp [gdb/testsuite] Minimize gdb restarts 2021-09-25 09:28:57 +02:00
mi-syn-frame.c
mi-syn-frame.exp
mi-threads-interrupt.c
mi-threads-interrupt.exp
mi-undefined-cmd.exp
mi-until.exp
mi-var-block.exp
mi-var-child-f.exp [gdb/testsuite] Fix FAIL in gdb.mi/mi-var-child-f.exp 2021-10-11 16:59:56 +02:00
mi-var-child.c
mi-var-child.exp [gdb/testsuite] Handle runto fail in gdb.mi/mi-var-cp.exp 2021-11-19 15:55:16 +01:00
mi-var-cmd.exp [gdb/testsuite] Handle runto fail in gdb.mi/mi-var-cp.exp 2021-11-19 15:55:16 +01:00
mi-var-cp.cc [gdb/testsuite] Fix duplicate in gdb.mi/mi-var-cp.exp 2021-10-25 18:15:15 +02:00
mi-var-cp.exp [gdb/testsuite] Handle runto fail in gdb.mi/mi-var-cp.exp 2021-11-19 15:55:16 +01:00
mi-var-create-rtti.c
mi-var-create-rtti.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
mi-var-display.exp
mi-var-invalidate.exp
mi-var-list-children-invalid-grandchild.c
mi-var-list-children-invalid-grandchild.exp
mi-var-rtti.cc
mi-var-rtti.exp [gdb/testsuite] Handle runto fail in gdb.mi/mi-var-cp.exp 2021-11-19 15:55:16 +01:00
mi-vla-c99.exp [gdb/testsuite] Fix untested messages in gdb.mi/*.exp 2021-09-30 19:07:47 +02:00
mi-vla-fortran.exp
mi-watch-nonstop.exp
mi-watch.exp
new-ui-mi-sync.c
new-ui-mi-sync.exp
non-stop-exit.c
non-stop.c
ns-stale-regcache.c
nsintrall.c
nsmoribund.c
nsthrexec.c
pending.c
pendshr1.c
pendshr2.c
pr11022.c
pr11022.exp
pthreads.c
solib-lib.c
solib-main.c
testcmds
until.c
user-selected-context-sync.c
user-selected-context-sync.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
var-cmd.c
vla.c
vla.f90
watch-nonstop.c