From patchwork Thu Jul 4 10:17:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schimpe, Christina" X-Patchwork-Id: 57183 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E1F88384A44F for ; Thu, 4 Jul 2024 10:19:12 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) by sourceware.org (Postfix) with ESMTPS id 213D03858C41 for ; Thu, 4 Jul 2024 10:18:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 213D03858C41 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 213D03858C41 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=198.175.65.18 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720088316; cv=none; b=M+fVXwniR3U89XlcU6ZGY0kDFD7fVu8OD0QgkRO+nnDbHuUyiW7pNJhYudoRNlqKru3M9vSK6HI5DIO3qk290W3epg+AuuM035dp8v0egJj2C1+GxggQb1C89CQiwCtV2BH62VB6cT5QugXS77T1peOE9kn/Mk3nCjKkyMeueik= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720088316; c=relaxed/simple; bh=P/jDkTwDhwqxX52IHQaFGC7Pu4cKtqcnvOApdklmUdg=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=Ee1EJy8II7MrdNqExS8KEwuSb3dZqa2DmzC2gj3eCNpFnyiQhm96uUHmAhcvmijq+gOc8HPsdpnq1RzkEVpvioj8W492+fUT8aHx7AHZ/ic8jBEVEBBQmpMNN9dbdTBQpVaouyWannc/h3q5fWo90feYJ34z/rvcLoCJBIHndl0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1720088314; x=1751624314; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=P/jDkTwDhwqxX52IHQaFGC7Pu4cKtqcnvOApdklmUdg=; b=O5GpVG1XNrtfouLHG2TzomefsF91Vw285bnAhvMJoYIA3CBbL7+musA0 Ojoc6x5Jd9F/uGb/Or0STN5JjLQ18MhuYv33OnFeSMQQk1ZTWH/67pvzY Q48BsVL9muObzmHWzj12xoqdvLO2yyfL0i2rIWScrfdDeRZVcZJHEPVtT /WX4PC6ZDJZIJFq6HCHzGthNGAI3BpsWueqbpd1tkItMHqFG6V3wyqwbd uMXPTPltXQop76aSzxEseE3RTBemQP0d7OTwFBXUNRbyzf9KaR4pxyV9T sOp0e3uIhzRKuolIKM3KK3CGH0jJzIy6OobqGpZDrFOhoG5wRU1rV1FAe w==; X-CSE-ConnectionGUID: 7qZlGxfZTO+tSHtFRkP4hw== X-CSE-MsgGUID: lSHdrjW5TAyE5vJ8U4pXRQ== X-IronPort-AV: E=McAfee;i="6700,10204,11122"; a="17501272" X-IronPort-AV: E=Sophos;i="6.09,183,1716274800"; d="scan'208";a="17501272" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2024 03:18:33 -0700 X-CSE-ConnectionGUID: qCZUaeLcTvyPRwlWNb7shg== X-CSE-MsgGUID: Cm5974jyRAqiYJE5oq8tLw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,183,1716274800"; d="scan'208";a="50999746" Received: from gkldtt-dev-004.igk.intel.com (HELO localhost) ([10.123.221.202]) by fmviesa005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2024 03:18:31 -0700 From: "Schimpe, Christina" To: gdb-patches@sourceware.org Cc: felix.willgerodt@intel.com, luis.machado@arm.com Subject: [PATCH v4 0/2] Add amd64 LAM watchpoint support Date: Thu, 4 Jul 2024 10:17:34 +0000 Message-Id: <20240704101736.3074236-1-christina.schimpe@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~patchwork=sourceware.org@sourceware.org Hi all, this is my v4 of the series "Add amd64 LAM watchpoint support". It implements the latest feedback of Felix. The NEWS part has already been approved by Eli. Changes since V3: * Improve error handling. * Removed unnecessary comment. v3 of this series can be found here: https://sourceware.org/pipermail/gdb-patches/2024-June/210056.html Best Regards Christina Christina Schimpe (2): gdb: Make tagged pointer support configurable. LAM: Enable tagged pointer support for watchpoints. gdb/NEWS | 2 + gdb/aarch64-linux-nat.c | 2 +- gdb/aarch64-linux-tdep.c | 13 +++--- gdb/aarch64-tdep.c | 17 ++++--- gdb/aarch64-tdep.h | 6 +++ gdb/amd64-linux-tdep.c | 64 +++++++++++++++++++++++++++ gdb/breakpoint.c | 5 ++- gdb/gdbarch-gen.h | 49 ++++++++++++++++----- gdb/gdbarch.c | 66 +++++++++++++++++++++++----- gdb/gdbarch_components.py | 53 ++++++++++++++++++---- gdb/target.c | 3 +- gdb/testsuite/gdb.arch/amd64-lam.c | 49 +++++++++++++++++++++ gdb/testsuite/gdb.arch/amd64-lam.exp | 46 +++++++++++++++++++ gdb/testsuite/lib/gdb.exp | 63 ++++++++++++++++++++++++++ 14 files changed, 392 insertions(+), 46 deletions(-) create mode 100755 gdb/testsuite/gdb.arch/amd64-lam.c create mode 100644 gdb/testsuite/gdb.arch/amd64-lam.exp