From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: pure-fns in byte-opt.el Date: Fri, 28 Jul 2017 10:02:42 +0300 Message-ID: <83mv7p3uy5.fsf@gnu.org> References: <20170725020650.GA12601@holos.localdomain> <20170726010000.GA14292@holos.localdomain> <83o9s75kus.fsf@gnu.org> <20170727023608.GA1895@holos.localdomain> <83y3r94xo5.fsf@gnu.org> <20170728002448.GA2431@holos.localdomain> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1501225488 21244 195.159.176.226 (28 Jul 2017 07:04:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 28 Jul 2017 07:04:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Mark Oteiza Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 28 09:04:42 2017 Return-path: Envelope-to: ged-emacs-devel@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 1dazK8-0004x8-Ls for ged-emacs-devel@m.gmane.org; Fri, 28 Jul 2017 09:04:36 +0200 Original-Received: from localhost ([::1]:46430 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dazKE-00054l-Ey for ged-emacs-devel@m.gmane.org; Fri, 28 Jul 2017 03:04:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dazIX-0004EA-PP for emacs-devel@gnu.org; Fri, 28 Jul 2017 03:02:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dazIU-0000XS-C6 for emacs-devel@gnu.org; Fri, 28 Jul 2017 03:02:57 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dazIU-0000XA-9W; Fri, 28 Jul 2017 03:02:54 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3014 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dazIT-0002IF-If; Fri, 28 Jul 2017 03:02:54 -0400 In-reply-to: <20170728002448.GA2431@holos.localdomain> (message from Mark Oteiza on Thu, 27 Jul 2017 20:24:48 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217091 Archived-At: > Date: Thu, 27 Jul 2017 20:24:48 -0400 > From: Mark Oteiza > Cc: schwab@suse.de, emacs-devel@gnu.org > > #0 0x00000000005eb363 in wrong_type_argument (predicate=XIL(0x8550), value=XIL(0x3df5914)) at data.c:154 > #1 0x000000000065ed98 in exec_byte_code (bytestr=XIL(0x2d8cb34), vector=XIL(0x17aec35), maxdepth=make_number(13), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:512 > op = 64 > type = CATCHER > targets = Hmm... exec_byte_code directly above wrong_type_argument is a bit unfortunate. But let's try to see what we can: > #3 0x000000000060f09b in Ffuncall (nargs=4, args=0x7fffffffb688) at eval.c:2742 > fun = XIL(0x17aee65) > original_fun = XIL(0x20b0da0) > funcar = XIL(0xce8cc0) > numargs = 3 > val = make_number(897379714801469509) > count = 58 In this frame #3, what are the values of the important variables? (gdb) frame 3 (gdb) pp original_fun (gdb) pp args[1] (gdb) pp args[2] (gdb) pp args[3] (gdb) pp fun (gdb) pp funcar (If "pp" doesn't work, make sure src/.gdbinit was read by GDB.)