all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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 13:57 A Soare
@ 2007-03-22 14:43 ` Kim F. Storm
  0 siblings, 0 replies; 3+ messages in thread
From: Kim F. Storm @ 2007-03-22 14:43 UTC (permalink / raw)
  To: alinsoar; +Cc: Emacs Help [help-gnu-emacs]

A Soare <alinsoar@voila.fr> writes:

> I put a breakpoint in Feval in eval.c on this line:
>
>       args_left = original_args;
>       numargs = Flength (args_left);
>
> 	breakpoint already hit 23715 times
>         silent
>         if numargs > 30
>           stop
>         end
>         continue
>
> Now I called in editor
>
> However, the debugger did not stop in the breakpoint.
>
> Can somebody explain me why please?

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

or do:
         if numargs > 240
           stop
         end

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ 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 14:53 breakpoint in eval.c A Soare
  -- strict thread matches above, loose matches on Subject: below --
2007-03-22 13:57 A Soare
2007-03-22 14:43 ` Kim F. Storm

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.