From 2a3f442df9e9a71f9e3c4c5999a2c53bf93e488d Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 14 Aug 2023 12:06:12 -0600 Subject: [PATCH] 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 --- gdb/inferior.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.30.2