From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id mHBzFcazvV93eQAAWB0awg (envelope-from ) for ; Tue, 24 Nov 2020 20:30:46 -0500 Received: by simark.ca (Postfix, from userid 112) id 55C981F0AB; Tue, 24 Nov 2020 20:30:46 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI 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 C3ECF1E58E for ; Tue, 24 Nov 2020 20:30:45 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 80C0C39540ED; Wed, 25 Nov 2020 01:30:45 +0000 (GMT) Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by sourceware.org (Postfix) with ESMTPS id D3A6A39540E3 for ; Wed, 25 Nov 2020 01:30:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D3A6A39540E3 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=alves.ped@gmail.com Received: by mail-wm1-f66.google.com with SMTP id 1so684653wme.3 for ; Tue, 24 Nov 2020 17:30:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=KpxBks7U3lT1TGCfAzwlpPiVmGGkQr1V/aSoBfCy9hY=; b=uWd2Z+imDZnnVpXJrv5M5XSBJsgOid9cj9ea7UXoB81sVhm+Oylmh2nWdt3Fxc9Vy0 oajtvebcMbBZdgsbtzuQF/NJVtPlJw/FbdQ6rL+6PTeajgP72qt7URjY+JS/82+uyYhl jfJvYfiXvmzyjteN4jfOj+MRHXP0jcwIDgcf+0fP7l4M74U2Nj4vsLHZ93VdQWvvF3Td RGI1JRO1TaXp0xAcN+3R0QJ7s/KO7a7H4Hr3YB0TZBzODmoLgbRGVSpJlwovwzSNFcg2 wKfK589mdoMCBBV4gTEFJ+N/XFFQaounvmudf5A4Oeo4qwnJnjmGDebDBLAX54FhlBKr O02g== X-Gm-Message-State: AOAM53154GRIOZw6Jb+MObTBCiINPi8ww2uKImdDR8i6SdGTL3KsSQ49 ZQWZlk9Tjk78L3IwaeRoM9ORXtB5VJu3VQ== X-Google-Smtp-Source: ABdhPJxhbUEKLHpieW8PRX6P48GgRC1mlfD5gke4VgdVKv21cCe4KDdqgAWI20al/CNl4hJmELI3Mw== X-Received: by 2002:a1c:2284:: with SMTP id i126mr1094654wmi.43.1606267842366; Tue, 24 Nov 2020 17:30:42 -0800 (PST) Received: from ?IPv6:2001:8a0:f91f:e900:1d90:d745:3c32:c159? ([2001:8a0:f91f:e900:1d90:d745:3c32:c159]) by smtp.gmail.com with ESMTPSA id t7sm1192622wrp.26.2020.11.24.17.30.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Nov 2020 17:30:41 -0800 (PST) Subject: Re: [PATCH 07/12] gdb: pass inferior to get_linux_inferior_data To: Simon Marchi , gdb-patches@sourceware.org References: <20201110214614.2842615-1-simon.marchi@efficios.com> <20201110214614.2842615-8-simon.marchi@efficios.com> From: Pedro Alves Message-ID: Date: Wed, 25 Nov 2020 01:30:40 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20201110214614.2842615-8-simon.marchi@efficios.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US 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: , Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" On 11/10/20 9:46 PM, Simon Marchi via Gdb-patches wrote: > Pass to get_linux_inferior_data the inferior for which we want to obtain > the linux-specific data, rather than assuming the current inferior. > This helps slightly reduce the diff in the upcoming main patch. > > Update the sole caller to pass the current inferior. > > gdb/ChangeLog: > > * linux-tdep.c (get_linux_inferior_data): Add inferior > parameter. > (linux_vsyscall_range): Pass current inferior. OK.