From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta34.uswest2.a.cloudfilter.net (omta34.uswest2.a.cloudfilter.net [35.89.44.33]) by sourceware.org (Postfix) with ESMTPS id A1B373858C62 for ; Fri, 23 Feb 2024 16:16:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A1B373858C62 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A1B373858C62 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708704966; cv=none; b=uU+lu8Jc61ylI2yw9qIracEahDBnljYBPTqxgQKZDK2IbLlL6mUHhbD6YinPvXEnfwP79pLdi8poPeD/GZvm7ubZoNbLN9eEQy2Hq3fr4dKBg9LscYYh8MNLchbFo4B/Mhd7w8l4kRF/Upn6dcp8U1IcqOqTnO/88hOKKCkiBGU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708704966; c=relaxed/simple; bh=6sQ82nzAyXv2vuI0bpWjqWcFxj8ST+JcoLsd0UhPRSw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=bbLe22mmX6xTEdoy8H2g1Q0xzN9lyeIbD1dCkw2PCATWQoTppqkCZuiu3wsqPxEwfj14ZZBj6lFOyHExFuSieJ8YWhMhNxERc6eE7CaP9l+ZLmcq1l37ZsP7CV1HuvF+iPOUyeZ8d/WJEQXeBgz8OVoEm5tb4+Pz/55Xp3WCgzI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-5001a.ext.cloudfilter.net ([10.0.29.139]) by cmsmtp with ESMTPS id dV6nrlpz0HXmAdYDTrg7mb; Fri, 23 Feb 2024 16:16:03 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id dYDSrmllxHk3bdYDSr6Tk4; Fri, 23 Feb 2024 16:16:03 +0000 X-Authority-Analysis: v=2.4 cv=LpCUyGdc c=1 sm=1 tr=0 ts=65d8c4c3 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=k7vzHIieQBIA:10 a=Qbun_eYptAEA:10 a=T_Alst9gAAAA:8 a=CCpqsmhAAAAA:8 a=jGJgFx5TLJbD8Ui-e8QA:9 a=bKdfoM6u9_EA:10 a=DvZ5ixILWSEuw56YIEpp:22 a=ul9cdbp4aOFLsgKbc677:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=6sQ82nzAyXv2vuI0bpWjqWcFxj8ST+JcoLsd0UhPRSw=; b=Q+aqwRAbp6RT4Z/wi2bxYpOJK0 WKblNub8rMGxAtAwGVZocT+nQA+u77yRubmFnx0SlWSjqbyB0lCzUwvhYlKlYklC59ggdVjSUnVwZ IgwPZaQvDp0jqYI29XokXQUPz; Received: from 71-211-170-195.hlrn.qwest.net ([71.211.170.195]:49516 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1rdYDS-002CI5-0C; Fri, 23 Feb 2024 09:16:02 -0700 From: Tom Tromey To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] gdb/linux-nat.c: Add "Accessing inferior memory" section References: <20240221202840.772802-1-pedro@palves.net> X-Attribution: Tom Date: Fri, 23 Feb 2024 09:16:01 -0700 In-Reply-To: <20240221202840.772802-1-pedro@palves.net> (Pedro Alves's message of "Wed, 21 Feb 2024 20:28:40 +0000") Message-ID: <878r3byx4u.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 71.211.170.195 X-Source-L: No X-Exim-ID: 1rdYDS-002CI5-0C X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 71-211-170-195.hlrn.qwest.net (murgatroyd) [71.211.170.195]:49516 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfCoGVlNTrqZ43lQL2gj/CQ+8F97kqMR+Yxwsc9BS/VnFYBUFEclGcDGyYYjoFAHuSyAP7AmdxW15xIRxAcIy/A3/PCb4821OGNj4sDbOm/GFQFjrqDEx XNTEnXewXrM/7s/MHAtnubDzxGLW3n6ta+Y88l4ntzxOqvujT0X9pcCJi4XFzGQ+hnICVqevP1JO5H+PakvrFkVfKyAEFJZcmUc= X-Spam-Status: No, score=-3016.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,JMQ_SPF_NEUTRAL,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: >>>>> "Pedro" == Pedro Alves writes: Pedro> This commit adds a new "Accessing inferior memory" comment section to Pedro> gdb/linux-nat.c that explains why we prefer /proc/pid/mem over Pedro> alternatives. Pedro> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30453 Aside from the typo pointed out by Mikhail, this looks good. Thank you for writing this, this kind of commentary is very valuable. Tom