aboutsummaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-03-03 21:01:00 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-03-03 21:01:00 +0200
commit596cc77d097139e34be50240a60e849d423a3f4a (patch)
treebec1fd0aba6da95ea24921b132af1d50cc48fb23 /debug.c
parent7ea8855c0c000f407499073c930ca4bd92994af8 (diff)
parentd78adb29468012f54dd029e021d83eb668f19a7d (diff)
downloadegawk-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.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/debug.c b/debug.c
index 01e30ee3..7bf3450a 100644
--- a/debug.c
+++ b/debug.c
@@ -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: