source breakpoints accept user line numbers
authorAndy Wingo <wingo@pobox.com>
Fri, 1 Oct 2010 16:25:44 +0000 (18:25 +0200)
committerAndy Wingo <wingo@pobox.com>
Fri, 1 Oct 2010 16:25:44 +0000 (18:25 +0200)
commit2c5fc8d03420855301993bee6d8afa28d64503d6
tree63cbefbbe7ce9741768c6b67056c9e95e3dc883d
parente867d563a56a86533f998441dc8c48dfef38d017
source breakpoints accept user line numbers

* module/system/vm/trap-state.scm (add-trap-at-source-location!):
* module/system/vm/traps.scm (trap-at-source-location): Rename "line"
  argument to "user-line", indicating that the line is one-based instead
  of zero-based. Decrement the line before handing off to
  source-closures-or-procedures and source->ip-range.
module/system/vm/trap-state.scm
module/system/vm/traps.scm