From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#30019: 26.0.90; Invalid specification of parent-frame with desktop-read Date: Tue, 09 Jan 2018 20:40:14 +0200 Message-ID: <83zi5m6fld.fsf@gnu.org> References: <5A533F8D.3080307@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1515523159 31517 195.159.176.226 (9 Jan 2018 18:39:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 9 Jan 2018 18:39:19 +0000 (UTC) Cc: 30019@debbugs.gnu.org To: Aaron Jensen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 09 19:39:14 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYynl-0007Xd-IE for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jan 2018 19:39:09 +0100 Original-Received: from localhost ([::1]:39861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYypl-0007eT-6K for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jan 2018 13:41:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYypf-0007eA-PB for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 13:41:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYypa-0005zo-OE for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 13:41:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41978) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYypa-0005zc-KS for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 13:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eYypa-0003FP-Dm for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 13:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jan 2018 18:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30019 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30019-submit@debbugs.gnu.org id=B30019.151552323912447 (code B ref 30019); Tue, 09 Jan 2018 18:41:02 +0000 Original-Received: (at 30019) by debbugs.gnu.org; 9 Jan 2018 18:40:39 +0000 Original-Received: from localhost ([127.0.0.1]:49875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYypC-0003Eg-PP for submit@debbugs.gnu.org; Tue, 09 Jan 2018 13:40:38 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYypA-0003ET-5a for 30019@debbugs.gnu.org; Tue, 09 Jan 2018 13:40:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYyp4-0005eQ-CO for 30019@debbugs.gnu.org; Tue, 09 Jan 2018 13:40:31 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:32973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYyox-0005Zl-9S; Tue, 09 Jan 2018 13:40:23 -0500 Original-Received: from [176.228.60.248] (port=1367 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eYyow-0004wy-Mi; Tue, 09 Jan 2018 13:40:23 -0500 In-reply-to: (message from Aaron Jensen on Tue, 9 Jan 2018 08:21:57 -0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:141941 Archived-At: > From: Aaron Jensen > Date: Tue, 9 Jan 2018 08:21:57 -0800 > > Btw, is there a guide to setting a breakpoint in C code for emacs > source? You mean, how to use GDB? You'd need to read the GDB manual. The command is "break". In this case, I'd set a breakpoint at entry to x_set_parent_frame: (gdb) break x_set_parent_frame and when it breaks, do this: (gdb) p f->output_method If the result is not output_x_window, then FRAME_X_P would yield zero, because it's definition is #define FRAME_X_P(f) ((f)->output_method == output_x_window) There's some advice on debugging Emacs in etc/DEBUG, but it doesn't teach you basic GDB.