From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel,gmane.emacs.help Subject: Re: gdb doc Date: Fri, 23 Mar 2007 15:04:02 +0200 Message-ID: References: <26518830.269241174564751910.JavaMail.www@wwinf4206> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1174655211 2177 80.91.229.12 (23 Mar 2007 13:06:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Mar 2007 13:06:51 +0000 (UTC) To: emacs-devel@gnu.org, help-gnu-emacs@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 23 14:06:43 2007 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 1HUjTe-0000fn-T9 for ged-emacs-devel@m.gmane.org; Fri, 23 Mar 2007 14:06:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HUjVY-0004fi-Ki for ged-emacs-devel@m.gmane.org; Fri, 23 Mar 2007 08:08:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HUjT1-0001Ud-CT for emacs-devel@gnu.org; Fri, 23 Mar 2007 09:06:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HUjSz-0001Sj-Tk for emacs-devel@gnu.org; Fri, 23 Mar 2007 09:06:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HUjSz-0001SQ-Lw; Fri, 23 Mar 2007 08:06:01 -0500 Original-Received: from heller.inter.net.il ([213.8.233.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HUjR4-0002It-46; Fri, 23 Mar 2007 09:04:02 -0400 Original-Received: from HOME-C4E4A596F7 ([81.5.34.178]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id CEN03813 (AUTH halo1); Fri, 23 Mar 2007 15:03:56 +0200 (IST) In-reply-to: <26518830.269241174564751910.JavaMail.www@wwinf4206> (message from A Soare on Thu, 22 Mar 2007 12:59:11 +0100 (CET)) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:68387 gmane.emacs.help:42127 Archived-At: > From: A Soare > Cc: "Emacs Dev [emacs-devel]" , > "Emacs Help [help-gnu-emacs]" > Date: Thu, 22 Mar 2007 12:59:11 +0100 (CET) > > Breakpoint 3, Feval (form=139269229) at eval.c:2205 > (gdb) p form > $1 = 139269229 > (gdb) xcar form > $2 = 0x8540b91 > > Now I wish to do > > (gdb) commands > > and here I do not know how to write CONDITION in > > if > break No, you need to say "break Feval if ". > Can you help me a little mode to write the condition please? I don't have time to write and test a complete script, sorry. You will need to look in lisp.h for the definition of the XCAR macro, or in src/.gdbinit for the definition of `xcar', and use the same expressions in the condition. Something like the following (untested!): break Feval if ((struct Lisp_Cons *) ((gdb_use_union ? form.u.val : form & $valmask) | gdb_data_seg_bits))->car == Qplus