From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id iW8uL40D82ZT+TUAWB0awg (envelope-from ) for ; Tue, 24 Sep 2024 14:23:09 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=smU7c2/t; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id A89071E353; Tue, 24 Sep 2024 14:23:09 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-11.8 required=5.0 tests=ARC_SIGNED,ARC_VALID, BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,URIBL_DBL_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=4.0.0 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 0F5E71E05C for ; Tue, 24 Sep 2024 14:23:09 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 39A243858408 for ; Tue, 24 Sep 2024 18:23:08 +0000 (GMT) Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by sourceware.org (Postfix) with ESMTPS id 0FF3F3858D20 for ; Tue, 24 Sep 2024 18:22:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0FF3F3858D20 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 0FF3F3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::72a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727202170; cv=none; b=xHFpF8yh425bSbijNYkMDpl9RovsmVbz6mrgYkN1fz8eS6MFDs/5ZJPSrrWv+MQ6Cb0M6+6SsR7rCy+fm/uQPPyl9N23sZMqrpiUHMLwGo+oU66aTWR/YBlANaeMACBRAD67zIW3nsJk/G4aN4y7P1yCURtWpsGVt+opQMeSyus= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727202170; c=relaxed/simple; bh=D9IWOILF9Gur8YusbiJEWM5Uq6aFtV9zC05JjEAjip8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=asXD02K1Fckwq9DJie3SrjhUk1KoCT7SFCF6nI7SeCNigMCibhl+DCUsjxVnuqAtO2xrpGJF8AvA8hcJ2IWHtFuwvZ4rr/RG3kfGo46q6ExaGJHoTmM0L0iofrgQpS7PC3A5rQHqnVGPFw0kvuIfPFkEN42X8eBuOUhGIS8KH0g= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-qk1-x72a.google.com with SMTP id af79cd13be357-7a9a30a045cso550836085a.2 for ; Tue, 24 Sep 2024 11:22:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727202168; x=1727806968; darn=sourceware.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=1E9frMgE64qBoQb+/44dj93fvejNmgc3gngiYLhOBCE=; b=smU7c2/thjhWs46KvTGqV0HBAxXrhZZi2kUE2y5nt4k0BNFkSrsOiy0noOmbpeGlmG r4UbDouxYJA5bKJqLAgmvuCPGA1XYFP9BzUZfZSgr6Alh3v2PnzTGR/2Q/OtUBK7H+K+ cBVYlx3DDmZVB1yJqoxFJf80jOj2mF3qwH7FuOf4y/RYxn7Dm1wDL4NSnIS7hRfyB9iS iA/Z8Vq3LUtocnEsMqd/+GSqQciugmp3hF0O6J+ovgcOHRb3pJXdv/YyWvgajl4VKkx3 pPjL7ZYzwl1g29gCElhPk/0DdcmRrLIrwxpc/7v5A5Acus2CEHEyRApN4Y0RCYuej4Wt 5lsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727202168; x=1727806968; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1E9frMgE64qBoQb+/44dj93fvejNmgc3gngiYLhOBCE=; b=rbVq/06pndu0bkayeYXKH56E3EJddWEwg4moAIJD+DrAoaBMVN6KbmB9lQgu8D1kuE aYYFOg9rAJXS3O1Wzl6RMyb+tWQ/efepv7dRZ6YujizS23Jmv3zP0pI0vuM2NWQI+cYY mMQwN9OtVI2DRTXqlJ+nckl3pdcT7S3rIQWSKQkFvOTJanV4uCpmSGavdRwbNfnVxPVd 4igKNxOyz7QgKd2X+UAjOBLegqO9YCk6IIsikawwKNgLtcAOE2zlomf2uvcYppVlsKzq xbFZi0NQirjTV5kgVf+EWe4Am+tMXa74uNInUEV7csaqdld/lJNnmmPiGZtsKSNjG02V gpdA== X-Gm-Message-State: AOJu0YyoCTHsRORkEh+PMEUJhBFs/KvjOxfWmpsP5qNVskLrWUZMoWxV xxNOFCQ8OOuzRYxD2FoPUThkfFRu5woWMlRDT3/pPhJtQgtA2GcARuww9Od1QZpi1WlLPOToCv7 Q X-Google-Smtp-Source: AGHT+IHp566D/RGI86TFk/HqS0bc6ZwUYo3fev4YxCOGPlqHppw36S/YaB8Q2TpyZPGmQ0jcVkHxuA== X-Received: by 2002:a05:620a:450b:b0:7a9:bc1c:10b9 with SMTP id af79cd13be357-7ace7416c3amr20123485a.33.1727202168038; Tue, 24 Sep 2024 11:22:48 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8470:8310:b240:fe02:e1e3]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7acde53c0d8sm93526585a.35.2024.09.24.11.22.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Sep 2024 11:22:46 -0700 (PDT) From: Thiago Jung Bauermann To: Tom Tromey Cc: gdb-patches@sourceware.org, Andrew Burgess Subject: Re: [PATCH v2] gdb: testsuite: Test whether PC register is expedited in gdb.server/server-run.exp In-Reply-To: <87ldzijjg1.fsf@tromey.com> (Tom Tromey's message of "Mon, 23 Sep 2024 12:47:42 -0600") References: <20240905044202.259066-1-thiago.bauermann@linaro.org> <87ldzijjg1.fsf@tromey.com> Date: Tue, 24 Sep 2024 15:22:43 -0300 Message-ID: <87y13ghpxo.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain 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 Hello Tom, Tom Tromey writes: >>>>>> Thiago Jung Bauermann writes: > >> One thing GDB always does when the inferior stops is finding out where >> it's stopped at, by way of querying the value of the program counter >> register. > >> To save a packet round trip, the remote target can send the PC >> value (often alongside other frequently consulted registers such as the >> stack pointer) in the stop reply packet as an "expedited register". > >> Test that this is actually done for the targets where gdbserver is >> supposed to. > > Thanks for the patch. > >> @@ -162,7 +162,7 @@ class register_dump_remote : public register_dump >> { >> if (regnum < 0) >> { >> - gdb_printf (file, "Rmt Nr g/G Offset"); >> + gdb_printf (file, "Rmt Nr g/G Offset Expedited"); > > Kind of a shame this doesn't use ui-out tables. > > Anyway this looks good to me. > Approved-By: Tom Tromey Thank you! Pushed as commit 94aedcf7ea5b. -- Thiago