]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/help: Update help message for target record-core
authorGuinevere Larsen <guinevere@redhat.com>
Fri, 24 Oct 2025 11:43:46 +0000 (08:43 -0300)
committerGuinevere Larsen <guinevere@redhat.com>
Mon, 27 Oct 2025 11:54:02 +0000 (08:54 -0300)
Before this commit, the help message for target record-core is the same
as the help message for target record-full, which is the following:
    Log program while executing and replay execution from log.

For one, having the same message is unhelpful, since it doesn't tell
users what the difference between the two is.  But, more importantly,
that message seems to also be incorrect, since attempting to execute the
inferior forward from a restored file past the end of history will crash
GDB, since there isn't an actual live inferior to run.

To fix this, the help text is updated to the following:
    Load a saved execution log, allowing replay of the last instructions
This message doesn't imply that future execution is supported, while it
shows that replaying within recorded instructions *is* supported.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/record-full.c

index 2c79c09da744633aae0432d9f9f800792c0b9008..ff45fcf03435a122fd65a14f0a1436f2494a0cfe 100644 (file)
@@ -297,7 +297,7 @@ public:
 static const target_info record_full_core_target_info = {
   "record-core",
   record_longname,
-  record_doc,
+  N_("Load a saved execution log, allowing replaying the last instructions."),
 };
 
 class record_full_core_target final : public record_full_base_target