diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-03-01 22:16:27 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-03-01 22:16:27 +0200 |
commit | 460cfb34fd0e5189dfa83975c5ec5fdde7008cac (patch) | |
tree | 885ad15b5c2231770f5fccbfab56134706de85c6 | |
parent | 0ece3d6ee1fc718fda5b81c882d2c00d1636c62c (diff) | |
download | egawk-460cfb34fd0e5189dfa83975c5ec5fdde7008cac.tar.gz egawk-460cfb34fd0e5189dfa83975c5ec5fdde7008cac.tar.bz2 egawk-460cfb34fd0e5189dfa83975c5ec5fdde7008cac.zip |
Improvements in debug output.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | debug.c | 10 |
2 files changed, 13 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2016-03-01 Arnold D. Robbins <arnold@skeeve.com> + + * debug.c (print_instruction): For Op_comment, add notation as + to whether it's a full comment or an end of line comment. + 2016-02-29 Arnold D. Robbins <arnold@skeeve.com> * profile.c (pp_list): Handle the case of nargs equal to zero. @@ -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: |