aboutsummaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-03-01 22:16:27 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-03-01 22:16:27 +0200
commit460cfb34fd0e5189dfa83975c5ec5fdde7008cac (patch)
tree885ad15b5c2231770f5fccbfab56134706de85c6 /debug.c
parent0ece3d6ee1fc718fda5b81c882d2c00d1636c62c (diff)
downloadegawk-460cfb34fd0e5189dfa83975c5ec5fdde7008cac.tar.gz
egawk-460cfb34fd0e5189dfa83975c5ec5fdde7008cac.tar.bz2
egawk-460cfb34fd0e5189dfa83975c5ec5fdde7008cac.zip
Improvements in debug output.
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/debug.c b/debug.c
index 01e30ee3..574b3037 100644
--- a/debug.c
+++ b/debug.c
@@ -3998,7 +3998,14 @@ print_instruction(INSTRUCTION *pc, Func_print print_func, FILE *fp, int in_dump)
print_func(fp, " [do_reference = %s]\n",
pc->do_reference ? "true" : "false");
break;
-
+
+ case Op_comment:
+ print_memory(pc->memory, func, print_func, fp);
+ fprintf(fp, " {%s}\n",
+ pc->memory->comment_type == EOL_COMMENT ?
+ "eol" : "full");
+ break;
+
case Op_push_i:
case Op_push:
case Op_push_arg:
@@ -4016,7 +4023,6 @@ print_instruction(INSTRUCTION *pc, Func_print print_func, FILE *fp, int in_dump)
case Op_quotient_i:
case Op_mod_i:
case Op_assign_concat:
- case Op_comment:
print_memory(pc->memory, func, print_func, fp);
/* fall through */
default: