From patchwork Thu Mar 28 11:43:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Hayward X-Patchwork-Id: 32041 Received: (qmail 85137 invoked by alias); 28 Mar 2019 11:43:54 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 85127 invoked by uid 89); 28 Mar 2019 11:43:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-HELO:sk:EUR02-H, H*RU:sk:EUR02-H, HX-Spam-Relays-External:sk:EUR02-H X-HELO: EUR02-HE1-obe.outbound.protection.outlook.com Received: from mail-eopbgr10089.outbound.protection.outlook.com (HELO EUR02-HE1-obe.outbound.protection.outlook.com) (40.107.1.89) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 28 Mar 2019 11:43:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o5ZB+Rl2coUxEwoU16BT9/6xLe1Papae+gmQPsJZhv8=; b=Eu7Nuv8wWAFZG/CpuJlV+FoyKxzmcqrwdVBdSqdssoj1YgPGsjM6oBsfCZs+XELyJC6g0S41Gn+nSvnAV4SITnsW1ZIpDXyLujOCMfW6UnU6atNCzcKvH/1Jj30tfjj8Z4Lz+wfXxDuSMLqLFhULXMsYN11cM4VQNN6PNN6ng5E= Received: from DB6PR0802MB2133.eurprd08.prod.outlook.com (10.172.227.22) by DB6PR0802MB2357.eurprd08.prod.outlook.com (10.172.228.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.17; Thu, 28 Mar 2019 11:43:45 +0000 Received: from DB6PR0802MB2133.eurprd08.prod.outlook.com ([fe80::d122:4a29:4ae4:790c]) by DB6PR0802MB2133.eurprd08.prod.outlook.com ([fe80::d122:4a29:4ae4:790c%10]) with mapi id 15.20.1750.014; Thu, 28 Mar 2019 11:43:45 +0000 From: Alan Hayward To: "gdb-patches@sourceware.org" CC: nd , Alan Hayward Subject: [OBV][PATCH] gdbserver: Ensure AT_HWCAP2 is defined Date: Thu, 28 Mar 2019 11:43:45 +0000 Message-ID: <20190328114337.67043-1-alan.hayward@arm.com> authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alan.Hayward@arm.com; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-IsSubscribed: yes When using older compilers, AT_HWCAP2 may not be be defined. It is defined in elf/common.h, however including this in gdbserver/linux-low.c causes conflicts. Manually add the define if it does not exist. gdb/gdbserver/ChangeLog: 2019-03-28 Alan Hayward * linux-low.c (AT_HWCAP2): Add define if not already included. --- gdb/gdbserver/linux-low.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 7158a6798c..265043f97e 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -75,6 +75,10 @@ #define O_LARGEFILE 0 #endif +#ifndef AT_HWCAP2 +#define AT_HWCAP2 26 +#endif + /* Some targets did not define these ptrace constants from the start, so gdbserver defines them locally here. In the future, these may be removed after they are added to asm/ptrace.h. */