From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by sourceware.org (Postfix) with ESMTPS id 58E523858C3A for ; Mon, 14 Aug 2023 18:07:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 58E523858C3A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-io1-xd2b.google.com with SMTP id ca18e2360f4ac-790a590237aso217959539f.3 for ; Mon, 14 Aug 2023 11:07:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1692036460; x=1692641260; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=6LCc+oSfBF4Q0D0ehVM/OlDmKRwn9cDZOD3HrSJVYoU=; b=DYFJJfwOtBXos4VW9z+hM3JMQ/evPAfWl07/dKzTbHOgIyKsd3QeXJMLgVgpeebGo1 b4L0u0FIWCgUv9DjmNQ/zispuHixaHKCbS8uzXYxqlU7Ns1XxPG8bKc1T7vji7g8w0OO MIHDMOGUKohuWM8g2p90xq0gDjwid09jdv0b3kPCNjgX5Kf/Ckih+HyPH7tzGHDD7IgX s8/HV1I/jA/lJCIhxxs22wVtJuFzeoc658PyZVmTnyEh8Hx8Kzpg6giwAtGvCuJA9ET6 FqTjQwwz1I3l29GS5bpY1XRTVrqVwZ1dlbVzaFcGp1qvt42rLs1HTnx0I4mA2h2boN2O 915w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692036460; x=1692641260; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6LCc+oSfBF4Q0D0ehVM/OlDmKRwn9cDZOD3HrSJVYoU=; b=STV1IeHAIF6nwQaBZ1TioJz8FI89Cplgf061KmdX2nr0087KrlWoHUFPQND+0No3da 7Xdro4JeAnpNKQGs98kx6XYJWxBbAh4uMjfD3hatHAZiYVNH0Q/tcbYjLEmSsKLiDmxS 8Utk6PLSajqC4TueU+MsB2tEMXFHZEkXA+Y/gKdOIbzN/md/xNCOQdiaL27R2GJB7lA/ k5alkqauPyotowYF5WHWCjnGw8Km/b4YD3i0uCpzokRASEnV9yfdES35zWxhZgIIHJx9 VyUinGYAWQ28GvSBafXyjITSUqYBHKEIECnJCG0ZA4bNVd8kTtRq+ja4FGYfBGPIsU6B 1yXg== X-Gm-Message-State: AOJu0YzdpTKnBZ/m1CAoX+VfqVcqGiAfoAfUn16AcifEvxwibXAvuV+s TzpkLrds+CxPSnP8W7dEe43/eCzElpVkeE6VHM5/Eg== X-Google-Smtp-Source: AGHT+IEycYB9BkAIHKIHq0KjDpdvmcVgesou11FRJNmZe2Iiy66jw6qE1HIqwZtyvlcIRku2OFQtiA== X-Received: by 2002:a6b:db02:0:b0:787:953:514b with SMTP id t2-20020a6bdb02000000b007870953514bmr15361758ioc.3.1692036460618; Mon, 14 Aug 2023 11:07:40 -0700 (PDT) Received: from localhost.localdomain (75-166-142-177.hlrn.qwest.net. [75.166.142.177]) by smtp.gmail.com with ESMTPSA id w9-20020a6bf009000000b00760e7a343c1sm3391440ioc.30.2023.08.14.11.07.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 11:07:39 -0700 (PDT) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] Mention process_stratum in inferior::priv comment Date: Mon, 14 Aug 2023 12:07:33 -0600 Message-Id: <20230814180733.2158338-1-tromey@adacore.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: >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. --- 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 @@ class inferior : public refcounted_object, 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.40.1