chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] [PATCH] Add debugging information to ##core#direct_cal


From: Peter Bex
Subject: [Chicken-hackers] [PATCH] Add debugging information to ##core#direct_call nodes
Date: Sun, 18 Dec 2016 20:17:25 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

Hi all,

I had a look at Evan's patch in https://bugs.call-cc.org/ticket/894
and tried to test it, but it turns out that just adding the debugging
info to the core language isn't enough; it also needs to be propagated
to the closure converted/prepared language, and enventually needs to
end up in the generated C.

Especially the latter was slightly tricky because direct_calls are used
in expression contexts, so the debugging and trace events should be
treated as part of the same expression as the actual function call.

In any case, the ticket has an example program which you can use to
verify the attached patches: feathers should show the lines containing
the calls to "ensure-nonzero" in a brighter shade, and they should be
clickable, and it should end up in the trace buffer in case of an error.

Cheers,
Peter

Attachment: 0001-Include-debug-info-on-core-direct_call-nodes.master.patch
Description: Text Data

Attachment: 0001-Include-debug-info-on-core-direct_call-nodes.chicken-5.patch
Description: Text Data

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]