bugfixen in source breakpoints and in-procedure traps
authorAndy Wingo <wingo@pobox.com>
Sun, 3 Oct 2010 09:12:36 +0000 (11:12 +0200)
committerAndy Wingo <wingo@pobox.com>
Sun, 3 Oct 2010 09:12:36 +0000 (11:12 +0200)
commit262ce9115743c3590ddaa6966bd3f2569f60003a
treea6f47d86da22a82ba96c43cee848504dff9372d6
parent1905db2b48bc7cdd97c91fea35382de00ce2060a
bugfixen in source breakpoints and in-procedure traps

* module/system/vm/traps.scm (trap-in-procedure): If we are
  (re-)entering the procedure from a return, call the enter-proc with
  the returnee, not the returner.
  (in-range?): Tighten up a bit.
  (program-sources-before-retire): New helper, like program-sources but
  indexed before instructions are retired instead of after.
  (program-sources-by-line): Use program-sources-before-retire so that
  we can break on instructions by source line *before* those
  instructions are executed.
module/system/vm/traps.scm