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 X-Patchwork-Id: 14718 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(-) 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 *);