diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2020-12-03 17:04:29 +0100 |
---|---|---|
committer | Markus Metzger <markus.t.metzger@intel.com> | 2020-12-21 08:56:26 +0100 |
commit | 98d837f0efa63cdd430d161e95ca713c4b67399a (patch) | |
tree | 6539a919b151f7e02940429480bfc0c73db9f2ab /gdb/testsuite/gdb.btrace | |
parent | 904cb749cf4ed4e26aec6a9f471497f7534f8cc3 (diff) | |
download | gdb-98d837f0efa63cdd430d161e95ca713c4b67399a.zip gdb-98d837f0efa63cdd430d161e95ca713c4b67399a.tar.gz gdb-98d837f0efa63cdd430d161e95ca713c4b67399a.tar.bz2 |
gdb, record: rephrase the 'not recording' error message
When trying to use one of the record commands without having enabled
recording first, GDB gives the error message:
(gdb) record function-call-history
No record target is currently active.
Use one of the "target record-<TAB><TAB>" commands first.
In the record help, however, we say:
(gdb) help record
record, rec
Start recording.
List of record subcommands:
record btrace, record b -- Start branch trace recording.
record delete, record del, record d -- Delete the rest of execution log and start recording it anew.
record full -- Start full execution recording.
record function-call-history -- Prints the execution history at function granularity.
record goto -- Restore the program to its state at instruction number N.
record instruction-history -- Print disassembled instructions stored in the execution log.
record save -- Save the execution log to a file.
record stop, record s -- Stop the record/replay target.
Change the above error message to
(gdb) record function-call-history
No recording is currently active.
Use the "record full" or "record btrace" command first.
to align with the help text.
gdb/ChangeLog:
2020-12-03 Markus Metzger <markus.t.metzger@intel.com>
* record.c (require_record_target): Rephrase error message.
(info_record_command): Likewise.
gdb/testsuite/ChangeLog:
2020-12-03 Markus Metzger <markus.t.metzger@intel.com>
* gdb.btrace/enable.exp: Update error message.
* gdb.btrace/multi-inferior.exp: Likewise.
* gdb.btrace/reconnect.exp: Likewise.
* gdb.python/py-record-btrace.exp: Likewise.
* gdb.python/py-record-full.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.btrace')
-rw-r--r-- | gdb/testsuite/gdb.btrace/enable.exp | 10 | ||||
-rw-r--r-- | gdb/testsuite/gdb.btrace/multi-inferior.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.btrace/reconnect.exp | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/gdb/testsuite/gdb.btrace/enable.exp b/gdb/testsuite/gdb.btrace/enable.exp index a968d41..8ce1dab 100644 --- a/gdb/testsuite/gdb.btrace/enable.exp +++ b/gdb/testsuite/gdb.btrace/enable.exp @@ -27,15 +27,15 @@ gdb_exit gdb_start # record cannot be stopped, if it was never active -gdb_test "record stop" "No record target is currently active\\..*" "record stop without target" +gdb_test "record stop" "No recording is currently active\\..*" "record stop without target" # btrace cannot be enabled without a running inferior gdb_test "record btrace" "The program is not being run\\." "record btrace without running program" # no function and no instruction history without btrace enabled -gdb_test "record function-call-history" "No record target is currently active\\..*" "record function-call-history without target" -gdb_test "record instruction-history" "No record target is currently active\\..*" "record instruction-history without target" -gdb_test "info record" "No record target is currently active\\." "info record without target" +gdb_test "record function-call-history" "No recording is currently active\\..*" "record function-call-history without target" +gdb_test "record instruction-history" "No recording is currently active\\..*" "record instruction-history without target" +gdb_test "info record" "No recording is currently active\\." "info record without target" standard_testfile if [prepare_for_testing "failed to prepare" $testfile {} {debug}] { @@ -65,7 +65,7 @@ Recorded 0 instructions in 0 functions \\\(0 gaps\\\) for thread 1.*\\." "info r # stop btrace record gdb_test "record stop" "Process record is stopped and all execution logs are deleted\\." -gdb_test "record stop" "No record target is currently active\\..*" "record stop the second time" +gdb_test "record stop" "No recording is currently active\\..*" "record stop the second time" # enable btrace again gdb_test_no_output "record btrace" "record btrace re-enable" diff --git a/gdb/testsuite/gdb.btrace/multi-inferior.exp b/gdb/testsuite/gdb.btrace/multi-inferior.exp index fdf889f..23bc852 100644 --- a/gdb/testsuite/gdb.btrace/multi-inferior.exp +++ b/gdb/testsuite/gdb.btrace/multi-inferior.exp @@ -55,7 +55,7 @@ with_test_prefix "inferior 2" { with_test_prefix "inferior 1" { gdb_test "inferior 1" "Switching to inferior 1.*" - gdb_test "info record" "No record target is currently active\\." + gdb_test "info record" "No recording is currently active\\." gdb_test_no_output "record btrace" "record btrace" } @@ -69,6 +69,6 @@ with_test_prefix "inferior 3" { return -1 } - gdb_test "info record" "No record target is currently active\\." + gdb_test "info record" "No recording is currently active\\." gdb_test_no_output "record btrace" "record btrace" } diff --git a/gdb/testsuite/gdb.btrace/reconnect.exp b/gdb/testsuite/gdb.btrace/reconnect.exp index 26d04c3..baec86f 100644 --- a/gdb/testsuite/gdb.btrace/reconnect.exp +++ b/gdb/testsuite/gdb.btrace/reconnect.exp @@ -81,5 +81,5 @@ with_test_prefix "second" { # Test that recording is now off. with_test_prefix "third" { - gdb_test "info record" "No record target is currently active." + gdb_test "info record" "No recording is currently active." } |