add program-sources-pre-retire to core and define frame-next-source
authorAndy Wingo <wingo@pobox.com>
Fri, 8 Oct 2010 10:21:20 +0000 (12:21 +0200)
committerAndy Wingo <wingo@pobox.com>
Fri, 8 Oct 2010 10:31:56 +0000 (12:31 +0200)
commitb262b74b51142bbc066438fe034c7c22c000feb0
tree6d9a22fe17fdaf29df3e73ef9bd97c9f211bbe6d
parentd608db1d593cf46af4a5fc519dcc7274d422378b
add program-sources-pre-retire to core and define frame-next-source

* libguile/programs.h:
* libguile/programs.c (scm_program_source): Add an optional arg, the
  sources table to traverse. Defaults to the result of
  scm_program_sources.

* module/system/vm/program.scm (program-sources-pre-retire): Move
  definition here from (system vm traps), and export.

* module/system/vm/traps.scm: Adapt.

* module/system/vm/frame.scm (frame-next-source): New exported binding,
  returns the source line corresponding to the next instruction instead
  of the previous instruction.
libguile/programs.c
libguile/programs.h
module/system/vm/frame.scm
module/system/vm/program.scm
module/system/vm/traps.scm