unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: emacs-devel@gnu.org, help-gnu-emacs@gnu.org
Subject: Re: gdb doc
Date: Fri, 23 Mar 2007 15:04:02 +0200	[thread overview]
Message-ID: <uy7lo3yd9.fsf@gnu.org> (raw)
In-Reply-To: <26518830.269241174564751910.JavaMail.www@wwinf4206> (message from A Soare on Thu, 22 Mar 2007 12:59:11 +0100 (CET))

> From: A Soare <alinsoar@voila.fr>
> Cc: "Emacs   Dev  [emacs-devel]" <emacs-devel@gnu.org>,
> 	"Emacs   Help  [help-gnu-emacs]" <help-gnu-emacs@gnu.org>
> 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 <CONDITION>
>     break

No, you need to say "break Feval if <CONDITION>".

> 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

  reply	other threads:[~2007-03-23 13:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-22 11:59 gdb doc A Soare
2007-03-23 13:04 ` Eli Zaretskii [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-03-22 12:50 A Soare
2007-03-23 14:51 A Soare

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uy7lo3yd9.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).