From patchwork Wed Aug 17 19:54:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 74130 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp6147qga; Wed, 17 Aug 2016 12:54:43 -0700 (PDT) X-Received: by 10.98.196.138 with SMTP id h10mr77941045pfk.60.1471463683624; Wed, 17 Aug 2016 12:54:43 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id fk10si614655pab.272.2016.08.17.12.54.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Aug 2016 12:54:43 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-72621-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of libc-alpha-return-72621-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-72621-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=nhSt+n/GNBDV1SAVrNOIlzCAaxOds1ns7Aqdm5rC0UI5D7Iu6XLtu +wDqemSf9GAmDtd9541QF0vapnzpe0r786HQJnAD/sSXVSW3R9W6ps0vXhKEZGQB MIiwUb8WQYbY6edcapb2GdUZ1G+sVU4FBDSaoL2uWa+ffcfFYcLocY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; s=default; bh=CvVQRGBU4bLXVlDnhzgiKhBihkM=; b=hq5S/wDLNckad3RWZNFpmY5u2bgR 8Gwlgde86LrMPa53NUGjI5iwmrVahTnyGDr632oTvDGnuwHgSSttQKQMi+4Bs59r ioEZC59MGTqxYGKKrvWtRATeClNTze99FHHcUJXHtxU6hZR8K1Ktz8eRyF88ISKq dV+4PEIBo6NPqf8= Received: (qmail 675 invoked by alias); 17 Aug 2016 19:54:33 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 663 invoked by uid 89); 17 Aug 2016 19:54:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=sl, per-thread, perthread X-HELO: mail-yw0-f172.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=AMvFIbaIdq7cJGe+MgqKZU9D8ZpFHciffQq+fd2SAHU=; b=lujHSlRqFiZHpuyG+7FtYGRjKQRyaBQbUYgQdnuVJkDOdYUPdwYzbytZS2Iiir4XVc i3lVtc7rrZ/aPyyzkcFtm6hXrOXP4PExawPwwWywenJ+SHI7i6c+70Es+V049dDp2n6+ m8Eh9TKIc0GoV4jD0wMKwPaf4ogUs5jYTgqC3fnYHn1tXMZwOVRpESVQAzSdcH/gkp9x +okE0mMznZhmuqNgrz8XUN0yW9rCS4HU9OueKueIyMSQIP3zhntbALUBVIvQbBYKk8yE J7V6C+zmtu50Q70ff1BwiwHpl5D4w9Z0to2Cz3LjTdbdTQ0WN4gabLjuBoQPtMFPcBPR zYuQ== X-Gm-Message-State: AEkoousk7dqy0M+Uw7YFMF+5ZGwpyCr6DgYLDRmVBfVc9C8PPzaTP7dngqG88NBZNb3Yv2jG X-Received: by 10.129.178.5 with SMTP id q5mr6014713ywh.246.1471463661037; Wed, 17 Aug 2016 12:54:21 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH] Sync proc_service.h ps_get_thread_area definition with GDB Date: Wed, 17 Aug 2016 16:54:16 -0300 Message-Id: <1471463656-16530-1-git-send-email-adhemerval.zanella@linaro.org> Commit "Update and install proc_service.h [BZ #20311]" (b381a388) removed some extraneous 'const' from ps_{s,l}{stop,continue}, however it wrongly removed 'const' from ps_get_thread_area. With current definition GDB fails to build against glibc master with a conflicting type. This patch sync with GDB definition on 'gdb/gdb_proc_service.h'. * nptl_db/proc_service.h (ps_get_thread_area): Add const on struct ps_prochandle argument. --- ChangeLog | 5 +++++ nptl_db/proc_service.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/nptl_db/proc_service.h b/nptl_db/proc_service.h index 109962d..6b2e7ff 100644 --- a/nptl_db/proc_service.h +++ b/nptl_db/proc_service.h @@ -69,7 +69,7 @@ extern pid_t ps_getpid (struct ps_prochandle *); /* Fetch the special per-thread address associated with the given LWP. This call is only used on a few platforms (most use a normal register). The meaning of the `int' parameter is machine-dependent. */ -extern ps_err_e ps_get_thread_area (struct ps_prochandle *, +extern ps_err_e ps_get_thread_area (const struct ps_prochandle *, lwpid_t, int, psaddr_t *);