aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-decode.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-05-17 14:01:14 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-05-17 14:01:14 -0400
commit9985872497e2b8c86424fcb97cd9a065f406a5c5 (patch)
treea293dbd7159ddf4295a39381da29a33ab9a5b8da /gdb/cli/cli-decode.h
parent14b42fc4a0edc412e02a6c9cfe7eb48e67da3145 (diff)
downloadbinutils-9985872497e2b8c86424fcb97cd9a065f406a5c5.zip
binutils-9985872497e2b8c86424fcb97cd9a065f406a5c5.tar.gz
binutils-9985872497e2b8c86424fcb97cd9a065f406a5c5.tar.bz2
gdb: rename cmd_list_element::cmd_pointer to target
cmd_pointer is another field whose name I found really not clear. Yes, it's a pointer to a command, the type tells me that. But what's the relationship of that command to the current command? This field contains, for an alias, the command that it aliases. So I think that the name "alias_target" would be more appropriate. Also, rename "old" parameters to "target" in the functions that add aliases. gdb/ChangeLog: * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename to... <alias_target>: ... this. (add_alias_cmd): Rename old to target. (add_info_alias): Rename old_name to target_name. (add_com_alias): Likewise. Change-Id: I8db36c6dd799fae155f7acd3805f6d62d98befa9
Diffstat (limited to 'gdb/cli/cli-decode.h')
-rw-r--r--gdb/cli/cli-decode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cli/cli-decode.h b/gdb/cli/cli-decode.h
index e2428bd..68a9b85 100644
--- a/gdb/cli/cli-decode.h
+++ b/gdb/cli/cli-decode.h
@@ -229,7 +229,7 @@ struct cmd_list_element
/* Pointer to command that is aliased by this one, so the
aliased command can be located in case it has been hooked. */
- struct cmd_list_element *cmd_pointer = nullptr;
+ struct cmd_list_element *alias_target = nullptr;
/* Start of a linked list of all aliases of this command. */
struct cmd_list_element *aliases = nullptr;