Message ID | 20240417210424.216374-5-gustavo.romero@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:e6ca:0:b0:346:15ad:a2a with SMTP id y10csp233527wrm; Wed, 17 Apr 2024 14:06:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXcd35+hJ3kG203Kn7SHzdbkcgL+iZesDTfkRQqqlpSZJSjdK6DFKrkB/bzia1R+I/EW5wshZlA9bvvWEauPBSR X-Google-Smtp-Source: AGHT+IGGvADu1JApIWPW5lKlAR3x5R2btWNim6silHPMApZuCYRLAcXnm6KRXoXoS/PHXQuuZ0KK X-Received: by 2002:a05:6808:189e:b0:3c7:1605:bae6 with SMTP id bi30-20020a056808189e00b003c71605bae6mr1023760oib.36.1713387960392; Wed, 17 Apr 2024 14:06:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713387960; cv=pass; d=google.com; s=arc-20160816; b=Ou0qglec6hkk7y/RVEnG35O39GNdl7e4qTj3ju5RQi30DLCtAcneYX61N41er+RSZO 8Z60HDW6p0fL7p+W2+wcx07TKpRsNZppXHPz/DAJ++PlofGglx6rvXWbUshNG+Y7eGW7 aVopEK/MEEKskYC0d8HApV6Qx5i1KHZfd+pW6JnDUVz7djeG72RY7H5L9IJ5MjiDM1E9 iQOnxHa2pOjmGkBcZRlkvgmQXNPAPPHKUxeM7aP8DJ3lTaW1qh0s176Jxc4ZskRLjE3O SOCwtKK48JweMelzht4K56FEB/bAtwlfT/O7Oq462hfpA1tHMgydlzK9Fi9c9hJi1y20 KEAA== 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=+Udz0sOQRKXAm5kiKFSTNh5JUUjk+Jni+c5SH40tgmE=; fh=PHP0XrDyWzrRvU96cs6sxWXpzsZ2PqUxQqbJpAaSNaA=; b=IoeKzU0ZBpieQJWbFm/DMN3i+Xzyq//TB6McomshGZIbCc/CbbO1smBxyFHFUzhBDb E42UdJWxnzXDwtN5saE3rJbS+wT82SPPNFYQeWalEVyMJ3qx55tOL6b+P6TztAUGl/GV 0NTAnzAYWEm/aY677r16xUP9gouG5qMS6+pKsZC9u/dWJ5nyedKHShgrMZu0FhGn1O6h PFl/WUogEWQtxOJWMoj3oiLaPuU7A4NWsZSsZ/GFkrMEa2F1KkqFjjguYcnVIPt3XZw7 gu8JE7MZ1Wnp7HspwVc+kO1NH1ohHUoa5Zvoeb7Fpa/VJK948EEJDX7RHFUKhWqcNNfO z6vQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eHgT3ib4; arc=pass (i=1); spf=pass (google.com: domain of gdb-patches-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c 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. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id c18-20020ac87d92000000b00436648a86a4si14748qtd.450.2024.04.17.14.06.00 for <patch@linaro.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 14:06:00 -0700 (PDT) Received-SPF: pass (google.com: domain of gdb-patches-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eHgT3ib4; arc=pass (i=1); spf=pass (google.com: domain of gdb-patches-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c 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 0C0053849AF0 for <patch@linaro.org>; Wed, 17 Apr 2024 21:06:00 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by sourceware.org (Postfix) with ESMTPS id A5AB23858CDB for <gdb-patches@sourceware.org>; Wed, 17 Apr 2024 21:04:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A5AB23858CDB 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 A5AB23858CDB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713387900; cv=none; b=RRgIxHYiNeLjYX1wOczzj2xRbQw7Gh9LGb3c9B7++j2eem6GNJnvacC+BF0SDoIYskPci1GY31ocXzrbbDt7hBvifQKXMqqziTzRytJltr5qJIWiXKn3OIEf2iXIlUq6xDyqRQYRyLg7MvlxxU+i5CeMYKO8t6JpA6EWoMses9A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713387900; c=relaxed/simple; bh=5sDr5g7U2ywTRYm1e6GUiteL43TzBcSbyiTAO8R27Z8=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=Cz3PueFE16f2fIPlCXdvv4n3Dj/yYIzqyz34n8bS4MX/Mr0wfascEcx3pQrplToA2bdIZ/etzeGnkhbJRvq1jY9hv0OjithNKdHAg7JvY4GKw0n8Sqfw6dkS6N2Rl9yEdjRy1IBeQcMnaKomRHd1L1JpdlNxxtbBpiwmPi3iibg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1e0bec01232so1727725ad.3 for <gdb-patches@sourceware.org>; Wed, 17 Apr 2024 14:04:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713387893; x=1713992693; 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=+Udz0sOQRKXAm5kiKFSTNh5JUUjk+Jni+c5SH40tgmE=; b=eHgT3ib4old2pbyv5qADfgiTguIXGbRpHsR0VbqxbycJRgZ0QcxH8e12Oep5HbH8jZ zaqY/Ra0nrj4RooobTlwh/0LAQMs0tW+tzAms/GCQxSY8y1EMdtU2HA8hKbbPbvf5lVf ne53sYy2n2FryzPSu3xGTBqUryJrDNYxVONBi6N5S9x3b1OvEScDCaQfKtzs1YefUZAr zkaZ2ECBAx7PfNmMDu8OltNAmigtu4s6xkyuzKujRFdGRajujhO2MuNSWQUJnie/BMpg VAghLLCc69lCXdWHXAURQG5pANlGy4fYOsZUEWZNDhOzbkfpK/twVigOu+qAlI4PsyUA kY2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713387893; x=1713992693; 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=+Udz0sOQRKXAm5kiKFSTNh5JUUjk+Jni+c5SH40tgmE=; b=vTHxKFZVnSIKT0I+jqEGpcBWlCVzFcvHb0DukK4zFWbMqZvRinOhDfPZbdX2pytu9u hKUXQ3v/2qjXotmte/KNZpgu+CLc23IevlfFgn8r9sNCldjCZQQGedhmJbRyXWF7BaKs Rg2FQb+vbvgfKLjPjtMuoxqImWSxwdTiDTRVKS9pKFKGI0DQPi1s3hYrlOjIPKoC2WKW GKo3nWDG70s2ex4IcGtHaN8lMvjBdhYx2YwtwrZI5wRpNXxEuhQOclOit/FKkNwbUHeV Cf5t/AjFCnyYKkKK9NfSgjopK0hIY7JOsp60fWqOMEQjenKaPiMw7JU9mVeyyvqtRAi8 Gu2Q== X-Gm-Message-State: AOJu0YzeqABcUDC9nnRig9mIHneSkGHilxR1VBuyi6bpnV1BykFMylgw eyRTDY6XxSxgI54Gr+5c1DJNCHWGZ9J7BNBY0RID665J9zjeH3r6Ct38RHPcHoep+JColo1lLpG X X-Received: by 2002:a17:902:a70b:b0:1de:e6a5:e51d with SMTP id w11-20020a170902a70b00b001dee6a5e51dmr673737plq.16.1713387893418; Wed, 17 Apr 2024 14:04:53 -0700 (PDT) Received: from amd.. ([2804:7f0:b403:ad57:3e7c:3fff:fe7a:e83b]) by smtp.gmail.com with ESMTPSA id l9-20020a170903120900b001e3e0aa9776sm80494plh.27.2024.04.17.14.04.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 14:04:53 -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 v5 4/8] gdb: Use passed gdbarch instead of calling current_inferior Date: Wed, 17 Apr 2024 21:04:20 +0000 Message-Id: <20240417210424.216374-5-gustavo.romero@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240417210424.216374-1-gustavo.romero@linaro.org> References: <20240417210424.216374-1-gustavo.romero@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.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/printcmd.c b/gdb/printcmd.c index 5635f605314..4edbd458e4d 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -1132,7 +1132,7 @@ do_examine (struct format_data fmt, struct gdbarch *gdbarch, CORE_ADDR addr) = value_from_ulongest (builtin_type (gdbarch)->builtin_data_ptr, tag_laddr); - if (gdbarch_tagged_address_p (current_inferior ()->arch (), v_addr)) + if (gdbarch_tagged_address_p (gdbarch, v_addr)) { /* Fetch the allocation tag. */ struct value *tag