Message ID | 20240416140728.198163-2-gustavo.romero@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6000:dcf:b0:346:15ad:a2a with SMTP id dw15csp304447wrb; Tue, 16 Apr 2024 07:08:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFkLOU3RZ9ByMK+bs/rsQqmfwlNKlRiZef+6oqdhjHAgCN52dCZNfwUMDK0y/UWNUCjc4zHOzlNSMZBA8/npbB X-Google-Smtp-Source: AGHT+IGqUgYxPeInLkDvlypwoCF8kttAj444YDACGdQiq5h0o/0xxdJ39AYgXo96nCml4CKGcU2r X-Received: by 2002:a05:6358:38d:b0:183:c2e1:9b4a with SMTP id a13-20020a056358038d00b00183c2e19b4amr16130915rwj.18.1713276500020; Tue, 16 Apr 2024 07:08:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713276499; cv=pass; d=google.com; s=arc-20160816; b=euPpwIKrUjEGohfCrD8eu7uozJxZG+fixXWPaG93FsZN7OApea/uKB4gzi0jgGlEEY wAsagKGWmqmQ8KiRtB2iq5FGIEE/3iYTH9HBCOiWOR5OT1+XNp37d3HBMvoEdKh1mZVL x+RfKIVCM0py1jP2U+zgYYjcq+YDT5GBAAVDshVOlhvOGbjIaXEtEo8qUtlP3pzbRqDY tKSkDTTgwZxDCPQXP0FSYH1R5dYuTJmAzKNgjmOzSlPep0BUgqv93xZ/3E1LzTdhEPRo ncpEn1YUbnp/G2oIfHlg8w0rMYu9JxDtdYowwv12USnbAdz82Ze3zCJtEwm/5GxjbHCj iFQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=tYCk/P1xjalYBJuMqLUvPVXaT9Bbd2Fw6xG3npnM6gg=; fh=PHP0XrDyWzrRvU96cs6sxWXpzsZ2PqUxQqbJpAaSNaA=; b=F9KqBj5seGxQJaXHMqx1nhtioJeG77sMHTZsYX8EEt597w1mAIeaVG1htBIitVBy6p 3jZ64GrcedrS1dvU2d8zc63mkrkKVMr+WgzyS1s8pABmLWPWL8+BggLSTB5vdo6f1PNG 0uzOeI3qtFb9GFmZrxAw1vWUzTRGOBK2UW+3nCIXB2PhBfg2aXY7Xdh9oPoEZMO0HQam 45vIwU9NRV3ZaZP2DtDLdN18d72JfKaUunvd0sAPPfCOeE1bXVXgaMxkVwHZ6d+FUPjz W6oRxsO8/MWzg44o4NIiVELB3wwFerrMZ9ieYCrY/GFthAj3eSNdqePQPwx3R+I2I7ER w2Uw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mbGmm4iG; arc=pass (i=1); spf=pass (google.com: domain of gdb-patches-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gdb-patches-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <gdb-patches-bounces+patch=linaro.org@sourceware.org> Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id eg10-20020a056122488a00b004ca5ee0dbf3si2051311vkb.314.2024.04.16.07.08.19 for <patch@linaro.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 07:08:19 -0700 (PDT) Received-SPF: pass (google.com: domain of gdb-patches-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mbGmm4iG; arc=pass (i=1); spf=pass (google.com: domain of gdb-patches-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gdb-patches-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 84BEA3858D35 for <patch@linaro.org>; Tue, 16 Apr 2024 14:08:19 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id 5A6D43858D39 for <gdb-patches@sourceware.org>; Tue, 16 Apr 2024 14:07:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5A6D43858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5A6D43858D39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::433 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713276476; cv=none; b=Gz/B8WRjbs6ZXXTQCdCWvULTG8wKz21caDV3HUMpRIM2kbs8MYOQ9emcr9pJGkeo1GS1RrAYV/+aiImW/IpdLATzh5Yt7elAmDLiGgb7fEGE+6WgJdHtrl4ZEQ2UkRq+H6JHm0SIUN22jwqpzO0LOmnEpTarqlLaIt7YO6ODJn4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713276476; c=relaxed/simple; bh=zn4DbmTot8VHmhi87qT4JPigPp9gYVtGLVN1Tzseteg=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=GWdWRQHSSmLlRYoxol+I5pAb0/jE5Urw9g5IcJyZjkSN2gzqV8pw81gJZj9z/CD4+7gRudfp6XTdPvX84Iz52sNFG5tL3X+YJmBN8e5Tu69okCEwN7tibg9nt6sG+sLi1V0+RbCdyySsgFmQp6cT2LgQs9kbgxldUOMB01xHBZU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-6eff2be3b33so2173416b3a.2 for <gdb-patches@sourceware.org>; Tue, 16 Apr 2024 07:07:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713276465; x=1713881265; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tYCk/P1xjalYBJuMqLUvPVXaT9Bbd2Fw6xG3npnM6gg=; b=mbGmm4iGXeQ8j4pVCaXCuRgO93GJA7IMwhe2Ib/PJ3Tzm+hwhvfRq4UC4+1XE+TE/E 9QryPUmQPubEbBBX9aM2hVDHjJl4YITVZTRCs2NCMBFMWUiSO8/9p0nOuZ6HmQKaeecV Df+yGcEvVZLWEhHpu2gUYzJLrlb4fpBNl9CEd9oaJiQyUxlz4+QBQNDOqu/ajdxWQsAe Ikqvk8iog3Oca/BQ7Dpmebsu3vWaZFMmqlSX4ufSQCzoE1Xu206sekCsq/h/KiY7P5V3 g0YOamRUBwLfGQz/GPwsCQG7t4ren8J2BaUcBuwXkXjw71q+1syXDUpU3uOBf3cF0cm2 Sj4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713276465; x=1713881265; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tYCk/P1xjalYBJuMqLUvPVXaT9Bbd2Fw6xG3npnM6gg=; b=hUre2dZKwsZ+qiVpiHNxyRkkeIzaGZsOj/6xNNLhWBk0bwEi6op8ALDRLG/komNtN2 1NGbrJtAHLb79tOclMG5qgfISzVGGCjatPF+GushMEgItqOu/4joLjgK8fO4sYEWpfJz 7s33EtlK7hktsRksQHtq0ZRzYn8CefsRDp+Kso3H96gO5VN6IiD/oc4dtCJdWwmfg9FX 9yhDdJQL9Igbgpz9Bv+xMJUJn2hAclMtScEkFGzY+XILHQy5QsggtRcG6E/k4FGWyGAV vT0IawxZ6Y9YU2FZWC+z4uUhNUEXhbtFwQkgMCEM5G6SUh2V4K4RnKOSbnqL2bAsfyeg p5SQ== X-Gm-Message-State: AOJu0YxJDJSuR+ER2S2MSzjMUs54Tcsk0w24bedsFENwixiZEYdBb+kd ZOvf2GWo2S3JH5yLIxlsYr8v1kB0Srdx41j/tLrLfZ56yg07rgB4ElGYw/TIfxnkfa0GbxdPiLl RNLE= X-Received: by 2002:a05:6a20:d487:b0:1a9:c3ac:be77 with SMTP id im7-20020a056a20d48700b001a9c3acbe77mr11997225pzb.1.1713276464760; Tue, 16 Apr 2024 07:07:44 -0700 (PDT) Received: from amd.. ([2804:7f0:b403:ad57:3e7c:3fff:fe7a:e83b]) by smtp.gmail.com with ESMTPSA id o3-20020a63e343000000b005f3d54c0a57sm8937473pgj.49.2024.04.16.07.07.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 07:07:44 -0700 (PDT) From: Gustavo Romero <gustavo.romero@linaro.org> To: gdb-patches@sourceware.org Cc: luis.machado@arm.com, thiago.bauermann@linaro.org, eliz@gnu.org, tom@tromey.com, gustavo.romero@linaro.org Subject: [PATCH v4 1/8] gdb: aarch64: Remove MTE address checking from get_memtag Date: Tue, 16 Apr 2024 14:07:21 +0000 Message-Id: <20240416140728.198163-2-gustavo.romero@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240416140728.198163-1-gustavo.romero@linaro.org> References: <20240416140728.198163-1-gustavo.romero@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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 <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces+patch=linaro.org@sourceware.org |
Series |
Add another way to check tagged addresses on remote targets
|
expand
|
diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c index 0b9784f38e4..50055ac3f48 100644 --- a/gdb/aarch64-linux-tdep.c +++ b/gdb/aarch64-linux-tdep.c @@ -2575,10 +2575,6 @@ aarch64_linux_get_memtag (struct gdbarch *gdbarch, struct value *address, tag = aarch64_mte_get_ltag (addr); else { - /* Make sure we are dealing with a tagged address to begin with. */ - if (!aarch64_linux_tagged_address_p (gdbarch, address)) - return nullptr; - /* Remove the top byte. */ addr = gdbarch_remove_non_address_bits (gdbarch, addr); std::optional<CORE_ADDR> atag = aarch64_mte_get_atag (addr);