summaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-02-24 21:40:54 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-02-24 21:40:54 -0800
commita61708f6ca5df1dd17a6bad6a72003b08474ed6e (patch)
tree7f1727ca1f950b3ce0d0b7acdc9d430b698e8f62 /debug.c
parent15c42fa37fced6cb65b09dce07d59fc729748018 (diff)
downloadtxr-a61708f6ca5df1dd17a6bad6a72003b08474ed6e.tar.gz
txr-a61708f6ca5df1dd17a6bad6a72003b08474ed6e.tar.bz2
txr-a61708f6ca5df1dd17a6bad6a72003b08474ed6e.zip
* debug.c (debug): Fix 2013-12-02 regression, which leaves the
debugger not printing the current line of data.
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/debug.c b/debug.c
index afef0835..96a97580 100644
--- a/debug.c
+++ b/debug.c
@@ -92,7 +92,10 @@ val debug(val form, val bindings, val data, val line, val pos, val base)
val loc = source_loc(form);
cons_bind (lineno, file, loc);
- data = if2(consp(data), car(data));
+ if (consp(data))
+ data = car(data);
+ else if (data == t)
+ data = nil;
if (!step_mode && !memqual(loc, breakpoints)
&& (debug_depth > next_depth))