From patchwork Mon Apr 24 16:22:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 68225 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 11AAE3857022 for ; Mon, 24 Apr 2023 16:23:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 11AAE3857022 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1682353429; bh=H+3cBSlM6abPJ8zPes6DAue+g5cH6ms9hR2YF9PXj9Y=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=x+DwlEBmIuwxRV8ayP0S5tWpvvDbdGscCzRQqpjbOxmDkKyZiHNnSVDc/FODZTm+C sTi3uNQsvPrwEJ7N1sbhWnHTFY+tL7Ri02gNWXDGIaTg8ruEMddfIjezC93/O2E+Xh C3XL70FJmetNPUT+ijtsgcIcVqfkyGEJMTikMAJk= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by sourceware.org (Postfix) with ESMTPS id 3DB543858C3A for ; Mon, 24 Apr 2023 16:22:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3DB543858C3A Received: by mail-io1-xd2f.google.com with SMTP id ca18e2360f4ac-7606df303d2so114735439f.3 for ; Mon, 24 Apr 2023 09:22:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682353346; x=1684945346; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H+3cBSlM6abPJ8zPes6DAue+g5cH6ms9hR2YF9PXj9Y=; b=aw9bCSXJ0kL8mg103GOYlpK9H5nKYWQ7aDt6VmDaPDhluVn7L4z2Bv56S3qN5txbTQ 5+USYnvGRY9a77AxhT8v43zeQMIFNCvT+pUn/nc/3HsBNaNfyW4Iyhftxe7LjY0Ql5as YV4Uf87PlU+ZfaBlBnRQxtunZOUTtm7r8RJ7c+NZb/YKb1d5Jq3jDgZJk9yxxbEIqtBZ d/uHIr4fQzzMFO3NzxfLPSGPZDPheiL4D1mYmQOeLUOQbFqUDPw8NC1LbNXZ6DBaLsjj vmfIw4cr+Xq84MV80kthSTD4J0Obrz4F+7vUh1QT4dEMhnmYMgJTrVezn4nDE5s9N+UX WyOg== X-Gm-Message-State: AAQBX9ePWZu5yxv1CpXWtRnZMZBP+ObI9kKtIwd97MdRPX+SVBhZE1Nv FdzmCiijH8MZhcKrG7IPjSLmT38mcKB4BKcnGgo4lg== X-Google-Smtp-Source: AKy350brc/mLW+mJPHimoAUAT/d18tWm5dnKAqvRWTQSwsQ4ecAyXtLGnOze7bJdyI+DjEY8/1bJJw== X-Received: by 2002:a5d:9248:0:b0:763:5cc3:c8d8 with SMTP id e8-20020a5d9248000000b007635cc3c8d8mr5206171iol.6.1682353346426; Mon, 24 Apr 2023 09:22:26 -0700 (PDT) Received: from localhost.localdomain (71-211-191-82.hlrn.qwest.net. [71.211.191.82]) by smtp.gmail.com with ESMTPSA id cx27-20020a056638491b00b0040fa19472bcsm3444049jab.92.2023.04.24.09.22.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Apr 2023 09:22:26 -0700 (PDT) To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFC 06/10] Fix comment in address_class Date: Mon, 24 Apr 2023 10:22:07 -0600 Message-Id: <20230424162211.682763-7-tromey@adacore.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230424162211.682763-1-tromey@adacore.com> References: <20230424162211.682763-1-tromey@adacore.com> MIME-Version: 1.0 X-Spam-Status: No, score=-10.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_STOCKGEN, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tom Tromey via Gdb-patches From: Tom Tromey Reply-To: Tom Tromey Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" enum address_class has a stale comment referring to MSYMBOL_VALUE_RAW_ADDRESS, which no longer exists. This patch updates the comment. --- gdb/symtab.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gdb/symtab.h b/gdb/symtab.h index 495e7522e25..600f2e47cec 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1047,11 +1047,11 @@ enum address_class without possibly having its address available for LOC_STATIC. Testcase is provided as `gdb.dwarf2/dw2-unresolved.exp'. - This is also used for thread local storage (TLS) variables. In this case, - the address of the TLS variable must be determined when the variable is - referenced, from the MSYMBOL_VALUE_RAW_ADDRESS, which is the offset - of the TLS variable in the thread local storage of the shared - library/object. */ + This is also used for thread local storage (TLS) variables. In + this case, the address of the TLS variable must be determined + when the variable is referenced, from the msymbol's address, + which is the offset of the TLS variable in the thread local + storage of the shared library/object. */ LOC_UNRESOLVED,