From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id 112F83836C67 for ; Mon, 1 Feb 2021 11:44:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 112F83836C67 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=andrew.burgess@embecosm.com Received: by mail-wr1-x434.google.com with SMTP id s7so13228129wru.5 for ; Mon, 01 Feb 2021 03:44:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Qx8jm5j+WJ+aJRnKQli5ssNZsfKDpALHslREIy3sG5E=; b=W+OoaulD/3Rjc/tvUnxO+r9tAZqMO4wpZXQlztWP5LGcUCAGFDbpVUWf/Tf4k/X61j XW4zvYMCzyXw6Oybvh4sKjaYc6ZRt7mQdE4PnHLBfe+SvT2gOe11CjwCRLqPPXqJVn03 uyaI2AaBcKdF8lg1BBHbvZnTH4WZ7HdLhdTmDKdfQA7Z8tvIXgDVnp5M+eXX0p2LgUGU MBPVg+ffAFSWkOtibBdpi7KDC3feoV1rmqxUH1pzz6g+ErYwXBe6ounLPzntM7VUUKKY LvHW2vfsKzGRelNCsBb0JYGTDbCGqwlFiDjjyVR5URqN5yFie3afKVGU6ld7RTcD6Wnn R9OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Qx8jm5j+WJ+aJRnKQli5ssNZsfKDpALHslREIy3sG5E=; b=XrO9GvIozY5PDek5JQc4qM36MCf1q2AL2i+e5UHvMopnWJ0813SaLoz58kly8u9Ntb VhgwH7hlZwJwHybtb9aLvoypXrBgtVfLLvYRY6Vy4nPjoIcIko3N+7IEXcql0xPh4Aa0 bnsWMWDPRycS6812BFh6lUtUQi3NANiRStdvf+3KY3FOlZrSHpKvtIIZvaMZGCTP/MFV UBpyMAk/jzenbij9sxNc8CGSjtiByGciCiQwIhvw/M0//kjjMCm+ePLdB9v7DjRO0U/E gSUmRXcIBu8il5jdoxYC7WaA+JzwXnZ2LE9gfBUL+A3t32UfkTNDjj/IKVo/1NMti/ot zuew== X-Gm-Message-State: AOAM53322MSOzXomFhAv5VAXhD8IO6ThKO2Vx/mivxK8Do4FEgcX00Dv gZ9YZH11ycnDMyiTY8brdn5+qNhIjIX3MA== X-Google-Smtp-Source: ABdhPJx0334GYfE290JA3ynyWTv8e6GbB8OCGtcrUxpsSUP54SmuLZJ87uq+gfgTx5Km9/XwaZbvxw== X-Received: by 2002:a5d:6d0c:: with SMTP id e12mr17128544wrq.136.1612179873043; Mon, 01 Feb 2021 03:44:33 -0800 (PST) Received: from localhost (host86-191-239-31.range86-191.btcentralplus.com. [86.191.239.31]) by smtp.gmail.com with ESMTPSA id n9sm26810194wrq.41.2021.02.01.03.44.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 03:44:32 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Subject: [PATCH 09/11] sim/rx: add some missing includes Date: Mon, 1 Feb 2021 11:44:12 +0000 Message-Id: X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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-List-Received-Date: Mon, 01 Feb 2021 11:44:35 -0000 In load.c there's some GCC warnings about undefined functions (bfd_get_elf_phdr_upper_bound and bfd_get_elf_phdrs). To get the declarations of these functions include 'elf-bfd.h'. This headers also pulls in other elf related headers, like 'elf/internal.h' and 'elf/common.h', so these no longer need to be explicitly included from load.c. In trace.c and include for trace.h is missing, again this results in GCC warnings for missing function declarations. sim/rx/ChangeLog: * load.c: Replace 'elf/internal.h' and 'elf/common.h' includes with 'elf-bfd.h' include. * trace.c: Add 'trace.h' include. --- sim/rx/ChangeLog | 6 ++++++ sim/rx/load.c | 3 +-- sim/rx/trace.c | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sim/rx/load.c b/sim/rx/load.c index d74f4ff3872..a8a473346c6 100644 --- a/sim/rx/load.c +++ b/sim/rx/load.c @@ -28,8 +28,7 @@ along with this program. If not, see . */ #include "cpu.h" #include "mem.h" #include "load.h" -#include "elf/internal.h" -#include "elf/common.h" +#include "elf-bfd.h" /* Helper function for invoking a GDB-specified printf. */ static void diff --git a/sim/rx/trace.c b/sim/rx/trace.c index 9d9f2dfd98d..e5db49b5ca9 100644 --- a/sim/rx/trace.c +++ b/sim/rx/trace.c @@ -34,6 +34,7 @@ along with this program. If not, see . */ #include "cpu.h" #include "mem.h" #include "load.h" +#include "trace.h" static int sim_dis_read (bfd_vma memaddr, bfd_byte * ptr, unsigned int length, -- 2.25.4