aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/record.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/record.c b/gdb/record.c
index 25a4c1e..5b1093d 100644
--- a/gdb/record.c
+++ b/gdb/record.c
@@ -260,11 +260,16 @@ show_record_debug (struct ui_file *file, int from_tty,
value);
}
-/* Alias for "target record". */
+/* Alias for "target record-full". */
static void
cmd_record_start (const char *args, int from_tty)
{
+ /* As 'record' is a prefix command then if the user types 'record blah'
+ GDB will search for the 'blah' sub-command and either run that instead
+ of calling this function, or throw an error if 'blah' doesn't exist.
+ As a result, we only get here if no args are given. */
+ gdb_assert (args == nullptr);
execute_command ("target record-full", from_tty);
}