From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: A Soare Newsgroups: gmane.emacs.devel,gmane.emacs.help Subject: Re: gdb doc Date: Thu, 22 Mar 2007 12:59:11 +0100 (CET) Message-ID: <26518830.269241174564751910.JavaMail.www@wwinf4206> Reply-To: alinsoar@voila.fr NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1174564769 15002 80.91.229.12 (22 Mar 2007 11:59:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Mar 2007 11:59:29 +0000 (UTC) Cc: "Emacs Help \[help-gnu-emacs\]" , "Emacs Dev \[emacs-devel\]" To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 22 12:59:22 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 1HULwu-00049W-PR for ged-emacs-devel@m.gmane.org; Thu, 22 Mar 2007 12:59:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HULyh-0002nl-3R for ged-emacs-devel@m.gmane.org; Thu, 22 Mar 2007 07:01:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HULyd-0002mG-5m for emacs-devel@gnu.org; Thu, 22 Mar 2007 08:01:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HULyb-0002lS-F7 for emacs-devel@gnu.org; Thu, 22 Mar 2007 08:01:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HULyb-0002lN-CW; Thu, 22 Mar 2007 07:01:05 -0500 Original-Received: from smtp3.voila.fr ([193.252.22.173]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HULwn-00071G-7X; Thu, 22 Mar 2007 07:59:13 -0400 Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf4201.voila.fr (SMTP Server) with ESMTP id EF6021C000FE; Thu, 22 Mar 2007 12:59:11 +0100 (CET) Original-Received: from wwinf4206 (wwinf4206 [10.232.2.33]) by mwinf4201.voila.fr (SMTP Server) with ESMTP id E12E21C0012B; Thu, 22 Mar 2007 12:59:11 +0100 (CET) X-ME-UUID: 20070322115911922.E12E21C0012B@mwinf4201.voila.fr X-Originating-IP: [89.34.170.37] X-Wum-Nature: EMAIL-NATURE X-WUM-FROM: |~| X-WUM-TO: |~| X-WUM-CC: |~||~| X-WUM-REPLYTO: |~| X-detected-kernel: Linux 2.4-2.6 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:68289 gmane.emacs.help:42102 Archived-At: > > I do not find in documentation how can I set a condition for gdb to stop to a breakpoint in Feval when such a condition is accomplished: > > > > 1. lisp function name that is evaluated is "+". > > Compare the car of the Feval's argument with Qplus. I tried t (gdb) br Feval Breakpoint 3 at 0x8152849: file eval.c, line 2205.o do so: (gdb) r Starting program: /mnt/gnu/emacs/src/emacs -geometry 80x40+0+0 [Thread debugging using libthread_db enabled] [New Thread -1208109376 (LWP 2650)] [Switching to Thread -1208109376 (LWP 2650)] Breakpoint 4 at 0x80c88e6: file xterm.c, line 7859. 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 end continue end Can you help me a little mode to write the condition please?