From: Guinevere Larsen Date: Thu, 23 Oct 2025 18:05:33 +0000 (-0300) Subject: gdb/reverse: update error message for "reverse-" commands X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12926e6ab8d0c93dd25de6970b0991f0484d03d2;p=thirdparty%2Fbinutils-gdb.git gdb/reverse: update error message for "reverse-" commands Before this change, when a user tried to use a command that executes the inferior in reverse, they would get the following error message: Target multi-thread does not support this command. As an end-user with no knowledge of the internals of GDB would have as a best guess, that reverse execution as a whole would not be supported in their system (verified by asking a couple new users). This commit changes the message to avoid the internal terminology, and to add a hint that the user may need to create a recording somehow to be able to execute in reverse. Approved-By: Tom Tromey --- diff --git a/gdb/reverse.c b/gdb/reverse.c index bda23ed2199..0d67afad45e 100644 --- a/gdb/reverse.c +++ b/gdb/reverse.c @@ -44,7 +44,8 @@ exec_reverse_once (const char *cmd, const char *args, int from_tty) cmd); if (!target_can_execute_reverse ()) - error (_("Target %s does not support this command."), target_shortname ()); + error (_("Reverse execution is not currently supported.\n" + "You may need to record the execution first.")); std::string reverse_command = string_printf ("%s %s", cmd, args ? args : ""); scoped_restore restore_exec_dir