From ebc0837f4693232f74eb2cc3033515b18a8f0900 Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Mon, 22 Nov 2021 07:47:28 +0100 Subject: [PATCH 2/3] gdb: gnu-nat.c: port-rights. Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Taken from: https://sourceware.org/pipermail/gdb/2021-November/049777.html --- gdb/gnu-nat.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index ab539b4d8b4..8cd876b21d0 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -3292,15 +3292,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); + _("Show information about the task's dead names.")); + add_info_alias ("ports", port_rights_cmd, 1); + add_info_alias ("port", port_rights_cmd, 1); + add_info_alias ("psets", port_sets_cmd, 1); }