diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-03-02 20:54:11 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-03-02 21:59:45 +0200 |
commit | 99c88b96ee4fd5ae854c485e208737be8cca8301 (patch) | |
tree | 7f833faca7841a1d542ccc8634d0430b1b52914a /debug.c | |
parent | 21b584ce481970c9022c08148a6adbc0e489c432 (diff) | |
download | egawk-99c88b96ee4fd5ae854c485e208737be8cca8301.tar.gz egawk-99c88b96ee4fd5ae854c485e208737be8cca8301.tar.bz2 egawk-99c88b96ee4fd5ae854c485e208737be8cca8301.zip |
Improvements in debug.c for if and else.
Diffstat (limited to 'debug.c')
-rw-r--r-- | debug.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -3788,6 +3788,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; |