[gambit-list] How introspect frame objects

Marc Feeley feeley at iro.umontreal.ca
Thu Jun 20 10:20:49 EDT 2013


On 2013-06-20, at 7:13 AM, Mikael <mikael.rcv at gmail.com> wrote:

> Aha got it:
> 
> For a frame object,
> 
> (##frame o) => #t
> 
> (##subprocedure-parent-name (##frame-ret o)) => the name of the procedure that the frame regards e.g. ##read-u8
> 
> (##frame-ref o N) where N = 0 .. (##frame-fs o) - 1 => the frame's bound objects, (##frame-slot-live? o N) checks the respective slot for aliveness.
> 

Yes, and if you have compiled your program with "gsc -debug", you can get more information with (##subprocedure-info return-address) including the source code and location information.  In other words, the debugging information is associated with return addresses.

Marc




More information about the Gambit-list mailing list