From patchwork Mon Jan 13 17:25:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Machado X-Patchwork-Id: 182805 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp4390181ile; Mon, 13 Jan 2020 09:25:40 -0800 (PST) X-Google-Smtp-Source: APXvYqytvf1bCDWG3I/98q4MJHj6Z5lyOUAPBoP7YHXBh1heUdCqHxT8ZGKdohOQV4qGGfSdb47N X-Received: by 2002:aca:f2c5:: with SMTP id q188mr13839119oih.113.1578936340498; Mon, 13 Jan 2020 09:25:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578936340; cv=none; d=google.com; s=arc-20160816; b=R9p5nIiT/uiHmy9X0b2yVt1lMDSIF3uR/m2gXpOjPbegUANRqG5op8NYGfXFjv6V6e sClAQ4CSOI7zUjGbevVKoAFPgc+vK8nCe9r9JSODK0gx19BhwvPKXqsuXEIcCBvRRV0v zTtLaovNb09WaR69l+TXECHLqW39l9CRYg9e66Y9Ayb9k3vA1xHtbvwQlPAVi0SQ+NvS Md3UALIbQHXVF+HGOgCo15J8CrONrEbWmMxBh8Bj8jxEKhGuEcCmf8+JjYHD+wwoGD+4 +dhLeQ+HEwhl309ySnGOT8gUsPk/AJJpWXVfp/LqBJ0UNdeJdK6panJkOPuGp8vc/NJy 3IUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature:delivered-to :sender:list-help:list-post:list-archive:list-subscribe :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature; bh=tSEB1E9u0CtEosLddn01O9JDtN8u9PM0haTkXRZbSQo=; b=xZXlhsz+pOZicv/JXO4Pcjhky6t7twj45yNY8rUFkPcJJdSfLM9YFZuRaxYOTUw34/ 4RzBpcCO64poa2tYm2w5k7WAGbwmpEo1fkHmzA3XZjcQw0PW3cIctuJTgnnYZ2aAqtII IuGz6K2jJBIN+d9wzkRn7Cmi2eW7m0cr6qYH6IF9alU9gxwzMqk5Dt5edwymoL45hbt9 DEoL3o5+cCcba6fKPIrAYaGjDjkfuzFAjxkvTm+NiDIvCpUiFHuWq6XknWtZ50fJQN6D RtGx1yyWG6q1rYJsUOVn4j9HMSIE5Wa6twMRjJ+JDuqhfCRRGQSJFeWwPe1bsGXTlj+8 m/7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b="oSukgT/F"; dkim=pass header.i=@linaro.org header.s=google header.b=v9zceZMT; spf=pass (google.com: domain of gdb-patches-return-163020-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gdb-patches-return-163020-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id v76si6341710oif.207.2020.01.13.09.25.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Jan 2020 09:25:40 -0800 (PST) Received-SPF: pass (google.com: domain of gdb-patches-return-163020-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 header.s=default header.b="oSukgT/F"; dkim=pass header.i=@linaro.org header.s=google header.b=v9zceZMT; spf=pass (google.com: domain of gdb-patches-return-163020-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gdb-patches-return-163020-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=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:cc:subject:date:message-id; q=dns; s= default; b=LuvZY69DlFVuxWY8e9a489Sxae2qxKJkjCUO+XbXEcJVO5qyFfNHB wujKl02oLOFJ2IfT+PgmQVG2cqRGzDP2/PiyUwt9oP1LSRbFohp0mXGuu572+yjT TgFrMvbIMYl6bZov1ACCJA0Oyc/A9eZ3ykrNzSDJQ0D6aAAb4figso= 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:cc:subject:date:message-id; s=default; bh=kRUsPRsJZcwpPzaEwTbvFNzH9Rg=; b=oSukgT/FXaCjSb0DBtO3etFpdOyd RtY3divpcd6alMXkQ5omwjfBaryKv/RvgzHZKTrNDPMC9fB52h7jK9TBmMuoIJeb 2Uh7UxddEpN7iiq6fYA7ABa9/8S7Cf5rPCjDwZO/Q7LSBlXQOFngQy4BDgzCp6Ww hceUN6XR4mqPhNk= Received: (qmail 39905 invoked by alias); 13 Jan 2020 17:25:34 -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 39897 invoked by uid 89); 13 Jan 2020 17:25:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-19.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:860 X-HELO: mail-qk1-f172.google.com Received: from mail-qk1-f172.google.com (HELO mail-qk1-f172.google.com) (209.85.222.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 13 Jan 2020 17:25:33 +0000 Received: by mail-qk1-f172.google.com with SMTP id z76so9251239qka.2 for ; Mon, 13 Jan 2020 09:25:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=tSEB1E9u0CtEosLddn01O9JDtN8u9PM0haTkXRZbSQo=; b=v9zceZMTUZ0HopRP+9yFMLwlRbhLxEi5X96vfSN+900YwZFDxd4aYBVFbLwOd+MUe0 vl9Nhk3Cp4z6RK147LFWZs8IDZOi/oirHg9WHGWWV7WJIVP9Zi+L/c2DfuTdp1KcgzI1 j0A5wF6UAUw/wQYN1xyqcjV8UQxTovmmIK/DOtN/XCEE1baSu8Irm2atklEe1+Wco8y5 EFTIDmM02NPxiYRYl4Em58/ZTs6DFRaPp38ujIDF8WQSi8GBBeLnKa6qwegSEN2uTvB3 1v4NMEY2qK/WZhm+gPhuUl76dCBfAT96M7snTp+yI/9jmpo1p7W+tOLHfMFFfqKovu/5 bWVQ== Return-Path: Received: from localhost.localdomain ([179.183.9.215]) by smtp.gmail.com with ESMTPSA id n1sm5189622qkk.122.2020.01.13.09.25.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jan 2020 09:25:30 -0800 (PST) From: Luis Machado To: gdb-patches@sourceware.org Cc: alan.hayward@arm.com, tankut.baris.aktemur@intel.com Subject: [PATCH 0/2,v2][AArch64]Handle additional brk instruction patterns Date: Mon, 13 Jan 2020 14:25:22 -0300 Message-Id: <20200113172524.7201-1-luis.machado@linaro.org> X-IsSubscribed: yes This patch teaches GDB how to handle additional breakpoint instruction patterns for aarch64. Luis Machado (2): [AArch64] Recognize more program breakpoint patterns [AArch64] Test handling of additional brk instruction patterns gdb/aarch64-tdep.c | 39 +++++++++++ gdb/arch-utils.c | 37 ++++++++++ gdb/arch-utils.h | 4 ++ gdb/breakpoint.c | 46 ++----------- gdb/breakpoint.h | 5 -- gdb/gdbarch.c | 23 +++++++ gdb/gdbarch.h | 7 ++ gdb/gdbarch.sh | 4 ++ gdb/infrun.c | 4 +- gdb/testsuite/gdb.arch/aarch64-brk-patterns.c | 30 +++++++++ .../gdb.arch/aarch64-brk-patterns.exp | 67 +++++++++++++++++++ 11 files changed, 220 insertions(+), 46 deletions(-) create mode 100644 gdb/testsuite/gdb.arch/aarch64-brk-patterns.c create mode 100644 gdb/testsuite/gdb.arch/aarch64-brk-patterns.exp -- 2.17.1