public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] gnu-nat.c: fix calls to add_info_alias
@ 2021-11-06 16:22 Andrea Monaco
  2021-11-23  2:32 ` Simon Marchi
  0 siblings, 1 reply; 2+ messages in thread
From: Andrea Monaco @ 2021-11-06 16:22 UTC (permalink / raw)
  To: gdb


Hello,


some time ago add_info_alias was changed (commit
e0f25bd9717c7973197095523db7c1cdc956cea2).  These calls were not updated
and caused errors on compilation.


Warmly,

Andrea Monaco



diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
index c6cecff0686..2d15b3d3e58 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);
 }
 
 ^L


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] gnu-nat.c: fix calls to add_info_alias
  2021-11-06 16:22 [PATCH] gnu-nat.c: fix calls to add_info_alias Andrea Monaco
@ 2021-11-23  2:32 ` Simon Marchi
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Marchi @ 2021-11-23  2:32 UTC (permalink / raw)
  To: Andrea Monaco, gdb

On 2021-11-06 12:22, Andrea Monaco via Gdb wrote:
> 
> Hello,
> 
> 
> some time ago add_info_alias was changed (commit
> e0f25bd9717c7973197095523db7c1cdc956cea2).  These calls were not updated
> and caused errors on compilation.
> 
> 
> Warmly,
> 
> Andrea Monaco
> 
> 
> 
> diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
> index c6cecff0686..2d15b3d3e58 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);
>  }
>  
>  ^L
> 

Hi,

I had trouble applying your patch, I suppose the text was modified by
your email client.  But it is small enough that I applied it by hand and
pushed it, thanks.  Just note for next time that patches should ideally
be sent to the gdb-patches mailing list.

Simon

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-23  2:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-06 16:22 [PATCH] gnu-nat.c: fix calls to add_info_alias Andrea Monaco
2021-11-23  2:32 ` Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).