summaryrefslogtreecommitdiff
path: root/gdb/record.c
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2020-12-03 17:04:29 +0100
committerMarkus Metzger <markus.t.metzger@intel.com>2020-12-21 08:56:26 +0100
commit98d837f0efa63cdd430d161e95ca713c4b67399a (patch)
tree6539a919b151f7e02940429480bfc0c73db9f2ab /gdb/record.c
parent904cb749cf4ed4e26aec6a9f471497f7534f8cc3 (diff)
downloadbinutils-gdb-98d837f0efa63cdd430d161e95ca713c4b67399a.tar.gz
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/record.c')
-rw-r--r--gdb/record.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/record.c b/gdb/record.c
index f9141192779..204bda0a424 100644
--- a/gdb/record.c
+++ b/gdb/record.c
@@ -74,8 +74,8 @@ require_record_target (void)
t = find_record_target ();
if (t == NULL)
- error (_("No record target is currently active.\n"
- "Use one of the \"target record-<TAB><TAB>\" commands first."));
+ error (_("No recording is currently active.\n"
+ "Use the \"record full\" or \"record btrace\" command first."));
return t;
}
@@ -325,7 +325,7 @@ info_record_command (const char *args, int from_tty)
t = find_record_target ();
if (t == NULL)
{
- printf_filtered (_("No record target is currently active.\n"));
+ printf_filtered (_("No recording is currently active.\n"));
return;
}