From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id wVbHIThgqGmDQBQAWB0awg (envelope-from ) for ; Wed, 04 Mar 2026 11:39:20 -0500 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=IpehG3Nx; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 843101E089; Wed, 04 Mar 2026 11:39:20 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (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 D227A1E089 for ; Wed, 04 Mar 2026 11:39:19 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 967F74BA23C9 for ; Wed, 4 Mar 2026 16:39:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 967F74BA23C9 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=IpehG3Nx Received: from omta38.uswest2.a.cloudfilter.net (omta38.uswest2.a.cloudfilter.net [35.89.44.37]) by sourceware.org (Postfix) with ESMTPS id 23A3B4BA2E3D for ; Wed, 4 Mar 2026 16:38:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 23A3B4BA2E3D 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 23A3B4BA2E3D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772642296; cv=none; b=tKCf8HZNXplQu4TskCNKqoQNQLctrfR2O2cu1s7Wh81vljN8JyDaHifr0tzm73qANrprtpf5VdwLBkZM/bTCwcF7uI5fTbWC3Fc3JNixKAzEcJF0NBGypeAaZRfAsjRcGCBiy8vz+661+qfqQCibl9qcHX/ZkHqwY3uBjbLV4fo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772642296; c=relaxed/simple; bh=EcDCnnRTme1bL+0oz4VoNQbgJ/ALVJXClMkSJYXXV6o=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=VJQgynATDaqh7mUDn5n/eDsI0vgu6BGGxwD5+wMrR2/ljIp4TDlRwF9nyiRhGT/u06Fq5TatcBa5a5FcXtOaCSo9UqqcOkwExhVoEY0yQXrwagErth675lBzRqq3Qc1pJklUpfF0xggpfPQxvfS6XriXH6hJR3lQaJUoQzPac/U= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 23A3B4BA2E3D Received: from eig-obgw-6002b.ext.cloudfilter.net ([10.0.30.203]) by cmsmtp with ESMTPS id xp4GvZM75J9SZxpElvcjWl; Wed, 04 Mar 2026 16:38:15 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id xpEhvULCnPL32xpEivhyWc; Wed, 04 Mar 2026 16:38:12 +0000 X-Authority-Analysis: v=2.4 cv=MqhS63ae c=1 sm=1 tr=0 ts=69a85ff6 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=Yq5XynenixoA:10 a=ItBw4LHWJt0A:10 a=mDV3o1hIAAAA:8 a=uGU3_v2CmQV067OpF9MA:9 a=QEXdDO2ut3YA:10 a=zZCYzV9kfG8A:10 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: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=MMwfE33j1X+2KF04AfRHVs+aBDjVudgWOPtwFI1JXjg=; b=IpehG3NxirZIzkngnXyMSYGfcN la4gP+a1heYM5LYFBXzUJG31elg4ZZ9OCw4ciKBkOlXYUNmgd4XjKZU8uHEAftmzUEDJ+ZNJ8zkDB KcbO2oRqKMAg4zU3mG6B8pQ9i; Received: from 75-166-225-82.hlrn.qwest.net ([75.166.225.82]:36108 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vxpEh-00000003uMa-2cVj; Wed, 04 Mar 2026 09:38:11 -0700 From: Tom Tromey To: Eli Zaretskii Cc: simon.marchi@polymtl.ca, gdb-patches@sourceware.org Subject: Re: [PATCH v2] gdb/corelow: mark bytes unavailable when reading from unavailable mapping In-Reply-To: <864imyz8r4.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 02 Mar 2026 15:00:31 +0200") References: <20260228022059.117785-1-simon.marchi@efficios.com> <20260302032333.2287923-1-simon.marchi@polymtl.ca> <864imyz8r4.fsf@gnu.org> X-Attribution: Tom Date: Wed, 04 Mar 2026 09:38:10 -0700 Message-ID: <87ikbbpn2l.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: 75.166.225.82 X-Source-L: No X-Exim-ID: 1vxpEh-00000003uMa-2cVj X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-225-82.hlrn.qwest.net (bapiya) [75.166.225.82]:36108 X-Source-Auth: tom+tromey.com X-Email-Count: 6 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfDiGGgnSHW5gfz+h5jIlYknETEd/zlkZgcaywOpKlTWgZJHabprAN797xQj0EZqPd1SEeoF66hoHZJoTiRUWeXO1Noe+1XVw0yWA+bT1536ADeTvVjxN ikj6tX36rw0+JfzLmUPeWEOxAe4rBaVRGjg1BOdYLy8H918IqHiDSVVMrwHT/BnAtlEYlLqmnZSPBlVbbfBHmLwFb1CiXOp9rzY= 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 >>>>> "Eli" =3D=3D Eli Zaretskii writes: >> (gdb) p data >> $1 =3D (int *) 0x78bf26e00000 >> (gdb) p data[5] >> =E2=9D=8C=EF=B8=8F Cannot access memory at address 0x78bf26e00014 >>=20 >> After: >>=20 >> (gdb) p data >> $1 =3D (int *) 0x78bf26e00000 >> (gdb) p data[5] >> $2 =3D Eli> I wonder whether is really better here. You don't Eli> explain why "cannot access memory" needs improvement -- can you tell Eli> what is wrong with that? Eli> If anything, I'd say something more specific, like "could not be read Eli> from core file". There is a difference between "unavailable" (nobody saved the data) and "failed" (the pointer is bad, you have some kind of bug). Pointing this out when possible seems like an improvement to me. I agree that the wording could be more precise in some cases. At the same time I feel that's a separate issue from this patch. thanks, Tom