From 5e84b7eefba5b4299b0ca80aecc5d4e99c195c1e Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 27 May 2021 13:59:01 -0400 Subject: gdb: remove add_alias_cmd overload that accepts a string Same idea as previous patch, but for add_alias_cmd. Remove the overload that accepts the target command as a string (the target command name), leaving only the one that takes the cmd_list_element. gdb/ChangeLog: * command.h (add_alias_cmd): Accept target as cmd_list_element. Update callers. Change-Id: I546311f411e9e7da9302322d6ffad4e6c56df266 --- gdb/tracepoint.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/tracepoint.c') diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index abbd507..eca1a9d 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -4075,11 +4075,11 @@ Select a trace frame by PC.\n\ Default is the current PC, or the PC of the current trace frame."), &tfindlist); - add_cmd ("end", class_trace, tfind_end_command, _("\ -De-select any trace frame and resume 'live' debugging."), - &tfindlist); + cmd_list_element *tfind_end_cmd + = add_cmd ("end", class_trace, tfind_end_command, _("\ +De-select any trace frame and resume 'live' debugging."), &tfindlist); - add_alias_cmd ("none", "end", class_trace, 0, &tfindlist); + add_alias_cmd ("none", tfind_end_cmd, class_trace, 0, &tfindlist); add_cmd ("start", class_trace, tfind_start_command, _("Select the first trace frame in the trace buffer."), -- cgit v1.1