unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* breakpoint in eval.c
@ 2007-03-22 13:57 A Soare
  2007-03-22 14:43 ` Kim F. Storm
  0 siblings, 1 reply; 3+ messages in thread
From: A Soare @ 2007-03-22 13:57 UTC (permalink / raw)
  To: Emacs   Help  [help-gnu-emacs]

I put a breakpoint in Feval in eval.c on this line:

      args_left = original_args;
      numargs = Flength (args_left);

      CHECK_CONS_LIST ();                <=<= HERE is the breakpoint


In GDB I put the condition like this:

(gdb) info breakpoints 
Num Type           Disp Enb Address    What
9   breakpoint     keep y   0x08152b24 in Feval at eval.c:2266
	breakpoint already hit 23715 times
        silent
        if numargs > 30
          stop
        end
        continue

Now I called in editor






(+ 1 2 3 4 5 6 7 8 9 0
   1 2 3 4 5 6 7 8 9 0
   1 2 3 4 5 6 7 8 9 0
   1 2 3 4 5 6 7 8 9 0
   1 2 3 4 5 6 7 8 9 0)

C-x C-e.

However, the debugger did not stop in the breakpoint.

Can somebody explain me why please?

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: breakpoint in eval.c
@ 2007-03-22 14:53 A Soare
  0 siblings, 0 replies; 3+ messages in thread
From: A Soare @ 2007-03-22 14:53 UTC (permalink / raw)
  To: Kim F. Storm; +Cc: Emacs   Help  [help-gnu-emacs]


> numargs is a Lisp_Object; to use it as an integer
> you must divide it by 8.


:) You are right. Thanks a lot.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-03-22 14:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-22 13:57 breakpoint in eval.c A Soare
2007-03-22 14:43 ` Kim F. Storm
  -- strict thread matches above, loose matches on Subject: below --
2007-03-22 14:53 A Soare

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).