public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] hurd: Fix RPC prototypes
@ 2022-02-01  2:10 Samuel Thibault
  2022-02-01 14:08 ` Simon Marchi
  0 siblings, 1 reply; 2+ messages in thread
From: Samuel Thibault @ 2022-02-01  2:10 UTC (permalink / raw)
  To: gdb-patches; +Cc: Thomas Schwinge, thomas

The last updates of MIG introduced qualifying strings and arrays with
const as appropriate.  We thus have to update the protypes in gdb too.

diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
index e0219b1a3ff..02938af7f80 100644
--- a/gdb/gnu-nat.c
+++ b/gdb/gnu-nat.c
@@ -1859,29 +1859,29 @@ ILL_RPC (S_proc_pid2proc_reply,
 	 mach_port_t proc, mach_msg_type_name_t procPoly)
 ILL_RPC (S_proc_getprocinfo_reply,
 	 mach_port_t reply_port, kern_return_t return_code,
-	 int flags, procinfo_t procinfo, mach_msg_type_number_t procinfoCnt,
-	 data_t threadwaits, mach_msg_type_number_t threadwaitsCnt)
+	 int flags, const_procinfo_t procinfo, mach_msg_type_number_t procinfoCnt,
+	 const_data_t threadwaits, mach_msg_type_number_t threadwaitsCnt)
 ILL_RPC (S_proc_getprocargs_reply,
 	 mach_port_t reply_port, kern_return_t return_code,
-	 data_t procargs, mach_msg_type_number_t procargsCnt)
+	 const_data_t procargs, mach_msg_type_number_t procargsCnt)
 ILL_RPC (S_proc_getprocenv_reply,
 	 mach_port_t reply_port, kern_return_t return_code,
-	 data_t procenv, mach_msg_type_number_t procenvCnt)
+	 const_data_t procenv, mach_msg_type_number_t procenvCnt)
 ILL_RPC (S_proc_getloginid_reply,
 	 mach_port_t reply_port, kern_return_t return_code, pid_t login_id)
 ILL_RPC (S_proc_getloginpids_reply,
 	 mach_port_t reply_port, kern_return_t return_code,
-	 pidarray_t pids, mach_msg_type_number_t pidsCnt)
+	 const_pidarray_t pids, mach_msg_type_number_t pidsCnt)
 ILL_RPC (S_proc_getlogin_reply,
-	 mach_port_t reply_port, kern_return_t return_code, string_t logname)
+	 mach_port_t reply_port, kern_return_t return_code, const_string_t logname)
 ILL_RPC (S_proc_getsid_reply,
 	 mach_port_t reply_port, kern_return_t return_code, pid_t sid)
 ILL_RPC (S_proc_getsessionpgids_reply,
 	 mach_port_t reply_port, kern_return_t return_code,
-	 pidarray_t pgidset, mach_msg_type_number_t pgidsetCnt)
+	 const_pidarray_t pgidset, mach_msg_type_number_t pgidsetCnt)
 ILL_RPC (S_proc_getsessionpids_reply,
 	 mach_port_t reply_port, kern_return_t return_code,
-	 pidarray_t pidset, mach_msg_type_number_t pidsetCnt)
+	 const_pidarray_t pidset, mach_msg_type_number_t pidsetCnt)
 ILL_RPC (S_proc_getsidport_reply,
 	 mach_port_t reply_port, kern_return_t return_code,
 	 mach_port_t sessport)
@@ -1889,7 +1889,7 @@ ILL_RPC (S_proc_getpgrp_reply,
 	 mach_port_t reply_port, kern_return_t return_code, pid_t pgrp)
 ILL_RPC (S_proc_getpgrppids_reply,
 	 mach_port_t reply_port, kern_return_t return_code,
-	 pidarray_t pidset, mach_msg_type_number_t pidsetCnt)
+	 const_pidarray_t pidset, mach_msg_type_number_t pidsetCnt)
 ILL_RPC (S_proc_get_tty_reply,
 	 mach_port_t reply_port, kern_return_t return_code, mach_port_t tty)
 ILL_RPC (S_proc_getnports_reply,


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

* Re: [PATCH] hurd: Fix RPC prototypes
  2022-02-01  2:10 [PATCH] hurd: Fix RPC prototypes Samuel Thibault
@ 2022-02-01 14:08 ` Simon Marchi
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Marchi @ 2022-02-01 14:08 UTC (permalink / raw)
  To: Samuel Thibault, gdb-patches; +Cc: Thomas Schwinge, thomas



On 2022-01-31 21:10, Samuel Thibault via Gdb-patches wrote:
> The last updates of MIG introduced qualifying strings and arrays with
> const as appropriate.  We thus have to update the protypes in gdb too.


Pushed, thanks!

Simon

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

end of thread, other threads:[~2022-02-01 14:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-01  2:10 [PATCH] hurd: Fix RPC prototypes Samuel Thibault
2022-02-01 14:08 ` 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).