From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 8aUJH2d1fGoxkyAAWB0awg (envelope-from ) for ; Wed, 12 Aug 2026 09:30:15 -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=RQaH2tHp; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 7800E1E167; Wed, 12 Aug 2026 09:30:15 -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 B19111E09E for ; Wed, 12 Aug 2026 09:30:14 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 71A384BB3BB2 for ; Wed, 12 Aug 2026 13:30:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 71A384BB3BB2 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=RQaH2tHp Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) by sourceware.org (Postfix) with ESMTPS id 95E754BAE7DE for ; Wed, 12 Aug 2026 13:28:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 95E754BAE7DE 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 95E754BAE7DE Authentication-Results: sourceware.org; arc=none smtp.remote-ip=192.198.163.10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1786541297; cv=none; b=sjzu/Nam7Ff35Nmka23yLgndaDXop1DS/IvSaGy5fxAoWGWhhvyhE0jFlQyu8K7hlQHfgj22N+e5CLZ07qP0SZzCLCPoFF9OBZEJBC78IrD6ZdcdSjsP8hxGCiAvzF7rs+zylJa/100Mpiye40DKkeFgoKMafinXEPWEpZcbPwI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1786541297; c=relaxed/simple; bh=IN4ibHDXUgZOJQtDRoAX2spqg44fzUd/R1L8E1xES8I=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=gXjsBlRYr+LX1qip5eOanckBnh2F/SKN5H+Cuo0FUxFJrQ2hBEPHaBuyFllDeIXUtECFE6grkFXySwaaXytwoG56LCPFE/jCRnxhi8ug5x3H6FVlJS16kgjUugtFwglpq/fFvIo7KyFWloxjW+Vl4sfopt7KdJssagPCG/ZxrEc= 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=RQaH2tHp DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 95E754BAE7DE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1786541298; x=1818077298; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=IN4ibHDXUgZOJQtDRoAX2spqg44fzUd/R1L8E1xES8I=; b=RQaH2tHpakzt4QnN0B9fEpGCLV9/8UC5d2bHNzn4YDbaD4Z4SUOxqcs5 oFDhzVCHgejvMIICBrIrO3BWMtQJ/lf54nu6FL0JCU7zvuuH/K9Y5sE86 Aa5FwHXNNFzoAv7p+CiKI5lCMqH36EU3p2p4Sv7vOoCVNW2MJGticpMXu dR00XXKY0YcvtBEtAN88MQqYJsrvx8VudKIV1j0JxjCJDWMcLNBcl0Y4G +hB3Ous6jLMTodtoYpidc4BoKLDHB+g7VjKhULyOP2rzmQfJTvqZDsFAI pfIw6l+I/RsvFCJBR9yMA+iaQYV8+dihJGS4pxyPTfFsYtfqoZ5WphpDr g==; X-CSE-ConnectionGUID: I7wkke68SIqSTdgqkaGclw== X-CSE-MsgGUID: sGzILG/CT8KxNwsbXwAFog== X-IronPort-AV: E=McAfee;i="6800,10657,11872"; a="98457619" X-IronPort-AV: E=Sophos;i="6.25,219,1779174000"; d="scan'208";a="98457619" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2026 06:28:17 -0700 X-CSE-ConnectionGUID: 28dLFYoVQhea5T2e9ZNHNQ== X-CSE-MsgGUID: Jpk5VthwSQSeWXQYSkfJxw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,219,1779174000"; d="scan'208";a="267509860" Received: from gkldtt-dev-004.igk.intel.com (HELO localhost) ([10.123.221.202]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2026 06:28:16 -0700 From: Markus Metzger To: gdb-patches@sourceware.org Cc: Tankut Baris Aktemur Subject: [PATCH v4 03/44] gdbserver: allow configuring for a heterogeneous target Date: Wed, 12 Aug 2026 15:27:23 +0200 Message-ID: <20260812132805.380163-4-markus.t.metzger@intel.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260812132805.380163-1-markus.t.metzger@intel.com> References: <20260812132805.380163-1-markus.t.metzger@intel.com> 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 From: Tankut Baris Aktemur gdbserver's configure.srv requires host and target systems to be the same. This prevents building gdbserver for when a target other than the native CPU is to be debugged, e.g. a heterogeneous system with an Intel GPU where we want to debug the GPU. Allow for such a combination by special-casing the Intel GPU target to preserve the existing behavior for other cases. --- gdbserver/configure.srv | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gdbserver/configure.srv b/gdbserver/configure.srv index 7bdd92e3f82..69611db4698 100644 --- a/gdbserver/configure.srv +++ b/gdbserver/configure.srv @@ -30,11 +30,18 @@ srv_linux_obj="linux-low.o nat/linux-osdata.o nat/linux-procfs.o nat/linux-ptrac # Input is taken from the "${host}" and "${target}" variables. -# GDBserver can only debug native programs. +# GDBserver can only debug native programs. An exception to this is a +# heterogeneous system, e.g. an Intel GPU. if test "${target}" = "${host}"; then gdbserver_host=${host} else - gdbserver_host= + case "${target}" in + intelgt*) gdbserver_host=${target} + ;; + + *) gdbserver_host= + ;; + esac fi case "${gdbserver_host}" in -- 2.43.0 ________________________________________ Intel Deutschland GmbH Registered Address: Dornacher Strasse 1, 85622 Feldkirchen, Germany Tel: +49 (89) 99143-0 www.intel.de Managing Directors: Candice Moore, Jeffrey Schneiderman, Ramachandran Sitaraman Chairperson of the Supervisory Board: Sonja Pierer Registered Seat: Munich Commercial Register B: Amtsgericht Munich HRB 186928 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.