diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-03-03 21:01:00 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-03-03 21:01:00 +0200 |
commit | 596cc77d097139e34be50240a60e849d423a3f4a (patch) | |
tree | bec1fd0aba6da95ea24921b132af1d50cc48fb23 /debug.c | |
parent | 7ea8855c0c000f407499073c930ca4bd92994af8 (diff) | |
parent | d78adb29468012f54dd029e021d83eb668f19a7d (diff) | |
download | egawk-596cc77d097139e34be50240a60e849d423a3f4a.tar.gz egawk-596cc77d097139e34be50240a60e849d423a3f4a.tar.bz2 egawk-596cc77d097139e34be50240a60e849d423a3f4a.zip |
Merge branch 'master' into feature/cmake
Diffstat (limited to 'debug.c')
-rw-r--r-- | debug.c | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -3796,6 +3796,15 @@ print_instruction(INSTRUCTION *pc, Func_print print_func, FILE *fp, int in_dump) switch (pc->opcode) { + case Op_K_if: + print_func(fp, "[branch_if = %p] [branch_else = %p] [branch_else->lasti = %p]\n", + pc->branch_if, pc->branch_else, pc->branch_else->lasti); + break; + + case Op_K_else: + print_func(fp, "[branch_end = %p]\n", pc->branch_end); + break; + case Op_var_update: print_func(fp, "[update_%s()]\n", get_spec_varname(pc->update_var)); break; @@ -3998,7 +4007,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 +4032,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: |