From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115410 invoked by alias); 11 Jun 2018 02:43:12 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 115387 invoked by uid 89); 11 Jun 2018 02:43:10 -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,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: simark.ca Received: from simark.ca (HELO simark.ca) (158.69.221.121) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 11 Jun 2018 02:43:09 +0000 Received: from [10.0.0.11] (unknown [192.222.164.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 71FC91E02D; Sun, 10 Jun 2018 22:43:07 -0400 (EDT) Subject: Re: [PATCH v2 09/10] Ptrace support for AArch64 SVE gdbsever To: Alan Hayward , gdb-patches@sourceware.org Cc: nd@arm.com References: <20180606151629.36602-1-alan.hayward@arm.com> <20180606151629.36602-10-alan.hayward@arm.com> From: Simon Marchi Message-ID: <5f2e579e-7cd8-f810-da1d-b74303f21990@simark.ca> Date: Mon, 11 Jun 2018 02:43:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180606151629.36602-10-alan.hayward@arm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2018-06/txt/msg00269.txt.bz2 On 2018-06-06 11:16 AM, Alan Hayward wrote: > Add checks to detect SVE tdesc. Easiest way to do this is by checking the > size of the vector registers. > > Use the common aarch64 ptrace copy functions for reading/writing registers. > A wrapper is required due to the common functions using reg_buffer_common. Hi Alan, There are macros not defined in the headers adde in patch 2/10, so I get this since I build against the headers of an older kernel: CXX linux-aarch64-low.o /home/simark/src/binutils-gdb/gdb/gdbserver/linux-aarch64-low.c:559:38: error: 'SVE_PT_REGS_SVE' was not declared in this scope SVE_PT_SIZE (AARCH64_MAX_SVE_VQ, SVE_PT_REGS_SVE), EXTENDED_REGS, ^~~~~~~~~~~~~~~ /home/simark/src/binutils-gdb/gdb/gdbserver/linux-aarch64-low.c:559:53: error: 'SVE_PT_SIZE' was not declared in this scope SVE_PT_SIZE (AARCH64_MAX_SVE_VQ, SVE_PT_REGS_SVE), EXTENDED_REGS, If we decide not to include the Linux kernel header replacements in the GDB tree, it's not an issue. Simon