diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-02-12 00:25:41 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-02-12 00:25:41 -0800 |
commit | 658d2d955629d7619098ac9568f329da55d8176d (patch) | |
tree | 72f2be016cb7a1668bc609223fa9362eacb974d5 /debug.h | |
parent | fce7c87fa0099e5414607676fc73c9dfa9d7649c (diff) | |
download | txr-658d2d955629d7619098ac9568f329da55d8176d.tar.gz txr-658d2d955629d7619098ac9568f329da55d8176d.tar.bz2 txr-658d2d955629d7619098ac9568f329da55d8176d.zip |
Task #11486: continuation. Take into account base position
in debug reporting.
* debug.c (debug): New argument, base.
* debug.h (debug_check): New argument, base.
(debug): Declaration updated.
* eval.c (do_eval): Pass new argument of debug_check as nil.
* match.c (LOG_MISMATCH, LOG_MATCH): Take into account base
when displaying character position.
(do_match_line): Pass base position to debug_check.
(match_files): Pass nil as base to debug_check.
Diffstat (limited to 'debug.h')
-rw-r--r-- | debug.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -28,7 +28,7 @@ extern int opt_debugger; extern int debug_depth; extern val debug_block_s; -val debug(val form, val bindings, val data, val line, val chr); +val debug(val form, val bindings, val data, val line, val pos, val base); #if CONFIG_DEBUG_SUPPORT @@ -51,9 +51,10 @@ val debug(val form, val bindings, val data, val line, val chr); #define debug_return(VAL) \ uw_block_return(debug_block_s, VAL) -INLINE val debug_check(val form, val bindings, val data, val line, val chr) +INLINE val debug_check(val form, val bindings, val data, val line, + val pos, val base) { - return (opt_debugger) ? debug(form, bindings, data, line, chr) : nil; + return (opt_debugger) ? debug(form, bindings, data, line, pos, base) : nil; } void debug_init(void); |