From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23424: 25.0.93; error in process sentinel with Melpa added to package-archives Date: Tue, 03 May 2016 18:12:24 +0300 Message-ID: <83futzkwfb.fsf@gnu.org> References: <8337q0mpe7.fsf@gnu.org> <83twigl7mn.fsf@gnu.org> <83lh3skybm.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1462288432 13613 80.91.229.3 (3 May 2016 15:13:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 May 2016 15:13:52 +0000 (UTC) Cc: 23424@debbugs.gnu.org To: Kaushal Modi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 03 17:13:41 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1axc0y-0004vt-J3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 May 2016 17:13:32 +0200 Original-Received: from localhost ([::1]:41715 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axc0u-0003Ia-OE for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 May 2016 11:13:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axc0j-0002zJ-PV for bug-gnu-emacs@gnu.org; Tue, 03 May 2016 11:13:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axc0X-0004sR-D7 for bug-gnu-emacs@gnu.org; Tue, 03 May 2016 11:13:12 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axc0X-0004r2-9A for bug-gnu-emacs@gnu.org; Tue, 03 May 2016 11:13:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1axc0T-0006jH-SB for bug-gnu-emacs@gnu.org; Tue, 03 May 2016 11:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 May 2016 15:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23424 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23424-submit@debbugs.gnu.org id=B23424.146228836225837 (code B ref 23424); Tue, 03 May 2016 15:13:01 +0000 Original-Received: (at 23424) by debbugs.gnu.org; 3 May 2016 15:12:42 +0000 Original-Received: from localhost ([127.0.0.1]:35482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axc0A-0006if-3n for submit@debbugs.gnu.org; Tue, 03 May 2016 11:12:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axc08-0006iS-De for 23424@debbugs.gnu.org; Tue, 03 May 2016 11:12:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axbzt-0004dh-50 for 23424@debbugs.gnu.org; Tue, 03 May 2016 11:12:31 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53652) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axbzt-0004d4-1I; Tue, 03 May 2016 11:12:25 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4404 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1axbzn-0007Pe-1s; Tue, 03 May 2016 11:12:19 -0400 In-reply-to: (message from Kaushal Modi on Mon, 02 May 2016 22:05:50 +0000) 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:117638 Archived-At: > From: Kaushal Modi > Date: Mon, 02 May 2016 22:05:50 +0000 > Cc: 23424@debbugs.gnu.org > > I have a followup gdb 101 question: > > I thought I would improve the debug capability by adding the flags "--enable-checking='yes,glyphs' > --enable-check-lisp-object-type" to ./configure as per etc/DEBUG. I did not have those 2 flags earlier. But after > rebuilding using the suggested options, the conditional breakpoints do not work. I also noticed that earlier "p > error_symbol" gave something like, > > $1 = 41328 > > Now it gives something like, > > $1 = { > i = 41328 > } The --enable-check-lisp-object-type changes the representation of Lisp objects, so that they are no longer represented by C integers. Instead, they are represented by a structure with a single integer member. From src/lisp.h: #ifdef CHECK_LISP_OBJECT_TYPE typedef struct { EMACS_INT i; } Lisp_Object; [...] #else /* CHECK_LISP_OBJECT_TYPE */ [...] typedef EMACS_INT Lisp_Object; #endif So instead of (gdb) condition 3 error_symbol != 41328 you should say something like (gdb) condition 3 error_symbol.i != 41328 > Also, when earlier I saw: > > Breakpoint 3, Fsignal (error_symbol=19056, data=16197139) at eval.c:1471 > > , now I see instead: > > Breakpoint 3, Fsignal (error_symbol=..., data=...) at eval.c:1471 > > (those numbers for error_symbol and data are literally replaced with "...") By default, GDB doesn't display non-scalar arguments to functions when it shows stack frames. It displays ellipses for any non-scalar argument. You can change that with (gdb) set print frame-arguments all Or just type (gdb) p error_symbol etc. for any argument whose value you want to see; the ellipsis only affects the values of arguments in frame display. As yet another alternative, you can ask GDB to do that automatically when it stops at a breakpoint: (gdb) commands 3 > p error_symbol > xsymbol > end And that concludes your lesson #2. Reading the relevant sections of the GDB manual is optional; suggested reading: (info "(gdb) Print Settings") (info "(gdb) Break Commands")