From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.bugs Subject: bug#53058: etc/DEBUG could say more about --enable-check-lisp-object-type Date: Thu, 06 Jan 2022 11:20:19 -0700 Message-ID: <87lezsd8v0.fsf@melete.silentflame.com> 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> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30868"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Notmuch/0.31.4 (https://notmuchmail.org) Emacs/29.0.50 (x86_64-pc-linux-gnu) To: 53058@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 06 19:21:18 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n5XO1-0007kQ-DE for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Jan 2022 19:21:18 +0100 Original-Received: from localhost ([::1]:37510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5XNz-0004A8-JC for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Jan 2022 13:21:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5XNm-00049W-HO for bug-gnu-emacs@gnu.org; Thu, 06 Jan 2022 13:21:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49234) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n5XNm-0008Qp-7u for bug-gnu-emacs@gnu.org; Thu, 06 Jan 2022 13:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n5XNm-0004jK-2v for bug-gnu-emacs@gnu.org; Thu, 06 Jan 2022 13:21:02 -0500 X-Loop: help-debbugs@gnu.org 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-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164149322718066 (code B ref -1); Thu, 06 Jan 2022 18:21:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Jan 2022 18:20:27 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 6 Jan 2022 13:20:20 -0500 (EST) Original-Received: by melete.silentflame.com (Postfix, from userid 1000) id C0E907F7ACE; Thu, 6 Jan 2022 11:20:19 -0700 (MST) In-Reply-To: <83v8yy9ybv.fsf@gnu.org> 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:223743 Archived-At: --=-=-= 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 --=-=-=--