From patchwork Tue Feb 27 21:31:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 86482 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 D77A73858C5F for ; Tue, 27 Feb 2024 21:32:11 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by sourceware.org (Postfix) with ESMTPS id E540D3858D33 for ; Tue, 27 Feb 2024 21:31:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E540D3858D33 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E540D3858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::d2d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709069510; cv=none; b=gChk6uOKYu4J1mC6spp0gKgrlkC/MT1d0h0guE12yNHFeWUQ4F/9l6bq4x+mnCl8sSroEJqsjMawb9EylluYSFSkjd8rYLPvpPo2+wgKrnChGXx7C68KVYXJ4kE0/Cvatz2J/W/DaK7ND8RXLYrSFg65BgqWA8svdHrRuSCZBVo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709069510; c=relaxed/simple; bh=MZ6CIFiX3msG3grnuH050RGYZdZt7PZY76dFerft0dQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=sWzLBuGdN9BRUWnR1vyMYj8aiROXDWtHnZRv6kJgvYSv+EIVWBo7yCrfVLK4MPOzdZ2HSXyteRFXKTndFy2B/h7X1f6i0MXrVdxFIpWeiJR759wFRd0S+tsn2FinQ8mpgkiTPVI1TADCjg9uDZrPaxTdqpNVw0b3Q6AdoxvuBcI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-io1-xd2d.google.com with SMTP id ca18e2360f4ac-7c403dbf3adso253891639f.1 for ; Tue, 27 Feb 2024 13:31:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1709069508; x=1709674308; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=hbrMkepE7V4C5WqlK0APZR+WyRRUjK7832d4lP9wNgw=; b=lYoGY4re2wOJqyQvUlaHyPGXqE1CSaxNEATsUClfUVDyAzSEoHGIx5bdZNPwLgHIg5 T7iM8FzFxNnXzIjnTs27hwSvmMXxH/4auUFcT7S01E8+hClZCzC8uzdd2F1dude6Yd3o VyLZg+ycWMNgzC7z4Qdrp/tcclowTLsLrBPPzUFoL+0DvfC+QU6A7VtOs+bk6bMo08Av //cf8aYR50Tw9GT2PgYzLULnP+UooSTV1CgeIZJt7cO3LE9WSi8mkMw0uu/ykCHWSU52 LrSI/ofp1kIWGlW+wlHjukUjfmn1sJSuSAjBRdyjXOJTN6pasWunkPMv7gsFEstarZ3G RaKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709069508; x=1709674308; 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=hbrMkepE7V4C5WqlK0APZR+WyRRUjK7832d4lP9wNgw=; b=GGgmbBm3B6UA6arKeJi0O4XXOmYYr+h9CS91Z6TNe/T+exb/0c0QlpSVnFKkY46Jz/ UAUH+cIgoEd0+Ck5ztrslJa8LZyFCogHd490VUU6K4+lbtnNpte6J3nLJcfnX8wGEMyl vmB91etSpYe7b3b9Smhttx60I7LxMPhUwTKpnsBHZbGgdJwoXhbvXgH7jNaaNQ1UDLXr wfavD7NRlzpQS6tGEBVXgwlsFOQzsX8MmqvEgoEwQ8mipJNpBhU6jNk8IHFUnGn/29kD Eo9Fe9R2Tv+cSS9bLK52W4C+wM+JU6x6E2twuq0UIqlMyETe6jDtY1vLOviq8lbLoQ3v WJOA== X-Gm-Message-State: AOJu0Yz96EZa+1T5dKzcrRijWDItq+tIdMjUCi1XmtC8TEpsHfpZtQ9E Qe05lXN+uHvdIZ7BndSsTpLWFbwPR202SuiobOtw4NvtScJCHzo50ZOn35sY309235NhaVrF3h8 = X-Google-Smtp-Source: AGHT+IGz/3ZLwhBIWYihzaTeVXfDSEQTS6p885Pr4Bz399bp2BhYr+pWIcbeSPxJPekVsUyPYng+yA== X-Received: by 2002:a05:6602:3420:b0:7c7:bd8e:62c with SMTP id n32-20020a056602342000b007c7bd8e062cmr10595268ioz.16.1709069508108; Tue, 27 Feb 2024 13:31:48 -0800 (PST) Received: from localhost.localdomain (71-211-170-195.hlrn.qwest.net. [71.211.170.195]) by smtp.gmail.com with ESMTPSA id h2-20020a02c4c2000000b004745680ef83sm1961762jaj.123.2024.02.27.13.31.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 13:31:47 -0800 (PST) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [pushed] Two minor addrmap cleanups Date: Tue, 27 Feb 2024 14:31:37 -0700 Message-ID: <20240227213137.1805500-1-tromey@adacore.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-11.5 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, 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.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org While working on a different patch, I found a couple of simple addrmap cleanups. In one case, a forward declaration is no longer needed, as the header now includes addrmap.h. In the other, an include of addrmap.h is no longer needed. Tested by rebuilding. --- gdb/buildsym.h | 1 - gdb/psymtab.c | 1 - 2 files changed, 2 deletions(-) diff --git a/gdb/buildsym.h b/gdb/buildsym.h index 79ece794559..c1eed247d25 100644 --- a/gdb/buildsym.h +++ b/gdb/buildsym.h @@ -25,7 +25,6 @@ struct objfile; struct symbol; -struct addrmap; struct compunit_symtab; enum language; diff --git a/gdb/psymtab.c b/gdb/psymtab.c index 334a9417055..a831e5eec40 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -24,7 +24,6 @@ #include "block.h" #include "filenames.h" #include "source.h" -#include "addrmap.h" #include "gdbtypes.h" #include "ui-out.h" #include "command.h"