From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id VeR7CyjA5WPgui4AWB0awg (envelope-from ) for ; Thu, 09 Feb 2023 22:55:20 -0500 Received: by simark.ca (Postfix, from userid 112) id 21BF81E221; Thu, 9 Feb 2023 22:55:20 -0500 (EST) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=So9FLgFT; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 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 B41331E110 for ; Thu, 9 Feb 2023 22:55:19 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D4BAF3858025 for ; Fri, 10 Feb 2023 03:55:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D4BAF3858025 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676001316; bh=NJDIUXh3BsXDEiqVVR/2HYPG8FI/wOK1iNDwgqwEDqU=; h=References:To:Cc:Subject:In-reply-to:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=So9FLgFTS+mzRQy0FxVBqEGM70HM2JKtBUj8lPD92MTCbZgFuGydxC+m+sAHSWymd 89sMRgkOhljAMYgfuNTsrG9i+GW4A4TwwwAYDBaV2y6UhK1v1/lumD/75Y17g5g3Mu hBylGIXTtVj8Dr+kgqE18Ws93kOR5EeKdNDMMNUI= Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id 7566F3858C50 for ; Fri, 10 Feb 2023 03:54:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7566F3858C50 Received: by mail-ot1-x335.google.com with SMTP id d21-20020a056830005500b0068bd2e0b25bso1220979otp.1 for ; Thu, 09 Feb 2023 19:54:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:in-reply-to:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NJDIUXh3BsXDEiqVVR/2HYPG8FI/wOK1iNDwgqwEDqU=; b=4RbkR0gnBxBst9iKnrbjWyPsn1S2LRXdCdrT3lih5jB2vtmhwXSRDqbk3QuNMYz5+3 uw/GwLny48Qm2i0d5zp1FdTzQox9CCVcCHrJCv5NrGI1DL8+NGTJOyS2nhoyT5VzIMBo H5UxHnqRQvmJ1uB37FsZ7VuQrr752t9EDNF4QoIrT15SxDy6NzHoFnnd7QSJs5SUfB7v xyAUPmrykXDQgDe7M6dMWU/L8nz5miirH9iYKMGNfyvRlN/lXICaPccte+XlNBH5QTl6 0GGjEVGZmXiv0jNjINhC6tmaPItrn4/LtGlHz50sNZmmHgq3fkHC7N7vAiTd+R9wag1P ac8A== X-Gm-Message-State: AO0yUKUGJs87Nk5SnLD2YXfVt1ROWnT0M+15kP0h94iXokh4ABu7URhO rdAUDkvtIJQrPSygOgX3jUdsQjECTDUMnKvTuIE= X-Google-Smtp-Source: AK7set9sVFaWGxH7IxCC208MAnWuWiQYTzH6LQDKQrCGZDSz9QpqO+kAJmTpBHiAggr5BNcoxQNFaQ== X-Received: by 2002:a9d:1b6d:0:b0:675:b400:c5ff with SMTP id l100-20020a9d1b6d000000b00675b400c5ffmr7579281otl.3.1676001294856; Thu, 09 Feb 2023 19:54:54 -0800 (PST) Received: from localhost ([2804:14d:7e39:8470:1449:5096:2f6a:7e5a]) by smtp.gmail.com with ESMTPSA id o19-20020a9d6d13000000b00684ccbfe012sm1582202otp.27.2023.02.09.19.54.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Feb 2023 19:54:54 -0800 (PST) References: <20230130044518.3322695-1-thiago.bauermann@linaro.org> <20230130044518.3322695-3-thiago.bauermann@linaro.org> <9072a00d-adcb-b317-3957-2d84e3c149ea@efficios.com> <87r0v19mhl.fsf@linaro.org> User-agent: mu4e 1.8.13; emacs 28.2 To: Simon Marchi Cc: Pedro Alves , gdb-patches@sourceware.org Subject: Re: [PATCH v3 2/8] gdbserver: Add PID parameter to linux_get_auxv and linux_get_hwcap In-reply-to: Date: Fri, 10 Feb 2023 03:54:52 +0000 Message-ID: <878rh62n03.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain 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: , From: Thiago Jung Bauermann via Gdb-patches Reply-To: Thiago Jung Bauermann Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Simon Marchi writes: >> Ok, I will look into that. A simpler approach though would be to fetch >> auxv at process starts and cache it for the duration of the debugging >> session (since auxv doesn't change at runtime, AFAIK). Would that be a >> good solution? > > Not sure, you could be attaching, and at the moment you attach, the > leader has already exited. Ah, that is true. I'll work on a solution following what Pedro described, then. -- Thiago