aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-nat.c
diff options
context:
space:
mode:
authorAndrea Monaco <andrea.monaco@autistici.org>2021-11-22 21:26:25 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2021-11-22 21:28:21 -0500
commite1fbfba5a58a76c4f99925149e2d5fe8f487d191 (patch)
treefd76f98cd784cd698a126ea351b242118297c2cb /gdb/gnu-nat.c
parent4d3af74a388191e3363d104e6702acfd96dc5e60 (diff)
downloadgdb-e1fbfba5a58a76c4f99925149e2d5fe8f487d191.zip
gdb-e1fbfba5a58a76c4f99925149e2d5fe8f487d191.tar.gz
gdb-e1fbfba5a58a76c4f99925149e2d5fe8f487d191.tar.bz2
gnu-nat.c: fix calls to add_info_alias
Some time ago add_info_alias was changed (commit e0f25bd9717c7973197095523db7c1cdc956cea2). These calls were not updated and caused errors on compilation. Change-Id: I354ae4e8b8926d785abc94ec7142471ffd76d2de
Diffstat (limited to 'gdb/gnu-nat.c')
-rw-r--r--gdb/gnu-nat.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
index 216d178..9ceaad7 100644
--- a/gdb/gnu-nat.c
+++ b/gdb/gnu-nat.c
@@ -3286,15 +3286,17 @@ This is the same as setting `task pause', `exceptions', and\n\
_("Show information about the task's send rights."));
add_info ("receive-rights", info_recv_rights_cmd,
_("Show information about the task's receive rights."));
- add_info ("port-rights", info_port_rights_cmd,
- _("Show information about the task's port rights."));
- add_info ("port-sets", info_port_sets_cmd,
- _("Show information about the task's port sets."));
+ cmd_list_element *port_rights_cmd
+ = add_info ("port-rights", info_port_rights_cmd,
+ _("Show information about the task's port rights."));
+ cmd_list_element *port_sets_cmd
+ = add_info ("port-sets", info_port_sets_cmd,
+ _("Show information about the task's port sets."));
add_info ("dead-names", info_dead_names_cmd,
_("Show information about the task's dead names."));
- add_info_alias ("ports", "port-rights", 1);
- add_info_alias ("port", "port-rights", 1);
- add_info_alias ("psets", "port-sets", 1);
+ add_info_alias ("ports", port_rights_cmd, 1);
+ add_info_alias ("port", port_rights_cmd, 1);
+ add_info_alias ("psets", port_sets_cmd, 1);
}