From patchwork Fri Sep 28 14:49:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Benson X-Patchwork-Id: 29570 Received: (qmail 69170 invoked by alias); 28 Sep 2018 14:50:17 -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 69023 invoked by uid 89); 28 Sep 2018 14:50:15 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1020 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 28 Sep 2018 14:50:14 +0000 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 855CA30B8FB2 for ; Fri, 28 Sep 2018 14:50:13 +0000 (UTC) Received: from blade.nx (ovpn-117-194.ams2.redhat.com [10.36.117.194]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4F4AC600C1 for ; Fri, 28 Sep 2018 14:50:13 +0000 (UTC) Received: from blade.com (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id 6CC9080B0923 for ; Fri, 28 Sep 2018 15:50:12 +0100 (BST) From: Gary Benson To: gdb-patches@sourceware.org Subject: [PATCH 3/5] Update GDB gdb_proc_service.h workaround to match gdbserver Date: Fri, 28 Sep 2018 15:49:59 +0100 Message-Id: <1538146201-16374-4-git-send-email-gbenson@redhat.com> In-Reply-To: <1538146201-16374-1-git-send-email-gbenson@redhat.com> References: <1538146201-16374-1-git-send-email-gbenson@redhat.com> X-IsSubscribed: yes This commit updates GDB's gdb_proc_service.h to use elf_{g,fp}regset_t instead of gdb_{g,fp}regset_t if pr{g,fp}regset_t are undefined. The types have been equivalent on GNU/Linux since at least 2005. gdb/ChangeLog: * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is undefined. Use elf_fpregset_t if prfpregset_t is undefined. --- gdb/ChangeLog | 5 +++++ gdb/gdb_proc_service.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/gdb_proc_service.h b/gdb/gdb_proc_service.h index ee9358d..16cf512 100644 --- a/gdb/gdb_proc_service.h +++ b/gdb/gdb_proc_service.h @@ -96,11 +96,11 @@ typedef void *psaddr_t; #endif #ifndef HAVE_PRGREGSET_T -typedef gdb_gregset_t prgregset_t; +typedef elf_gregset_t prgregset_t; #endif #ifndef HAVE_PRFPREGSET_T -typedef gdb_fpregset_t prfpregset_t; +typedef elf_fpregset_t prfpregset_t; #endif /* This type is opaque in this interface. It's defined by the user of