From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id QfTpMQaWZGrdviwAWB0awg (envelope-from ) for ; Sat, 25 Jul 2026 06:55:02 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=YU6etoK8; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id BBBA61E09E; Sat, 25 Jul 2026 06:55:02 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id A8B8E1E099 for ; Sat, 25 Jul 2026 06:54:59 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C52844BA2E18 for ; Sat, 25 Jul 2026 10:54:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C52844BA2E18 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=YU6etoK8 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by sourceware.org (Postfix) with ESMTPS id E26FF4BA2E15 for ; Sat, 25 Jul 2026 10:54:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E26FF4BA2E15 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 E26FF4BA2E15 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784976872; cv=none; b=Y3+K9BYEtn1Z3HVco7c/vSrbfS/MX4N5ppbYPhv0qa9KVCSo+Aswrc/sKEcLe7zENjt+RXde9aTd1UYYHw5igEpjuqHcQzExy9Oln1eez5a5KxGSBVXOVnoqrogNa44hIBhGPg8Ll+6QwwBV12BxP7F69pccdImCD+7aw8V5RgQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784976872; c=relaxed/simple; bh=AiTlRIZIEtr9Wm9Lpx1HnECQULtwM6V2gU+g1B9jIMk=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=vSY+NZQSFM4sOjalbhUSnv2HI1NzMe7ZzVo4TcTdpheJfqFsMSE+Gf1f6Yh0oq0kJP5ztF6CXNV6fniV9hnUPML95F2RqhB5YSyMLdVZ1qWKZ+Hd20rBxeB5h37+1lhDzLOFBatkxdBa7HUr9qSJ3wG++untQDoB9FPLSDEH/A0= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=YU6etoK8 DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E26FF4BA2E15 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1784976872; x=1816512872; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=AiTlRIZIEtr9Wm9Lpx1HnECQULtwM6V2gU+g1B9jIMk=; b=YU6etoK8RFCzbKC5zg/dFqSbEgtckIsX+KVebVaAvN52hCrzHSZBeGhw nAti+BPrmRxCcPeTZJFFzEGdY5z7cYZdwurPV2NECgahAStTePgztzUQK /fx5HD40fvtrMWl6m6IzVIHaReW27lLH4FepGs1gM0pADaiqKIhs3iTrc 7wGSRPObpK2lScEFk/YDjkxcOl5FCAYrqdpnX+ugC3HYpw90OGlC6TOiz f9WKbBCcAWrTSqL7yYvOR0A7IvzSX2uPFh+8lLuKNXNwXQQAJmV1ma6dU eqlLUv1zPKUJTv9lgX2eXtsCZA+ZIVG/NEmuYuwXhZRxsNLQyYqh5lcGX w==; X-CSE-ConnectionGUID: HKvBnjswQTyyGFoedaVfjQ== X-CSE-MsgGUID: 9ZK2PljpQJSWqVMOsfvyNA== X-IronPort-AV: E=McAfee;i="6800,10657,11855"; a="95981045" X-IronPort-AV: E=Sophos;i="6.25,184,1779174000"; d="scan'208";a="95981045" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jul 2026 03:54:30 -0700 X-CSE-ConnectionGUID: sOBWyodFSnWX8+Snt8Vysg== X-CSE-MsgGUID: 39EfIj+LS/SatO0qxpCpjg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,184,1779174000"; d="scan'208";a="257170402" Received: from gkldtt-dev-004.igk.intel.com (HELO localhost) ([10.123.221.202]) by orviesa006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jul 2026 03:54:29 -0700 From: Christina Joos To: gdb-patches@sourceware.org Cc: keiths@redhat.com Subject: [PATCH 0/1] Add Intel APX support Date: Sat, 25 Jul 2026 10:53:34 +0000 Message-Id: <20260725105335.2664219-1-christina.joos@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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~public-inbox=simark.ca@sourceware.org Hi all, this is my v2 for Intel APX support. V1 can be found here: https://sourceware.org/pipermail/gdb-patches/2026-June/227755.html Changes since v1: - Refactored the APX tests to simplify them - Added actual linux corefile testing, as indicated here: https://sourceware.org/pipermail/gdb-patches/2026-July/228568.html - Dropped the patch "gdb: add maintenance set/show gcore xml-target-description command" for the maintenance command - Fixed some nits in the actual gdb code, also based on Keith's feedback, but no functional changes - Fixed the "apx" naming -> "Intel APX" - Fixed the documentation according to Eli's feedback - Fixed copyright year - Changed the co-author to my new name (Joos) I am looking forward to your feedback! Christina H.J. Lu (1): gdb, gdbserver: Add Intel APX register support gdb/NEWS | 4 + gdb/amd64-linux-tdep.c | 2 + gdb/amd64-tdep.c | 262 ++++++++++++++---- gdb/amd64-tdep.h | 2 + gdb/arch/amd64.c | 4 + gdb/arch/x86-linux-tdesc-features.c | 1 + gdb/doc/gdb.texinfo | 5 + gdb/features/Makefile | 1 + gdb/features/i386/64bit-apx.c | 29 ++ gdb/features/i386/64bit-apx.xml | 26 ++ gdb/i386-tdep.c | 32 ++- gdb/i386-tdep.h | 26 ++ gdb/i387-tdep.c | 105 ++++++- gdb/i387-tdep.h | 6 + gdb/nat/x86-xstate.c | 1 + gdb/target-debug.h | 1 + gdb/testsuite/gdb.arch/amd64-apx-core.c | 88 ++++++ gdb/testsuite/gdb.arch/amd64-apx-corefile.c | 71 +++++ gdb/testsuite/gdb.arch/amd64-apx-corefile.exp | 67 +++++ gdb/testsuite/gdb.arch/amd64-apx.c | 66 +++++ gdb/testsuite/gdb.arch/amd64-apx.exp | 77 +++++ gdb/testsuite/lib/gdb.exp | 58 ++++ gdbserver/i387-fp.cc | 43 +++ gdbserver/linux-x86-low.cc | 4 +- gdbsupport/x86-xstate.h | 12 +- 25 files changed, 931 insertions(+), 62 deletions(-) create mode 100644 gdb/features/i386/64bit-apx.c create mode 100644 gdb/features/i386/64bit-apx.xml create mode 100644 gdb/testsuite/gdb.arch/amd64-apx-core.c create mode 100644 gdb/testsuite/gdb.arch/amd64-apx-corefile.c create mode 100644 gdb/testsuite/gdb.arch/amd64-apx-corefile.exp create mode 100644 gdb/testsuite/gdb.arch/amd64-apx.c create mode 100644 gdb/testsuite/gdb.arch/amd64-apx.exp -- 2.34.1 Intel Deutschland GmbH Registered Address: Dornacher Strasse 1, 85622 Feldkirchen, Germany Tel: +49 89 991 430, www.intel.de Managing Directors: Harry Demas, Jeffrey Schneiderman, Yin Chong Sorrell Chairperson of the Supervisory Board: Nicole Lau Registered Seat: Munich Commercial Register: Amtsgericht Muenchen HRB 186928