unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Adriano Peluso <randomlooser@riseup.net>
To: guile-user@gnu.org
Subject: tracepoint
Date: Tue, 11 May 2021 08:31:04 +0200	[thread overview]
Message-ID: <288ca88aa665af6d9e33aa63d1d35807b3838dce.camel@riseup.net> (raw)

I can't get tracepointing to work.

What follows is on Guile 3.0.5 fron Guix the package manager but the
same happens with the Guile 3.0.4 from Ubuntu

I have 2 procedures

One of them makes a so called recursive process and the other one makes
an iterative process

I can trace them

This is the recursive one

scheme@(guile-user)> ,trace (f 5)
trace: |  (f 5)
trace: |  |  (f 4)
trace: |  |  |  (f 3)
trace: |  |  |  |  (f 2)
trace: |  |  |  |  2
trace: |  |  |  |  (f 1)
trace: |  |  |  |  1
trace: |  |  |  |  (f 0)
trace: |  |  |  |  0
trace: |  |  |  4
trace: |  |  |  (f 2)
trace: |  |  |  2
trace: |  |  |  (f 1)
trace: |  |  |  1
trace: |  |  11
trace: |  |  (f 3)
trace: |  |  |  (f 2)
trace: |  |  |  2
trace: |  |  |  (f 1)
trace: |  |  |  1
trace: |  |  |  (f 0)
trace: |  |  |  0
trace: |  |  4
trace: |  |  (f 2)
trace: |  |  2
trace: |  25



and this is the iterative one

scheme@(guile-user)> ,trace (f-it 5)
trace: |  (f-it 5)
trace: |  (f-it-iter 2 1 0 5)
trace: |  (f-it-iter 4 2 1 4)
trace: |  (f-it-iter 11 4 2 3)
trace: |  (f-it-iter 25 11 4 2)
trace: |  25


but I can't tracePOINT them

scheme@(guile-user)> ,tp f
Trap 0: Tracepoint at #<procedure f (n)>.
scheme@(guile-user)> (f 6)
Trap 0: (f 6)
Trap 0: |  (f 5)
Trap 0: |  |  (f 4)
Trap 0: |  |  |  (f 3)
Trap 0: |  |  |  |  (f 2)
ice-9/boot-9.scm:1669:16: In procedure raise-exception:
Wrong number of arguments to #<procedure return-handler (frame depth
values)>

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]> 



and the iterative one

scheme@(guile-user)> ,tp f-it
Trap 1: Tracepoint at #<procedure f-it (n)>.
scheme@(guile-user)> (f-it 6)
ice-9/boot-9.scm:1669:16: In procedure raise-exception:
Wrong number of arguments to #<procedure return-handler (frame depth
values)>

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]> 





                 reply	other threads:[~2021-05-11  6:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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/guile/

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

  git send-email \
    --in-reply-to=288ca88aa665af6d9e33aa63d1d35807b3838dce.camel@riseup.net \
    --to=randomlooser@riseup.net \
    --cc=guile-user@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).