From unknown Fri Aug 15 20:51:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53058: etc/DEBUG could say more about --enable-check-lisp-object-type Resent-From: Sean Whitton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Jan 2022 18:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53058 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 53058@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164149322718066 (code B ref -1); Thu, 06 Jan 2022 18:21:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Jan 2022 18:20:27 +0000 Received: from localhost ([127.0.0.1]:42136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5XND-0004hJ-4o for submit@debbugs.gnu.org; Thu, 06 Jan 2022 13:20:27 -0500 Received: from lists.gnu.org ([209.51.188.17]:39154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5XNB-0004h8-Ca for submit@debbugs.gnu.org; Thu, 06 Jan 2022 13:20:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5XNA-00048j-QP for bug-gnu-emacs@gnu.org; Thu, 06 Jan 2022 13:20:24 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:55545) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5XN8-0008M2-FP for bug-gnu-emacs@gnu.org; Thu, 06 Jan 2022 13:20:24 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 3E5063203779 for ; Thu, 6 Jan 2022 13:20:21 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 06 Jan 2022 13:20:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=lUtf/f6IU/MIU6NgPgnVS+61v2 CX6hXwWBlrxpXKvoc=; b=K63ZDmWpz5RuWXEb2r0zC0OssKLWZfOeQwBSGVjOAL e1/gyyeUCmRlsDTAyr+UMgDHvVIl9BjlCn8saQVRM1sIPyd2k2KlPvkcHzqlQgLk wPihMh+SDjjGaD+C/8jNLgg2UQbGck3rsRbJN3rJxoWH5BL3/0C0AF5kirQ7JOuG sP9m7N3y9OwYb8ZJ+AT8q4rfsQevVBUPvOmLJP7397Bo39asUcq4sIwO9u3oGae1 9dsDMIib0koUAWhG+BKZKeyvKlam7tQQD428SW+J1GWn39BQgCAPbiacwxoYJXCa gmU5arXvqGxG8iN49emsPoyxPHYKUFQKlAIeNhs7VL8A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=lUtf/f 6IU/MIU6NgPgnVS+61v2CX6hXwWBlrxpXKvoc=; b=dbi9aHlen8p0JHSI3fwOH3 X7KrQLCDewWrYyty+KEXlwrtf/cVNV8p8+14gegLKZZK+l7JE2Gy1pA4Yps8WfmN JXZDV1bKF7L5ZXPmbLueH9Zoz1gVunEqonNjMbPhqqlVMTYDziCUh5q0LT3v0UNe a7APyE7dQAWy+Nv3nhMkZa1uGip1M7/g0v7uepVzwzbi2nrHLY7LDau7LiGWkBuZ bzpBqfb+BesR7E2M2bFnw5gBPLUbCGjj6WXxcKqUMyybpCin3riVtRAARjul4+Aq RziKiYSjXsoGaqzXwszizdgK6VFcbADvojcvt0BtEz5QaZA0ABa3GfvrZc3adtdw == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudefledguddtlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufgjfhgffffkgggtsehmtd dtredtredtnecuhfhrohhmpefuvggrnhcuhghhihhtthhonhcuoehsphifhhhithhtohhn sehsphifhhhithhtohhnrdhnrghmvgeqnecuggftrfgrthhtvghrnhepgfeuueetvdekff egvdevteehjeeitedvuddvffehvefgtedvgffhteetffdvveejnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshhpfihhihhtthhonhesshhpfi hhihhtthhonhdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 6 Jan 2022 13:20:20 -0500 (EST) Received: by melete.silentflame.com (Postfix, from userid 1000) id C0E907F7ACE; Thu, 6 Jan 2022 11:20:19 -0700 (MST) From: Sean Whitton In-Reply-To: <83v8yy9ybv.fsf@gnu.org> References: <87zgoi8xve.fsf@melete.silentflame.com> <83r19uim2q.fsf@gnu.org> <871r1uyq1i.fsf@athena.silentflame.com> <8335mahr8f.fsf@gnu.org> <87v8z4mh5g.fsf@melete.silentflame.com> <83v8z4eygg.fsf@gnu.org> <87pmpbm8j2.fsf@melete.silentflame.com> <83v8z2eizk.fsf@gnu.org> <87pmp9wyo3.fsf@melete.silentflame.com> <83r19pc8ax.fsf@gnu.org> <87v8yzb1v7.fsf@melete.silentflame.com> <83v8yy9ybv.fsf@gnu.org> User-Agent: Notmuch/0.31.4 (https://notmuchmail.org) Emacs/29.0.50 (x86_64-pc-linux-gnu) Date: Thu, 06 Jan 2022 11:20:19 -0700 Message-ID: <87lezsd8v0.fsf@melete.silentflame.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=64.147.123.25; envelope-from=spwhitton@spwhitton.name; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) --=-=-= Content-Type: text/plain Hello, On Wed 05 Jan 2022 at 02:11PM +02, Eli Zaretskii wrote: > Comparisons with structures, like foo == Qnil, aren't guaranteed to > work in GDB. --enable-check-lisp-object-type makes Lisp objects be > structures rather than simple scalar values. Thanks -- how about the attached? -- Sean Whitton --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-etc-DEBUG-Say-more-about-enable-check-lisp-object-ty.patch >From eaf40f04614063010e60d14c9ba8ba48e4b842bc Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Thu, 6 Jan 2022 11:17:44 -0700 Subject: [PATCH] etc/DEBUG: Say more about --enable-check-lisp-object-type * etc/DEBUG: Explain how --enable-check-lisp-object-type can obstruct certain debugging strategies. Don't claim that this switch has no effect on debugging with GDB. --- etc/DEBUG | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/etc/DEBUG b/etc/DEBUG index dd33b42f19..6d0e27cbce 100644 --- a/etc/DEBUG +++ b/etc/DEBUG @@ -28,12 +28,21 @@ exceptionally hard. Older versions of GCC may need more than just the -g3 flag. For more, search for "analyze failed assertions" below. -The 2 --enable-* switches are optional. They don't have any effect on -debugging with GDB, but will compile additional code that might catch -the problem you are debugging much earlier, in the form of assertion -violation. The --enable-checking option also enables additional -functionality useful for debugging display problems; see more about -this below under "Debugging Emacs redisplay problems". +The 2 --enable-* switches are optional. They compile additional code +that might catch the problem you are debugging much earlier, in the +form of assertion violation. The --enable-checking option also +enables additional functionality useful for debugging display +problems; see more about this below under "Debugging Emacs redisplay +problems". + +You should be aware that the --enable-check-lisp-object-type option +changes Lisp objects from scalar values into structs, and this can +obstruct certain debugging strategies. In particular, asking GDB to +compare Lisp objects might not work. For example, consider this +attempt to conditionalize a break point: "condition 2 NILP (foo)". In +this case you are requesting that GDB make the comparison "foo == +Qnil", and you might need to recompile without +--enable-check-lisp-object-type for that to work. Emacs needs not be installed to be debugged, you can debug the binary created in the 'src' directory. -- 2.30.2 --=-=-=-- From unknown Fri Aug 15 20:51:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53058: etc/DEBUG could say more about --enable-check-lisp-object-type Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Jan 2022 20:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53058 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Sean Whitton Cc: 53058@debbugs.gnu.org Received: via spool by 53058-submit@debbugs.gnu.org id=B53058.16414998728227 (code B ref 53058); Thu, 06 Jan 2022 20:12:01 +0000 Received: (at 53058) by debbugs.gnu.org; 6 Jan 2022 20:11:12 +0000 Received: from localhost ([127.0.0.1]:42420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5Z6O-00028c-9I for submit@debbugs.gnu.org; Thu, 06 Jan 2022 15:11:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5Z6I-00027g-TD for 53058@debbugs.gnu.org; Thu, 06 Jan 2022 15:11:11 -0500 Received: from [2001:470:142:3::e] (port=54584 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5Z6D-0006fp-KJ; Thu, 06 Jan 2022 15:11:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xh1/EqINBl3QRbfVS7u4IdXSZLzMUlOb0VroAzXHPHA=; b=WTnnrq17/8gK xzOd0G7FrC5wL3+YmNfhWd+R+P4UQv+ljG+HHvOv9M2uBkigSo0v9kjj/XCRXGoz/CAIEYDEO+i5u QUXf72paknXjskRpT/SE04Gbp4YDnALgl74lXCw4KWBraA/fT1RpVX5rLGMr/9dZDUOFYwHZLynz3 BHbcctFCESRbMvEH9Kq9fC5oipEZTCeNtlBaCSZFZqg56wlQVJlpwOcf8Yj9C+Zr9HSa+DVdt0kZa f8dLmMdQ1UqOYKxofFn/9ceagxWjD4WKY/NVOOfscdPA93D214oTCrxqljS5MCYb9b6FRX0zAnjvM Kl2MFvM7FvShq34bsdqBBQ==; Received: from [87.69.77.57] (port=4112 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5Z6D-0002NB-KM; Thu, 06 Jan 2022 15:11:01 -0500 Date: Thu, 06 Jan 2022 22:11:15 +0200 Message-Id: <83iluw7hgc.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87lezsd8v0.fsf@melete.silentflame.com> (message from Sean Whitton on Thu, 06 Jan 2022 11:20:19 -0700) References: <87zgoi8xve.fsf@melete.silentflame.com> <83r19uim2q.fsf@gnu.org> <871r1uyq1i.fsf@athena.silentflame.com> <8335mahr8f.fsf@gnu.org> <87v8z4mh5g.fsf@melete.silentflame.com> <83v8z4eygg.fsf@gnu.org> <87pmpbm8j2.fsf@melete.silentflame.com> <83v8z2eizk.fsf@gnu.org> <87pmp9wyo3.fsf@melete.silentflame.com> <83r19pc8ax.fsf@gnu.org> <87v8yzb1v7.fsf@melete.silentflame.com> <83v8yy9ybv.fsf@gnu.org> <87lezsd8v0.fsf@melete.silentflame.com> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Sean Whitton > Date: Thu, 06 Jan 2022 11:20:19 -0700 > > > Comparisons with structures, like foo == Qnil, aren't guaranteed to > > work in GDB. --enable-check-lisp-object-type makes Lisp objects be > > structures rather than simple scalar values. > > Thanks -- how about the attached? Thanks, but the text there is inaccurate: NILP should still work with structures, only == comparison probably won't. I'm actually not sure we should describe such subtleties in etc/DEBUG. From unknown Fri Aug 15 20:51:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53058: etc/DEBUG could say more about --enable-check-lisp-object-type Resent-From: Sean Whitton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Jan 2022 23:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53058 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 53058@debbugs.gnu.org Received: via spool by 53058-submit@debbugs.gnu.org id=B53058.16415127976784 (code B ref 53058); Thu, 06 Jan 2022 23:47:01 +0000 Received: (at 53058) by debbugs.gnu.org; 6 Jan 2022 23:46:37 +0000 Received: from localhost ([127.0.0.1]:42663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5cSq-0001lM-Oq for submit@debbugs.gnu.org; Thu, 06 Jan 2022 18:46:36 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:51025) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5cSm-0001l1-VR for 53058@debbugs.gnu.org; Thu, 06 Jan 2022 18:46:35 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id BFB203200583; Thu, 6 Jan 2022 18:46:26 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 06 Jan 2022 18:46:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=5s4LVdWg6x7inWWIrLZgyMYYzY +v7hdMGJ/PvvK7WyQ=; b=DJTTBq5IR5kaOQ/IqK7z2CE/j5H4KK6W9djTVwmy+r bIIXRtBZXdfNX+FtPGUBe+Ox/V9ffPiX/8KLbUc/zeOhhTrTxFhPNT64SxxbBXEr 4JQyQeZHJULcHVIWeyVIf6Uk1vMWV7HsLpyKpKgKGmGGHCObtN/KbqspVJnGgb03 bo9Iyac0TFaza7aALY35QAfJWdJM2UDKRhYDa4jeCDvUGz34FA4MQVLzcYrZ4YHU CzR7KWxCl5PX9rlW/P06J39MFKbNocuOc3+wI4j3IZi8SeAQAliJK5mqn6Mg1poz WXuMVIHsn/OnOHHlSvs3J1NgZ52UrkE1VZCnLvNtnY4A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=5s4LVd Wg6x7inWWIrLZgyMYYzY+v7hdMGJ/PvvK7WyQ=; b=oAf/cAXsHS1ZYdHFdmkxOd OqA4n12It9/seYIWRVhwC/r57kx7jr4HukxYRurV5oqZstZ3AV7YoV/DpangqBsA cjyrHUn/WbNQwGSoHlXEItvVBXTgdpA58X37EBVXuTba8mzlHQynh+Lg+yIEok95 bG0z/F0hHrStRNrLzoVJIij/j4z78HACPcypZisTj4X1I5Bbe/QizHNKpf2y6qp+ 5nGLl5fyVZ8FW0nT7q3IVk1+VB9MpB1MiCD+F1Ebc5pyRLFaHI6GVy9IQO+YoEda Vp0F/+ka4lpW4jDmHAU63Gv8Fj3wjCA7byTpk0VU9qb1FKeFpDqua7GqkI/vsF9g == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudegtddguddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhgffffkgggtsehttddttddtredtnecuhfhrohhmpefuvggrnhcu hghhihhtthhonhcuoehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvgeqne cuggftrfgrthhtvghrnhepleeggefgvdeijedvhfdugfegtefgkeekueeileejjeehudeg geefteeghfeuffeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 6 Jan 2022 18:46:25 -0500 (EST) Received: by melete.silentflame.com (Postfix, from userid 1000) id 05FB17F9772; Thu, 6 Jan 2022 16:46:25 -0700 (MST) From: Sean Whitton In-Reply-To: <83iluw7hgc.fsf@gnu.org> References: <87zgoi8xve.fsf@melete.silentflame.com> <83r19uim2q.fsf@gnu.org> <871r1uyq1i.fsf@athena.silentflame.com> <8335mahr8f.fsf@gnu.org> <87v8z4mh5g.fsf@melete.silentflame.com> <83v8z4eygg.fsf@gnu.org> <87pmpbm8j2.fsf@melete.silentflame.com> <83v8z2eizk.fsf@gnu.org> <87pmp9wyo3.fsf@melete.silentflame.com> <83r19pc8ax.fsf@gnu.org> <87v8yzb1v7.fsf@melete.silentflame.com> <83v8yy9ybv.fsf@gnu.org> <87lezsd8v0.fsf@melete.silentflame.com> <83iluw7hgc.fsf@gnu.org> User-Agent: Notmuch/0.31.4 (https://notmuchmail.org) Emacs/29.0.50 (x86_64-pc-linux-gnu) Date: Thu, 06 Jan 2022 16:46:24 -0700 Message-ID: <87v8ywbf73.fsf@melete.silentflame.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, On Thu 06 Jan 2022 at 10:11PM +02, Eli Zaretskii wrote: >> From: Sean Whitton >> Date: Thu, 06 Jan 2022 11:20:19 -0700 >> >> > Comparisons with structures, like foo == Qnil, aren't guaranteed to >> > work in GDB. --enable-check-lisp-object-type makes Lisp objects be >> > structures rather than simple scalar values. >> >> Thanks -- how about the attached? > > Thanks, but the text there is inaccurate: NILP should still work with > structures, only == comparison probably won't. > > I'm actually not sure we should describe such subtleties in etc/DEBUG. Fair -- what do you think about just saying that certain gdb features might not work, so one thing that you can try is to drop the flag? The claim that it doesn't affect debugging at all is what threw me off recently, so that's the thing I'd really like to improve, I guess. -- Sean Whitton From unknown Fri Aug 15 20:51:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53058: etc/DEBUG could say more about --enable-check-lisp-object-type Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Jan 2022 06:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53058 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Sean Whitton Cc: 53058@debbugs.gnu.org Received: via spool by 53058-submit@debbugs.gnu.org id=B53058.164153871321088 (code B ref 53058); Fri, 07 Jan 2022 06:59:01 +0000 Received: (at 53058) by debbugs.gnu.org; 7 Jan 2022 06:58:33 +0000 Received: from localhost ([127.0.0.1]:42880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5jCp-0005Tt-CS for submit@debbugs.gnu.org; Fri, 07 Jan 2022 01:58:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5jCo-0005TR-Et for 53058@debbugs.gnu.org; Fri, 07 Jan 2022 01:58:30 -0500 Received: from [2001:470:142:3::e] (port=38036 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5jCj-0006Oy-39; Fri, 07 Jan 2022 01:58:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=5HVXxDij89F0+SgXSNJnT8NxOkg8zmzgbvHdKMUSW1s=; b=U8oJlnEfp0kC 6wlBpipO0XIrFYS6T1VFrfncbcw1f3QNBbiS61+ScOCpZA0BVZSbn4pmlg36V4ojxSUiHsfJUQWvm Iui/s2652fQi4cJZSV7VZWwRc4rkA/0lRIRH2DBqrTDP/aJJRosf0cf6obi+6ehlOkXd8+MK/b69d Su+kn7aDjnNEh13YHE6ZfL6MPu6NvP9ugOd3LhezyzoqX3ZA2e+UFoVsUIBwW/bBQx7u9yc7pg0oF txcHZIhxzyqgnPNEZ4MrUTGLhH2/tSCzI1sPO2rJ8wrS3rolOcWN5GS5mX5tIufWD1SpVqBdKhijv YN+/U5w9HHwXa+GSYMXMzQ==; Received: from [87.69.77.57] (port=3831 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5jCj-00074H-4B; Fri, 07 Jan 2022 01:58:25 -0500 Date: Fri, 07 Jan 2022 08:58:40 +0200 Message-Id: <835yqw6nhb.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87v8ywbf73.fsf@melete.silentflame.com> (message from Sean Whitton on Thu, 06 Jan 2022 16:46:24 -0700) References: <87zgoi8xve.fsf@melete.silentflame.com> <83r19uim2q.fsf@gnu.org> <871r1uyq1i.fsf@athena.silentflame.com> <8335mahr8f.fsf@gnu.org> <87v8z4mh5g.fsf@melete.silentflame.com> <83v8z4eygg.fsf@gnu.org> <87pmpbm8j2.fsf@melete.silentflame.com> <83v8z2eizk.fsf@gnu.org> <87pmp9wyo3.fsf@melete.silentflame.com> <83r19pc8ax.fsf@gnu.org> <87v8yzb1v7.fsf@melete.silentflame.com> <83v8yy9ybv.fsf@gnu.org> <87lezsd8v0.fsf@melete.silentflame.com> <83iluw7hgc.fsf@gnu.org> <87v8ywbf73.fsf@melete.silentflame.com> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Sean Whitton > Cc: 53058@debbugs.gnu.org > Date: Thu, 06 Jan 2022 16:46:24 -0700 > > Hello, > > On Thu 06 Jan 2022 at 10:11PM +02, Eli Zaretskii wrote: > > >> From: Sean Whitton > >> Date: Thu, 06 Jan 2022 11:20:19 -0700 > >> > >> > Comparisons with structures, like foo == Qnil, aren't guaranteed to > >> > work in GDB. --enable-check-lisp-object-type makes Lisp objects be > >> > structures rather than simple scalar values. > >> > >> Thanks -- how about the attached? > > > > Thanks, but the text there is inaccurate: NILP should still work with > > structures, only == comparison probably won't. > > > > I'm actually not sure we should describe such subtleties in etc/DEBUG. > > Fair -- what do you think about just saying that certain gdb features > might not work, so one thing that you can try is to drop the flag? The > claim that it doesn't affect debugging at all is what threw me off > recently, so that's the thing I'd really like to improve, I guess. But it really doesn't affect the debugging. You just need to understand what it does, and if we describe this in etc/DEBUG, we'd need to describe gobs of other similar factoids about the various build options. From unknown Fri Aug 15 20:51:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53058: etc/DEBUG could say more about --enable-check-lisp-object-type Resent-From: Sean Whitton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Jan 2022 20:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53058 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 53058@debbugs.gnu.org Received: via spool by 53058-submit@debbugs.gnu.org id=B53058.16415881234391 (code B ref 53058); Fri, 07 Jan 2022 20:43:01 +0000 Received: (at 53058) by debbugs.gnu.org; 7 Jan 2022 20:42:03 +0000 Received: from localhost ([127.0.0.1]:45959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5w3n-00018l-0q for submit@debbugs.gnu.org; Fri, 07 Jan 2022 15:42:03 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:59975) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5w3j-00018D-Kp for 53058@debbugs.gnu.org; Fri, 07 Jan 2022 15:42:01 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 114885C00AF; Fri, 7 Jan 2022 15:41:54 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 07 Jan 2022 15:41:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=a/6WdeBqhDGdGjLrEt1XOIzOFV vmqjjv0++JkrkcGjg=; b=nl9UzqbMWcW33IYIcxA2TNl8I7YFm2ar2O3kIJrnO5 yK+pmgPRMsOMMTmtX4hERGqACZXhvOf5vr5lscPP+KdqTcsOeOWRB+KAqafSLivD 7esfW8yCy4jlVG0z4OEsYdoDO20izQVHGkAVDaV8YJg1RtIkbYanSxGpOVoHVjoO rpc2DGL1bsuMlBLi/Xdd5xo/lEi5NclOTGtivOrKevTMKg3IgnzEpcmL4n1rrbd0 yzAmLGGpTUQrqPEY3M6cspSe3yvd7H8UVSGhbQklh48HWcptbrrYKqeAFo8I3Ky8 Tk1/kPu5XJYXS1xwD1yccEcXHLXPNA5PiqYjxl8eTOOw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=a/6Wde BqhDGdGjLrEt1XOIzOFVvmqjjv0++JkrkcGjg=; b=ecV9qtVxLzcwP9GXb4OncG sKHdPB3pCA3fOq5G12A2OIOq3PZ1VHM2vtP4DVHj9EPVCOYcrmJyLuNepUzJgxtX lQTqW8oUDJsbTxXyEvSAZUBlb2M7b5Bn2dPcr3/4KhiENmwXeFBia4xM/YFhq3G/ g+MIL6Ljy7jwpMzq7S77p2b4BOXGwz2eMEGoGiHlCyJX40bD6/J8rHPjqGlynXwn VH3NDFanIIGTmeQ7/ihA1/3CbsUcyxLIDR/ZL34afjoe83/14FA89HIuwNSh872R MQ8c4XEgU3Tggo1tIsHSf0inAqZ6ijrkGIJ/i3Aujk2zdwNjUqUIoHa6YepTd6cA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudegvddgudduhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffujghffgffkfggtgesthdttddttdertdenucfhrhhomhepufgvrghn ucghhhhithhtohhnuceoshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgvqe enucggtffrrghtthgvrhhnpeelgeeggfdvieejvdfhudfggeetgfekkeeuieeljeejhedu geegfeetgefhueffkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 7 Jan 2022 15:41:53 -0500 (EST) Received: by melete.silentflame.com (Postfix, from userid 1000) id C4C5B7E1BE9; Fri, 7 Jan 2022 13:41:52 -0700 (MST) From: Sean Whitton In-Reply-To: <835yqw6nhb.fsf@gnu.org> References: <87zgoi8xve.fsf@melete.silentflame.com> <83r19uim2q.fsf@gnu.org> <871r1uyq1i.fsf@athena.silentflame.com> <8335mahr8f.fsf@gnu.org> <87v8z4mh5g.fsf@melete.silentflame.com> <83v8z4eygg.fsf@gnu.org> <87pmpbm8j2.fsf@melete.silentflame.com> <83v8z2eizk.fsf@gnu.org> <87pmp9wyo3.fsf@melete.silentflame.com> <83r19pc8ax.fsf@gnu.org> <87v8yzb1v7.fsf@melete.silentflame.com> <83v8yy9ybv.fsf@gnu.org> <87lezsd8v0.fsf@melete.silentflame.com> <83iluw7hgc.fsf@gnu.org> <87v8ywbf73.fsf@melete.silentflame.com> <835yqw6nhb.fsf@gnu.org> User-Agent: Notmuch/0.31.4 (https://notmuchmail.org) Emacs/29.0.50 (x86_64-pc-linux-gnu) Date: Fri, 07 Jan 2022 13:41:52 -0700 Message-ID: <87o84nb7n3.fsf@melete.silentflame.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, On Fri 07 Jan 2022 at 08:58AM +02, Eli Zaretskii wrote: > But it really doesn't affect the debugging. You just need to > understand what it does, and if we describe this in etc/DEBUG, we'd > need to describe gobs of other similar factoids about the various > build options. Well, it doesn't affect the debugging in the way that the CFLAGS discussed there do, sure, but from a less experienced gdb user's point of view, it does indeed affect the debugging. In my case, I encountered a problem setting a conditional break point, and I wouldn't have even considered revisiting that flag because I had just read text which I took to be telling me that the flag wasn't connected with the way gdb works. I had to wait for your input to learn that it is connected, in a relevant sense. To me, conditionalising break points is a fundamental debugging action, something that a beginner is likely to want to do. And it's Emacs, so chances are those conditions will involve Lisp objects. So having instructions aimed at someone just getting started telling you to use a flag which makes that basic debugging action much less likely to work seems worth improving. Do you have any other ideas as to how that could be done? Thanks. -- Sean Whitton From unknown Fri Aug 15 20:51:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53058: etc/DEBUG could say more about --enable-check-lisp-object-type Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Jan 2022 06:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53058 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Sean Whitton Cc: 53058@debbugs.gnu.org Received: via spool by 53058-submit@debbugs.gnu.org id=B53058.164162494723903 (code B ref 53058); Sat, 08 Jan 2022 06:56:01 +0000 Received: (at 53058) by debbugs.gnu.org; 8 Jan 2022 06:55:47 +0000 Received: from localhost ([127.0.0.1]:46241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n65di-0006DS-P9 for submit@debbugs.gnu.org; Sat, 08 Jan 2022 01:55:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n65df-0006D9-Lj for 53058@debbugs.gnu.org; Sat, 08 Jan 2022 01:55:45 -0500 Received: from [2001:470:142:3::e] (port=51498 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n65da-0006NT-5g; Sat, 08 Jan 2022 01:55:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=mV0g/SmpVHrekacrQz7boiAyZI8wtXcXUmi7mAWErHk=; b=LT/7ykaCJAjo Ta38YniAEG7MvJbkPRTqAI3yD6TtA7RGLrfL+YivmUKjWfBh7yEAsnhz/I8Sw/p1BmfWcx3ICDY8A 2SedYQimrrf+HSkX7ToPHdfGgPmR9BYIvZLDcZ1va7202INQtoASVjzvgkeRN3g8oZ+JBg1e3+vWU IDDukvwwG35jU0M7sV5cMPQKgjFMDixVvFD/DyVtjZYekS18pxqHyfSlYU02DwI86TacquTWmjl/m 8ZUQo8zEI/SR6ppQp2lXsNu/2NQwjgFvTshuhrknT3M1zk70lCJ3/wHQmz6grTcR1gAyNwgf1P6MO bY01sQ6LmwISk4AuvdXivg==; Received: from [87.69.77.57] (port=4775 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n65dW-0007fK-GO; Sat, 08 Jan 2022 01:55:36 -0500 Date: Sat, 08 Jan 2022 08:55:18 +0200 Message-Id: <83lezq4syx.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87o84nb7n3.fsf@melete.silentflame.com> (message from Sean Whitton on Fri, 07 Jan 2022 13:41:52 -0700) References: <87zgoi8xve.fsf@melete.silentflame.com> <83r19uim2q.fsf@gnu.org> <871r1uyq1i.fsf@athena.silentflame.com> <8335mahr8f.fsf@gnu.org> <87v8z4mh5g.fsf@melete.silentflame.com> <83v8z4eygg.fsf@gnu.org> <87pmpbm8j2.fsf@melete.silentflame.com> <83v8z2eizk.fsf@gnu.org> <87pmp9wyo3.fsf@melete.silentflame.com> <83r19pc8ax.fsf@gnu.org> <87v8yzb1v7.fsf@melete.silentflame.com> <83v8yy9ybv.fsf@gnu.org> <87lezsd8v0.fsf@melete.silentflame.com> <83iluw7hgc.fsf@gnu.org> <87v8ywbf73.fsf@melete.silentflame.com> <835yqw6nhb.fsf@gnu.org> <87o84nb7n3.fsf@melete.silentflame.com> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Sean Whitton > Cc: 53058@debbugs.gnu.org > Date: Fri, 07 Jan 2022 13:41:52 -0700 > > To me, conditionalising break points is a fundamental debugging action, > something that a beginner is likely to want to do. And it's Emacs, so > chances are those conditions will involve Lisp objects. So having > instructions aimed at someone just getting started telling you to use a > flag which makes that basic debugging action much less likely to work > seems worth improving. Do you have any other ideas as to how that could > be done? The reasons for the problem in your case is not known: NILP should have worked, as did the comparison with Qnil. Until we understand why those didn't work, I don't see how we can say anything in etc/DEBUG that would both be useful and important/general enough to have there. My best advice is to try to understand why those conditions didn't work on your system. Maybe someone here knowns, or maybe you should ask on the GDB mailing list (gdb@sourceware.org). From unknown Fri Aug 15 20:51:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53058: etc/DEBUG could say more about --enable-check-lisp-object-type Resent-From: Sean Whitton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Feb 2022 00:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53058 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 53058@debbugs.gnu.org Received: via spool by 53058-submit@debbugs.gnu.org id=B53058.16438475543680 (code B ref 53058); Thu, 03 Feb 2022 00:20:02 +0000 Received: (at 53058) by debbugs.gnu.org; 3 Feb 2022 00:19:14 +0000 Received: from localhost ([127.0.0.1]:53974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFPqE-0000xI-Hz for submit@debbugs.gnu.org; Wed, 02 Feb 2022 19:19:14 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:47463) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFPqC-0000x6-Uh for 53058@debbugs.gnu.org; Wed, 02 Feb 2022 19:19:13 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id D9C3C3201F68; Wed, 2 Feb 2022 19:19:06 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 02 Feb 2022 19:19:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc:cc:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; bh=960RcqYr5JqsaryryMZ9ONMcp9OKs8 px+8P29bTFB08=; b=vbThHvNFDCdb10wZxEhFmTA48Qm/vsR4VdtTlbenrTnWgz p7iZmOIwmVfrlt+vokB0zm0LerxM6Wiz5+i7s6lN/rcQbQqxs+J8HaDuM0VJv6yk vjJEmHcFUlEgR2txxVvz+D2i1fhNd7ZWZetCZWBmq+fYFiQ8N/Zd7HOHWCnF3k+h a/L0kocq8HYnpxgoFTQ1fHHYPrvi06d1PgKyRy5FJUqMwTgIjVYJ2NcaTaVzOF9H yni05siOKV63Wn1xwCB9GhwQ60FqoXvCceOtn+fPCQ0Gf51W87C8sK4kB+KRoK6q 7u9JWTaCzMRIbpksdUkcxR27UsS3lGDybZxCOIVQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=960RcqYr5Jqsaryry MZ9ONMcp9OKs8px+8P29bTFB08=; b=WAaLAMV8eUTHK19N+ncYrGyBN+h2Ntv/u RINGJoK8BQfbn/s6AOT63UYMMPmhfJPW+JD3evXv+8ONC+SIZJllitJJQgfyEpJE NXkuwSqDSjG/nnpqXdq/C53hWj2LUfKUx3T7jg66fIIsxlX5TtSf652gmNE3PEZU Aia3ZGkWD2+C1ptztrQkG7lEgvpeUpTce50EzxiVIX2jYh1YbcNSWZ+Azx48OqiD 1mukh1TGBVFEROQYLU0BFpVquVtWguyzjSCm+5dIjpIdkU5UjKfwnx09mzuU0uvZ cBjxtQ+rmWI1S1CHgMmpkKh9bPnw4HWV8F0oKac9tmVo6Sj7UQG+g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrgeeigddukecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffujghffgffkfggtgesthdttddttdertdenucfhrhhomhepufgvrghnucgh hhhithhtohhnuceoshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgvqeenuc ggtffrrghtthgvrhhnpeelgeeggfdvieejvdfhudfggeetgfekkeeuieeljeejhedugeeg feetgefhueffkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 2 Feb 2022 19:19:06 -0500 (EST) Received: by athena.silentflame.com (Postfix, from userid 1000) id EA0E61D253C; Thu, 3 Feb 2022 00:19:04 +0000 (UTC) From: Sean Whitton In-Reply-To: <83lezq4syx.fsf@gnu.org> References: <87zgoi8xve.fsf@melete.silentflame.com> <83r19uim2q.fsf@gnu.org> <871r1uyq1i.fsf@athena.silentflame.com> <8335mahr8f.fsf@gnu.org> <87v8z4mh5g.fsf@melete.silentflame.com> <83v8z4eygg.fsf@gnu.org> <87pmpbm8j2.fsf@melete.silentflame.com> <83v8z2eizk.fsf@gnu.org> <87pmp9wyo3.fsf@melete.silentflame.com> <83r19pc8ax.fsf@gnu.org> <87v8yzb1v7.fsf@melete.silentflame.com> <83v8yy9ybv.fsf@gnu.org> <87lezsd8v0.fsf@melete.silentflame.com> <83iluw7hgc.fsf@gnu.org> <87v8ywbf73.fsf@melete.silentflame.com> <835yqw6nhb.fsf@gnu.org> <87o84nb7n3.fsf@melete.silentflame.com> <83lezq4syx.fsf@gnu.org> User-Agent: Notmuch/0.31.4 (https://notmuchmail.org) Emacs/29.0.50 (x86_64-pc-linux-gnu) Date: Wed, 02 Feb 2022 17:19:04 -0700 Message-ID: <87tudghkef.fsf@athena.silentflame.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, On Sat 08 Jan 2022 at 08:55am +02, Eli Zaretskii wrote: > The reasons for the problem in your case is not known: NILP should > have worked, as did the comparison with Qnil. Until we understand why > those didn't work, I don't see how we can say anything in etc/DEBUG > that would both be useful and important/general enough to have there. > > My best advice is to try to understand why those conditions didn't > work on your system. Maybe someone here knowns, or maybe you should > ask on the GDB mailing list (gdb@sourceware.org). If I understand you correctly: we don't yet know exactly what was going wrong on my machine when I tried to set the conditional break point, so we lack a concrete case in which --enable-check-lisp-object-type affected debugging with GDB, and we are thus not in a position to assert in etc/DEBUG that --enable-check-lisp-object-type has the potential to have an effect on debugging with gdb? When you wrote that comparisons with structs are not guaranteed to work with gdb, you were /not/ going as far as saying that comparisons with structs are never expected to work (because that would imply that --enable-check-lisp-object-type would often lead to issues when debugging)? If this summary is right, I think this bug should be closed. Thanks. -- Sean Whitton From unknown Fri Aug 15 20:51:57 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Sean Whitton Subject: bug#53058: closed (Re: bug#53058: etc/DEBUG could say more about --enable-check-lisp-object-type) Message-ID: References: <83h79g5rym.fsf@gnu.org> <87lezsd8v0.fsf@melete.silentflame.com> X-Gnu-PR-Message: they-closed 53058 X-Gnu-PR-Package: emacs Reply-To: 53058@debbugs.gnu.org Date: Thu, 03 Feb 2022 07:29:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1643873342-25406-1" This is a multi-part message in MIME format... ------------=_1643873342-25406-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #53058: etc/DEBUG could say more about --enable-check-lisp-object-type which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 53058@debbugs.gnu.org. --=20 53058: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D53058 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1643873342-25406-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 53058-done) by debbugs.gnu.org; 3 Feb 2022 07:28:52 +0000 Received: from localhost ([127.0.0.1]:54271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFWXz-0006bL-R6 for submit@debbugs.gnu.org; Thu, 03 Feb 2022 02:28:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFWXy-0006bA-Q4 for 53058-done@debbugs.gnu.org; Thu, 03 Feb 2022 02:28:51 -0500 Received: from [2001:470:142:3::e] (port=56780 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFWXt-0004MA-EA; Thu, 03 Feb 2022 02:28:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=fv8xsQ6HSyYFjpfxyb98zLmwOQt7cggkVy0PyvI7Rcg=; b=gdYBZJJ9H6a+ YFnQxBy/nzRvYyWK3ZyojKtQBkCwp83Y+5g2ZfWDxWbbJjEcFzMDEAbFDTVaP1uqw2zAroZwAq0MA HoXSt6P9qpbeqT5nJ3MwaAuYxIP6p4O97Z0Bv0twHi1F9x3N1/Lbo2ZLHPJHbBeTOsK+nkqi58vs7 Dp5W1xU4Tdt/exzGrsLaOcKPHW8ip9fGaa5ctanrgYDw0cR4Gxz+N6jcL297MNih2LFSN06R3QmK7 NXGZrn68akp85Tm8BBxOJVwtIDrTMCHqxoWzeZhxzs2nwR5329Li3Fif3Kz4LibCsKbum20VhSk6m Il/cTo1qU6/4+JSQDoQdjg==; Received: from [87.69.77.57] (port=1614 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFWXs-000688-QJ; Thu, 03 Feb 2022 02:28:45 -0500 Date: Thu, 03 Feb 2022 09:28:49 +0200 Message-Id: <83h79g5rym.fsf@gnu.org> From: Eli Zaretskii To: Sean Whitton In-Reply-To: <87tudghkef.fsf@athena.silentflame.com> (message from Sean Whitton on Wed, 02 Feb 2022 17:19:04 -0700) Subject: Re: bug#53058: etc/DEBUG could say more about --enable-check-lisp-object-type References: <87zgoi8xve.fsf@melete.silentflame.com> <83r19uim2q.fsf@gnu.org> <871r1uyq1i.fsf@athena.silentflame.com> <8335mahr8f.fsf@gnu.org> <87v8z4mh5g.fsf@melete.silentflame.com> <83v8z4eygg.fsf@gnu.org> <87pmpbm8j2.fsf@melete.silentflame.com> <83v8z2eizk.fsf@gnu.org> <87pmp9wyo3.fsf@melete.silentflame.com> <83r19pc8ax.fsf@gnu.org> <87v8yzb1v7.fsf@melete.silentflame.com> <83v8yy9ybv.fsf@gnu.org> <87lezsd8v0.fsf@melete.silentflame.com> <83iluw7hgc.fsf@gnu.org> <87v8ywbf73.fsf@melete.silentflame.com> <835yqw6nhb.fsf@gnu.org> <87o84nb7n3.fsf@melete.silentflame.com> <83lezq4syx.fsf@gnu.org> <87tudghkef.fsf@athena.silentflame.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53058-done Cc: 53058-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Sean Whitton > Cc: 53058@debbugs.gnu.org > Date: Wed, 02 Feb 2022 17:19:04 -0700 > > Hello, > > On Sat 08 Jan 2022 at 08:55am +02, Eli Zaretskii wrote: > > > The reasons for the problem in your case is not known: NILP should > > have worked, as did the comparison with Qnil. Until we understand why > > those didn't work, I don't see how we can say anything in etc/DEBUG > > that would both be useful and important/general enough to have there. > > > > My best advice is to try to understand why those conditions didn't > > work on your system. Maybe someone here knowns, or maybe you should > > ask on the GDB mailing list (gdb@sourceware.org). > > If I understand you correctly: we don't yet know exactly what was going > wrong on my machine when I tried to set the conditional break point, so > we lack a concrete case in which --enable-check-lisp-object-type > affected debugging with GDB, and we are thus not in a position to assert > in etc/DEBUG that --enable-check-lisp-object-type has the potential to > have an effect on debugging with gdb? Yes. > When you wrote that comparisons with structs are not guaranteed to work > with gdb, you were /not/ going as far as saying that comparisons with > structs are never expected to work (because that would imply that > --enable-check-lisp-object-type would often lead to issues when > debugging)? Yes. > If this summary is right, I think this bug should be closed. OK, closing. ------------=_1643873342-25406-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 6 Jan 2022 18:20:27 +0000 Received: from localhost ([127.0.0.1]:42136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5XND-0004hJ-4o for submit@debbugs.gnu.org; Thu, 06 Jan 2022 13:20:27 -0500 Received: from lists.gnu.org ([209.51.188.17]:39154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5XNB-0004h8-Ca for submit@debbugs.gnu.org; Thu, 06 Jan 2022 13:20:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5XNA-00048j-QP for bug-gnu-emacs@gnu.org; Thu, 06 Jan 2022 13:20:24 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:55545) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5XN8-0008M2-FP for bug-gnu-emacs@gnu.org; Thu, 06 Jan 2022 13:20:24 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 3E5063203779 for ; Thu, 6 Jan 2022 13:20:21 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 06 Jan 2022 13:20:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=lUtf/f6IU/MIU6NgPgnVS+61v2 CX6hXwWBlrxpXKvoc=; b=K63ZDmWpz5RuWXEb2r0zC0OssKLWZfOeQwBSGVjOAL e1/gyyeUCmRlsDTAyr+UMgDHvVIl9BjlCn8saQVRM1sIPyd2k2KlPvkcHzqlQgLk wPihMh+SDjjGaD+C/8jNLgg2UQbGck3rsRbJN3rJxoWH5BL3/0C0AF5kirQ7JOuG sP9m7N3y9OwYb8ZJ+AT8q4rfsQevVBUPvOmLJP7397Bo39asUcq4sIwO9u3oGae1 9dsDMIib0koUAWhG+BKZKeyvKlam7tQQD428SW+J1GWn39BQgCAPbiacwxoYJXCa gmU5arXvqGxG8iN49emsPoyxPHYKUFQKlAIeNhs7VL8A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=lUtf/f 6IU/MIU6NgPgnVS+61v2CX6hXwWBlrxpXKvoc=; b=dbi9aHlen8p0JHSI3fwOH3 X7KrQLCDewWrYyty+KEXlwrtf/cVNV8p8+14gegLKZZK+l7JE2Gy1pA4Yps8WfmN JXZDV1bKF7L5ZXPmbLueH9Zoz1gVunEqonNjMbPhqqlVMTYDziCUh5q0LT3v0UNe a7APyE7dQAWy+Nv3nhMkZa1uGip1M7/g0v7uepVzwzbi2nrHLY7LDau7LiGWkBuZ bzpBqfb+BesR7E2M2bFnw5gBPLUbCGjj6WXxcKqUMyybpCin3riVtRAARjul4+Aq RziKiYSjXsoGaqzXwszizdgK6VFcbADvojcvt0BtEz5QaZA0ABa3GfvrZc3adtdw == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudefledguddtlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufgjfhgffffkgggtsehmtd dtredtredtnecuhfhrohhmpefuvggrnhcuhghhihhtthhonhcuoehsphifhhhithhtohhn sehsphifhhhithhtohhnrdhnrghmvgeqnecuggftrfgrthhtvghrnhepgfeuueetvdekff egvdevteehjeeitedvuddvffehvefgtedvgffhteetffdvveejnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshhpfihhihhtthhonhesshhpfi hhihhtthhonhdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 6 Jan 2022 13:20:20 -0500 (EST) Received: by melete.silentflame.com (Postfix, from userid 1000) id C0E907F7ACE; Thu, 6 Jan 2022 11:20:19 -0700 (MST) From: Sean Whitton To: bug-gnu-emacs@gnu.org Subject: etc/DEBUG could say more about --enable-check-lisp-object-type In-Reply-To: <83v8yy9ybv.fsf@gnu.org> References: <87zgoi8xve.fsf@melete.silentflame.com> <83r19uim2q.fsf@gnu.org> <871r1uyq1i.fsf@athena.silentflame.com> <8335mahr8f.fsf@gnu.org> <87v8z4mh5g.fsf@melete.silentflame.com> <83v8z4eygg.fsf@gnu.org> <87pmpbm8j2.fsf@melete.silentflame.com> <83v8z2eizk.fsf@gnu.org> <87pmp9wyo3.fsf@melete.silentflame.com> <83r19pc8ax.fsf@gnu.org> <87v8yzb1v7.fsf@melete.silentflame.com> <83v8yy9ybv.fsf@gnu.org> User-Agent: Notmuch/0.31.4 (https://notmuchmail.org) Emacs/29.0.50 (x86_64-pc-linux-gnu) Date: Thu, 06 Jan 2022 11:20:19 -0700 Message-ID: <87lezsd8v0.fsf@melete.silentflame.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=64.147.123.25; envelope-from=spwhitton@spwhitton.name; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) --=-=-= Content-Type: text/plain Hello, On Wed 05 Jan 2022 at 02:11PM +02, Eli Zaretskii wrote: > Comparisons with structures, like foo == Qnil, aren't guaranteed to > work in GDB. --enable-check-lisp-object-type makes Lisp objects be > structures rather than simple scalar values. Thanks -- how about the attached? -- Sean Whitton --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-etc-DEBUG-Say-more-about-enable-check-lisp-object-ty.patch >From eaf40f04614063010e60d14c9ba8ba48e4b842bc Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Thu, 6 Jan 2022 11:17:44 -0700 Subject: [PATCH] etc/DEBUG: Say more about --enable-check-lisp-object-type * etc/DEBUG: Explain how --enable-check-lisp-object-type can obstruct certain debugging strategies. Don't claim that this switch has no effect on debugging with GDB. --- etc/DEBUG | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/etc/DEBUG b/etc/DEBUG index dd33b42f19..6d0e27cbce 100644 --- a/etc/DEBUG +++ b/etc/DEBUG @@ -28,12 +28,21 @@ exceptionally hard. Older versions of GCC may need more than just the -g3 flag. For more, search for "analyze failed assertions" below. -The 2 --enable-* switches are optional. They don't have any effect on -debugging with GDB, but will compile additional code that might catch -the problem you are debugging much earlier, in the form of assertion -violation. The --enable-checking option also enables additional -functionality useful for debugging display problems; see more about -this below under "Debugging Emacs redisplay problems". +The 2 --enable-* switches are optional. They compile additional code +that might catch the problem you are debugging much earlier, in the +form of assertion violation. The --enable-checking option also +enables additional functionality useful for debugging display +problems; see more about this below under "Debugging Emacs redisplay +problems". + +You should be aware that the --enable-check-lisp-object-type option +changes Lisp objects from scalar values into structs, and this can +obstruct certain debugging strategies. In particular, asking GDB to +compare Lisp objects might not work. For example, consider this +attempt to conditionalize a break point: "condition 2 NILP (foo)". In +this case you are requesting that GDB make the comparison "foo == +Qnil", and you might need to recompile without +--enable-check-lisp-object-type for that to work. Emacs needs not be installed to be debugged, you can debug the binary created in the 'src' directory. -- 2.30.2 --=-=-=-- ------------=_1643873342-25406-1--