From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: GDB does not stop in breakpoint! Date: Tue, 12 Jan 2010 05:03:12 -0500 Message-ID: References: <27107078.post@talk.nabble.com> <27108115.post@talk.nabble.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1263292960 5977 80.91.229.12 (12 Jan 2010 10:42:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Jan 2010 10:42:40 +0000 (UTC) Cc: Emacs-devel@gnu.org To: "alin.s" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 12 11:42:32 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NUeCm-0005eJ-9e for ged-emacs-devel@m.gmane.org; Tue, 12 Jan 2010 11:42:32 +0100 Original-Received: from localhost ([127.0.0.1]:55591 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUeCm-0002mX-SL for ged-emacs-devel@m.gmane.org; Tue, 12 Jan 2010 05:42:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NUdzs-0003m5-Mk for emacs-devel@gnu.org; Tue, 12 Jan 2010 05:29:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NUdzn-0003iW-7F for Emacs-devel@gnu.org; Tue, 12 Jan 2010 05:29:11 -0500 Original-Received: from [199.232.76.173] (port=49478 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUdzn-0003iK-1h for Emacs-devel@gnu.org; Tue, 12 Jan 2010 05:29:07 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:36713) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NUdzm-0001Rq-K7 for Emacs-devel@gnu.org; Tue, 12 Jan 2010 05:29:06 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NUdai-0005oM-Bi; Tue, 12 Jan 2010 05:03:12 -0500 In-reply-to: <27108115.post@talk.nabble.com> (alinsoar@voila.fr) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:119866 Archived-At: 3 breakpoint keep y 0x081fc176 in funcall_lambda at eval.c:3147 stop only if EQ(XCDR(XCAR(arg_vector[0])),Qx) breakpoint already hit 411 times It stops even if XCDR(XCAR(arg_vector[0])) != 'x I did not know it was possible to use C macros in GDB. But if that does work now, I do not see why this condition would fail to work correctly. But it is clear that that fails to verify whether arg_vector[0] is a cons cell. So it will sometimes match objects that are the wrong type. Therefore, it is certain that this cond 3 (CONSP(arg_vector[0]) && CONSP(XCAR(arg_vector[0])) && EQ(XCAR(XCAR(arg_vector[0])),Qx)) is the right command to use.