From patchwork Tue Mar 13 16:06:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Daniel_D=C3=ADaz?= X-Patchwork-Id: 131496 Delivered-To: patch@linaro.org Received: by 10.80.210.197 with SMTP id q5csp1016518edg; Tue, 13 Mar 2018 09:07:23 -0700 (PDT) X-Google-Smtp-Source: AG47ELtrah5xEGWLyu3Na5Ey8uMw6dA6pbrefiK0rbv4zruB0pZXqMNPzoNHlmzYL9H8NQAncQPq X-Received: by 2002:a17:902:7b90:: with SMTP id w16-v6mr1043672pll.26.1520957243715; Tue, 13 Mar 2018 09:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520957243; cv=none; d=google.com; s=arc-20160816; b=fa8l5QtjYvmGGD2tJDHeTRIMBosr2EAxl8ktZc+TvBgF37CWqvd5Rr+SEjvx6Wlx2x a+1jU+fqbHdBpiCD0Fl9IhuSYFTsIAt96MYl0qUy/eE9qTVuwxdVni+N5e0tiIEEcqv5 amwOq2DtAZSIy+MTMCfyqEbh+WSl3fgMDCsIuvWc2DlSbeAcYjuuTMTesyZUjGRzarMt ZxmBETO7y52kKPIxwZFlsi0FyioeeksgSxgETefwDxLfz2w8Zfnk+mt4qMbjZW0sfnIF OiQhi5yalKu/GWwGzXKoW/X7P7okES8UA7UuX+JpZ1D9Co9L4JSNq70T4o5atlmVs7Tt xvOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to :arc-authentication-results; bh=yTuXesY9dXyh5leDl3iWW7v3sKJt94zWpo6dntLB5+E=; b=E5yJtMlAzQeGOHkYfWBJY8rBk7s3sZ6GaoAX3nrWcqJV7NYiVC7CwuMF4aUwmLwn3f 1J6eK7ktsMA8sEEHWhIF8nI8ZqL+cXWGaBWZ/GAcI7qFIXOaBej9qa9rTFcGTD5W4vKT /xYvjXu8bXOOaomSkfV73cAhWmqvH63Q/SbZ11su8PvyU3cgROrqr0YXxZp/Pr2xD6Tl iU6U4x0unHx0y+c6+gEqQpJJJ04v8n/7DMyJKynLiDPqNAMwy/lcNTy6pfADjiA0TSiK ETYWS36E6zYKWMc05lLI3mMj4B+62WRnwKzIfX3NNK/zaFGxesrAegn8Wd8cCPs0wOxV nXRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GIKKH3hb; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id 2si315870pgc.114.2018.03.13.09.07.23; Tue, 13 Mar 2018 09:07:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GIKKH3hb; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 0F1637891A; Tue, 13 Mar 2018 16:07:18 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-oi0-f66.google.com (mail-oi0-f66.google.com [209.85.218.66]) by mail.openembedded.org (Postfix) with ESMTP id 3E3DE78907 for ; Tue, 13 Mar 2018 16:07:15 +0000 (UTC) Received: by mail-oi0-f66.google.com with SMTP id e9so131404oii.0 for ; Tue, 13 Mar 2018 09:07:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HW3nQVDOyB5q/Hm6Wmh7G0dTLv+fsl2ocJxIL6JoMGU=; b=GIKKH3hbGP8PNd965KOsKThsbnCv+59W2qXo2kFDzFOsVgVMJ4kcHZSI3Y/plER7JO BRFDnQEEUprHh1cy9sXgExMzP3/vI41b1E1wX65lQr6HKwIgQvVQ8IvEYmk1+nKrOoIq AskwOvfHzsFQlwTqGU1m8+bQPwOQ8diVjTVkM= 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:mime-version :content-transfer-encoding; bh=HW3nQVDOyB5q/Hm6Wmh7G0dTLv+fsl2ocJxIL6JoMGU=; b=gnCbx3hvODVXsNWdNRWc6+sReqH895dY1zF4uK3ZZIaFTs3f4DIFFKneg/GdfqxKXU dblTql61PRPxnsvWRHCA4p03BGgsZmaqqeeHomdF0ix2BrxJlwDUdmUErJeObOELqkz8 VkgA6CXZOkne//sdzML5w+ty5QljR26qa0zreifv9Q2Uip23xt4l5EdRzqF88eRAD2ED NlvvCa7djAaukMIR53QPueK0VwWwfVE0U6825tWsgpshZmu1qiE/Cd4W2KjxR+FwlAKD bUpwNIyKGiZu2CqBAs70U3LKQAEKuQbLNm5k802D0+sq7NGpZvAJWDtUzCNDX8qcWjo7 f8SQ== X-Gm-Message-State: AElRT7HEUJZbzaWCMvqq+LuhQeIlaNzGuWoklFrKjFPSlnoyl/83/w1C YQhlfOaUPZJhMgQ+HYcCItUDFU4urhI= X-Received: by 10.202.236.15 with SMTP id k15mr804805oih.81.1520957236670; Tue, 13 Mar 2018 09:07:16 -0700 (PDT) Received: from localhost.localdomain (CableLink-187-161-113-185.PCs.InterCable.net. [187.161.113.185]) by smtp.googlemail.com with ESMTPSA id w15sm245570oie.58.2018.03.13.09.07.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Mar 2018 09:07:15 -0700 (PDT) From: =?utf-8?q?Daniel_D=C3=ADaz?= To: openembedded-core@lists.openembedded.org Date: Tue, 13 Mar 2018 10:06:53 -0600 Message-Id: <1520957214-5689-1-git-send-email-daniel.diaz@linaro.org> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Subject: [OE-core] [rocko] [PATCH 1/2] glibc: add missing TRAP_BRANCH/TRAP_HWBKPT definitions X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Fathi Boudra Patch submitted upstream, pending to be merged: https://sourceware.org/bugzilla/show_bug.cgi?id=21286 (From OE-Core rev: 11ebb5054e5ec1171ade90249e3a30ac8174a35a) Signed-off-by: Fathi Boudra Signed-off-by: Daniel Díaz Signed-off-by: Ross Burton --- ...o-consts.h-enum-definition-for-TRAP_HWBKP.patch | 69 ++++++++++++++++++++++ meta/recipes-core/glibc/glibc_2.26.bb | 1 + 2 files changed, 70 insertions(+) create mode 100644 meta/recipes-core/glibc/glibc/0029-bits-siginfo-consts.h-enum-definition-for-TRAP_HWBKP.patch diff --git a/meta/recipes-core/glibc/glibc/0029-bits-siginfo-consts.h-enum-definition-for-TRAP_HWBKP.patch b/meta/recipes-core/glibc/glibc/0029-bits-siginfo-consts.h-enum-definition-for-TRAP_HWBKP.patch new file mode 100644 index 0000000..436c847 --- /dev/null +++ b/meta/recipes-core/glibc/glibc/0029-bits-siginfo-consts.h-enum-definition-for-TRAP_HWBKP.patch @@ -0,0 +1,69 @@ +From af3054b3856379d353a779801678f330e1b58c9a Mon Sep 17 00:00:00 2001 +Message-Id: +From: Pratyush Anand +Date: Wed, 22 Mar 2017 17:02:38 +0530 +Subject: [PATCH] bits/siginfo-consts.h: enum definition for TRAP_HWBKPT is missing +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Compile following linux kernel test code with latest glibc: + +https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/testing/selftests/breakpoints/breakpoint_test_arm64.c + +and we get following error: +breakpoint_test_arm64.c: In function ‘run_test’: +breakpoint_test_arm64.c:171:25: error: ‘TRAP_HWBKPT’ undeclared (first use in this function) + if (siginfo.si_code != TRAP_HWBKPT) { + ^ +I can compile test code by modifying my local +/usr/include/bits/siginfo.h and test works great. Therefore, this patch +will be needed in upstream glibc so that issue is fixed there as well. + +Signed-off-by: Pratyush Anand + +Upstream-Status: Submitted [https://sourceware.org/bugzilla/show_bug.cgi?id=21286] +--- + bits/siginfo-consts.h | 6 +++++- + sysdeps/unix/sysv/linux/bits/siginfo-consts.h | 6 +++++- + 2 files changed, 10 insertions(+), 2 deletions(-) + +diff --git a/bits/siginfo-consts.h b/bits/siginfo-consts.h +index a58ac4b..8448fac 100644 +--- a/bits/siginfo-consts.h ++++ b/bits/siginfo-consts.h +@@ -106,8 +106,12 @@ enum + { + TRAP_BRKPT = 1, /* Process breakpoint. */ + # define TRAP_BRKPT TRAP_BRKPT +- TRAP_TRACE /* Process trace trap. */ ++ TRAP_TRACE, /* Process trace trap. */ + # define TRAP_TRACE TRAP_TRACE ++ TRAP_BRANCH, /* Process branch trap. */ ++# define TRAP_BRANCH TRAP_BRANCH ++ TRAP_HWBKPT /* hardware breakpoint/watchpoint */ ++# define TRAP_HWBKPT TRAP_HWBKPT + }; + # endif + +diff --git a/sysdeps/unix/sysv/linux/bits/siginfo-consts.h b/sysdeps/unix/sysv/linux/bits/siginfo-consts.h +index 525840c..57a9edb 100644 +--- a/sysdeps/unix/sysv/linux/bits/siginfo-consts.h ++++ b/sysdeps/unix/sysv/linux/bits/siginfo-consts.h +@@ -137,8 +137,12 @@ enum + { + TRAP_BRKPT = 1, /* Process breakpoint. */ + # define TRAP_BRKPT TRAP_BRKPT +- TRAP_TRACE /* Process trace trap. */ ++ TRAP_TRACE, /* Process trace trap. */ + # define TRAP_TRACE TRAP_TRACE ++ TRAP_BRANCH, /* Process branch trap. */ ++# define TRAP_BRANCH TRAP_BRANCH ++ TRAP_HWBKPT /* hardware breakpoint/watchpoint */ ++# define TRAP_HWBKPT TRAP_HWBKPT + }; + # endif + +-- +2.7.4 + diff --git a/meta/recipes-core/glibc/glibc_2.26.bb b/meta/recipes-core/glibc/glibc_2.26.bb index 464b654..30dfe4d 100644 --- a/meta/recipes-core/glibc/glibc_2.26.bb +++ b/meta/recipes-core/glibc/glibc_2.26.bb @@ -42,6 +42,7 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ file://0025-locale-fix-hard-coded-reference-to-gcc-E.patch \ file://0027-glibc-reset-dl-load-write-lock-after-forking.patch \ file://0028-Bug-4578-add-ld.so-lock-while-fork.patch \ + file://0029-bits-siginfo-consts.h-enum-definition-for-TRAP_HWBKP.patch \ " NATIVESDKFIXES ?= "" From patchwork Tue Mar 13 16:07:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Daniel_D=C3=ADaz?= X-Patchwork-Id: 131497 Delivered-To: patch@linaro.org Received: by 10.80.210.197 with SMTP id q5csp1017510edg; Tue, 13 Mar 2018 09:08:13 -0700 (PDT) X-Google-Smtp-Source: AG47ELs55PC3OwJZOtCRFMdlPU+xAo5CQ/Fd/U+1YTiEG4VideHfgcJUQXKxitsVY8owz7z2jnzN X-Received: by 10.98.215.2 with SMTP id b2mr1097560pfh.87.1520957293221; Tue, 13 Mar 2018 09:08:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520957293; cv=none; d=google.com; s=arc-20160816; b=PpoG2XgmVuBi6xEulQz6x4J6026i/nsKWdcLiYzrlfFDkKzcxWH/eaHvSTaIsp5VFt Ht4qU4LABtClE4ffm7ZFSSWx656xN0yiotZsrss+m8KOQSbjIvzn/2uJL5xlEkPl5j4B 4qmR5ZySW6MIEqKWSHn6ghoPuD8d+LEdGrx/aCwoH24nF7Iowyb/E+2C5wFF3IeAmz0z 25NNwwZQvY1cTYAPARN6V/OCwuXZgUSQf/Nb2/NCHYlIFeEHVOjkfVabOIsSx/pV2EOK 1Yw5kUHdEr49PJiQ+y6Dzma5Dby2KX2+AuiT/NyWg02QPZmC/Fz3+s57rzOfucEYnz7n ZGqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=NbloXmowUd7mJjBqg0Alb1r3DinmCjdQUd++nY5NPDw=; b=ofDezOUkFOVgXUY9eU8pGsnnjSF0tUAb5nmKnXVQBrtkUy8jGhvlOcPE22jogMmrLv r2WiJcDwgp/0LSoLiT8IPTkjUs9Dpn4j5nLJ3AnU8/3hG04UVbnu1+HP3zD1rE1udw6T jDNORanNn5ypaaYUOAP5H9rlwW5ZhqhEwkXIhpZgNDIHWv9cpzdH9ZdTfaEzg/oIwav6 w+GoPFRHSAeIiJ6XHEmgf17eX+gfoKW3PHwu0bZi8VP2m1FI7IXl1x1xgKEVzKGspI5i jHOyn8xjtghEXx5bfGBUZvX9cXc4BOeZOn0b1dUNrm8tYOhjjZvRVoXN2fDYpRdLM5pz DpaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Q7lrQ0S2; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id b187si311914pgc.205.2018.03.13.09.08.12; Tue, 13 Mar 2018 09:08:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Q7lrQ0S2; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id DAC8578944; Tue, 13 Mar 2018 16:08:10 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-oi0-f65.google.com (mail-oi0-f65.google.com [209.85.218.65]) by mail.openembedded.org (Postfix) with ESMTP id B102D78940 for ; Tue, 13 Mar 2018 16:08:09 +0000 (UTC) Received: by mail-oi0-f65.google.com with SMTP id a207so102464oii.10 for ; Tue, 13 Mar 2018 09:08:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JDvO8BaNuNcwV3mQktCj2i2HTrHYrqrDk5FlH2ao4fw=; b=Q7lrQ0S2UvwrIEjg5vUvK95Tt0+pwSWF4ub5f3J2nCaP/b1u/D1S03ws3Jkyh6e14x rkZeYxjPqlj7l1r0aAeD+DrT4ryg/txH4zZ3Zsq+UZn1RppgPDdrA6UxGEWSYoH1vQ2K R+FI8sI+NMDMut0clWIjr6NFMuRH8NeCGKMsA= 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=JDvO8BaNuNcwV3mQktCj2i2HTrHYrqrDk5FlH2ao4fw=; b=P+C+5oB6cKg8809PYHnYDjtdqbPQegCcH4bLU+uydFn+JqVW7nQQ6KIx3TaTNvXFum CvznxtitzOnZomOXNnr7BVv4Bz1VXYtLrh+9gt4MkRHPQwGTi7XKQJlcYNRcAzXz/ZhK rw9JnRupRvFiBnx7kknGwT0hAPnRuvHZ2MQVuNMJd/SYlwjk7MW+IQzTL19+dkYj6104 fca1x0xqydAHc00awBOKsIScshUMyTAcpIRXmTPITcxXz1Tv4aHW1X64uFOQzMSybC1i ExoQKCSi8p2nFkPiwz2G2qqpXK+o4qPHk0OCJBIzF5ZREfSjIO3nMnVAWDzE2ZE8gzE5 zs/g== X-Gm-Message-State: AElRT7EKtEJfJwUlbijD41mESbw8Il423ReKdF5vHV+F/G4u8RJZL4A6 ECZv5wk3CO3++jiFXA5cNJHfyWMZ3k0= X-Received: by 10.202.179.66 with SMTP id c63mr794520oif.115.1520957290370; Tue, 13 Mar 2018 09:08:10 -0700 (PDT) Received: from localhost.localdomain (CableLink-187-161-113-185.PCs.InterCable.net. [187.161.113.185]) by smtp.googlemail.com with ESMTPSA id x4sm307077otx.13.2018.03.13.09.08.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Mar 2018 09:08:09 -0700 (PDT) From: =?utf-8?q?Daniel_D=C3=ADaz?= To: openembedded-core@lists.openembedded.org Date: Tue, 13 Mar 2018 10:07:50 -0600 Message-Id: <1520957270-5866-2-git-send-email-daniel.diaz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520957214-5689-1-git-send-email-daniel.diaz@linaro.org> References: <1520957214-5689-1-git-send-email-daniel.diaz@linaro.org> MIME-Version: 1.0 Subject: [OE-core] [rocko] [PATCH 2/2] gdb: fix header ordering for TRAP_HWBKPT X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org This error can appear in gdb/nat/linux-ptrace.c because of the order in which some headers are processed: | In file included from ../../gdb-7.11.1/gdb/nat/linux-ptrace.c:20:0: | ../../gdb-7.11.1/gdb/nat/linux-ptrace.h:175:22: error: expected identifier before numeric constant | # define TRAP_HWBKPT 4 | ^ | Makefile:2357: recipe for target 'linux-ptrace.o' failed | make[2]: *** [linux-ptrace.o] Error 1 | make[2]: *** Waiting for unfinished jobs.... | make[2]: Leaving directory '/oe/build/tmp-rpb-glibc/work/aarch64-linaro-linux/gdb/7.11.1-r0/build-aarch64-linaro-linux/gdb' | Makefile:8822: recipe for target 'all-gdb' failed | make[1]: *** [all-gdb] Error 2 | make[1]: Leaving directory '/oe/build/tmp-rpb-glibc/work/aarch64-linaro-linux/gdb/7.11.1-r0/build-aarch64-linaro-linux' | Makefile:846: recipe for target 'all' failed | make: *** [all] Error 2 A patch from GDB's current master solves the issue. (From OE-Core rev: 4aaf747099714ec11158571527396ed9e818729e) Signed-off-by: Daniel Díaz Signed-off-by: Ross Burton --- meta/recipes-devtools/gdb/gdb-8.0.inc | 1 + ...4-defining-TRAP_HWBKPT-before-including-g.patch | 56 ++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 meta/recipes-devtools/gdb/gdb/gdb-Fix-ia64-defining-TRAP_HWBKPT-before-including-g.patch diff --git a/meta/recipes-devtools/gdb/gdb-8.0.inc b/meta/recipes-devtools/gdb/gdb-8.0.inc index fba32ce..227abd9 100644 --- a/meta/recipes-devtools/gdb/gdb-8.0.inc +++ b/meta/recipes-devtools/gdb/gdb-8.0.inc @@ -16,6 +16,7 @@ SRC_URI = "http://ftp.gnu.org/gnu/gdb/gdb-${PV}.tar.xz \ file://0009-Change-order-of-CFLAGS.patch \ file://0010-resolve-restrict-keyword-conflict.patch \ file://package_devel_gdb_patches_120-sigprocmask-invalid-call.patch \ + file://gdb-Fix-ia64-defining-TRAP_HWBKPT-before-including-g.patch \ " SRC_URI[md5sum] = "c3d35cd949084be53b92cc1e03485f88" SRC_URI[sha256sum] = "f6a24ffe4917e67014ef9273eb8b547cb96a13e5ca74895b06d683b391f3f4ee" diff --git a/meta/recipes-devtools/gdb/gdb/gdb-Fix-ia64-defining-TRAP_HWBKPT-before-including-g.patch b/meta/recipes-devtools/gdb/gdb/gdb-Fix-ia64-defining-TRAP_HWBKPT-before-including-g.patch new file mode 100644 index 0000000..ef97de7 --- /dev/null +++ b/meta/recipes-devtools/gdb/gdb/gdb-Fix-ia64-defining-TRAP_HWBKPT-before-including-g.patch @@ -0,0 +1,56 @@ +From b033a9663053eed87cb572397176747b88e9a699 Mon Sep 17 00:00:00 2001 +From: James Clarke +Date: Fri, 19 Jan 2018 17:22:49 +0000 +Subject: [PATCH] gdb: Fix ia64 defining TRAP_HWBKPT before including + gdb_wait.h +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +On ia64, gdb_wait.h eventually includes siginfo-consts-arch.h, which +contains an enum with TRAP_HWBKPT, along with a #define. Thus we cannot +define TRAP_HWBKPT to 4 beforehand, and so gdb_wait.h must be included +earlier; include it from linux-ptrace.h so it can never come afterwards. + +gdb/ChangeLog: + + * nat/linux-ptrace.c: Remove unnecessary reinclusion of + gdb_ptrace.h, and move including gdb_wait.h ... + * nat/linux-ptrace.h: ... to here. + +Upstream-Status: Accepted [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=5a6c3296a7a90694ad4042f6256f3da6d4fa4ee8] + +Signed-off-by: Daniel Díaz +--- + gdb/nat/linux-ptrace.c | 2 -- + gdb/nat/linux-ptrace.h | 1 + + 2 files changed, 1 insertion(+), 2 deletions(-) + +diff --git a/gdb/nat/linux-ptrace.c b/gdb/nat/linux-ptrace.c +index 3265b16..559c2de 100644 +--- a/gdb/nat/linux-ptrace.c ++++ b/gdb/nat/linux-ptrace.c +@@ -21,8 +21,6 @@ + #include "linux-procfs.h" + #include "linux-waitpid.h" + #include "buffer.h" +-#include "gdb_wait.h" +-#include "gdb_ptrace.h" + #ifdef HAVE_SYS_PROCFS_H + #include + #endif +diff --git a/gdb/nat/linux-ptrace.h b/gdb/nat/linux-ptrace.h +index 5954945..6faa89b 100644 +--- a/gdb/nat/linux-ptrace.h ++++ b/gdb/nat/linux-ptrace.h +@@ -21,6 +21,7 @@ + struct buffer; + + #include "nat/gdb_ptrace.h" ++#include "gdb_wait.h" + + #ifdef __UCLIBC__ + #if !(defined(__UCLIBC_HAS_MMU__) || defined(__ARCH_HAS_MMU__)) +-- +2.7.4 +