From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id wzsOL93B1WETVAAAWB0awg (envelope-from ) for ; Wed, 05 Jan 2022 11:05:49 -0500 Received: by simark.ca (Postfix, from userid 112) id B07A21EE18; Wed, 5 Jan 2022 11:05:49 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.2 Received: from 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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 272031E61F for ; Wed, 5 Jan 2022 11:05:49 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 678AE3858020 for ; Wed, 5 Jan 2022 16:05:48 +0000 (GMT) Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by sourceware.org (Postfix) with ESMTPS id 31B123858001 for ; Wed, 5 Jan 2022 16:05:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 31B123858001 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f50.google.com with SMTP id d9so84106230wrb.0 for ; Wed, 05 Jan 2022 08:05:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=a78TnVXloMar5jfGdwNrirKU0kyNQ+oGkT1FjCIO550=; b=D9oIXlUkV+Zr9+2Rl6UvRXmb//kE4kOMYVxM0jkPwsNpIzl6B3XuZnYCunBoqT8yKN 9rr52P+oxiKJXu2yX/qfOvrDxFZ32GoOl4xeZfWqHrhy+3MII47Rj5UkZCZXd3NOHSG3 EoHWR++uBT28teYV/nS2GBNGIZ8wOBZuYqExjix2Nd8oS7RHqYgtWL8yWzqgMhTVI+tD oavKVt79SuKXYIq5Jy+3pcKP9Reaz6NpEzOzChHyVxI/uccLq/f6ZhvTOtD/d/1+jEsy SxJpPC6UH7y5dG5WqU8l9+3Y31bIKUEUysi3hXyG3bE3kcRSzmuKj8ah8LE6NU6RaVSm x8bQ== X-Gm-Message-State: AOAM532PCMW8u1GawpKXn4ht+yTMuREpoQCe8DmBm+1fEOS3wCI9tstn FxO27XSwAvqNuYp6sov95Np2hz81oE0= X-Google-Smtp-Source: ABdhPJwhs86ot9cpUm5qCZ7Xi2WB+RRmlQM8TsyBxTMehhKv6KOLfeewxH8Hta8Uxoj7xve6KOoSQQ== X-Received: by 2002:a5d:588f:: with SMTP id n15mr48060825wrf.279.1641398710239; Wed, 05 Jan 2022 08:05:10 -0800 (PST) Received: from ?IPV6:2001:8a0:f912:1a00:fb57:3faf:e98:b979? ([2001:8a0:f912:1a00:fb57:3faf:e98:b979]) by smtp.gmail.com with ESMTPSA id q14sm40532493wro.58.2022.01.05.08.05.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Jan 2022 08:05:09 -0800 (PST) Message-ID: <38f106fa-432d-6b60-a2e8-d05e76acadc6@palves.net> Date: Wed, 5 Jan 2022 16:05:08 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: [PATCH 25/29] gdb/testsuite: Remove duplicates from gdb.base/pointers.exp Content-Language: en-US To: Lancelot SIX References: <20211121175636.779325-1-lsix@lancelotsix.com> <20211121175636.779325-26-lsix@lancelotsix.com> <1fbd61ac-abbb-16d1-3f14-400d05dc20d5@palves.net> <20211216231414.kgin6p7nndajxpuk@Plymouth> <20211217231413.irtot7vgpbccf7j2@Plymouth> From: Pedro Alves In-Reply-To: <20211217231413.irtot7vgpbccf7j2@Plymouth> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Hi! On 2021-12-17 23:14, Lancelot SIX wrote: >> >> Hmm, how about this instead? >> >> with_test_prefix "post-increment" { >> gdb_test_no_output "set variable y = *v_int_pointer++" \ >> "pointer dereference, set variable" >> gdb_test "print y" " = 6" "pointer assignment" >> gdb_test "print *v_int_pointer" " = 18" "pointer increment" >> } >> >> with_test_prefix "pre-decrement" { >> gdb_test_no_output "set variable y = *--v_int_pointer2" \ >> "pointer dereference, set variable" >> gdb_test "print y" " = 6" "pointer assignment" >> gdb_test "print *v_int_pointer2" " = 6" "pointer decrement" >> } > > Done in the wollowing patch. > > Lancelot. > OK.