From: Tom Tromey Date: Mon, 14 Aug 2023 18:06:12 +0000 (-0600) Subject: Mention process_stratum in inferior::priv comment X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a3f442df9e9a71f9e3c4c5999a2c53bf93e488d;p=binutils-gdb.git Mention process_stratum in inferior::priv comment From what I can tell, inferior::priv is reserved for the process_stratum target. It seems to me that it has to be, because currenlty only such targets use it, and if a target at another stratum started using this field, then conflicts could occur. This patch documents this. Reviewed-by: John Baldwin --- diff --git a/gdb/inferior.h b/gdb/inferior.h index 712f9b3f330..8f300a5bcc5 100644 --- a/gdb/inferior.h +++ b/gdb/inferior.h @@ -633,7 +633,7 @@ public: attach or handling a fork child. */ bool in_initial_library_scan = false; - /* Private data used by the target vector implementation. */ + /* Private data used by the process_stratum target. */ std::unique_ptr priv; /* HAS_EXIT_CODE is true if the inferior exited with an exit code.