summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-03-17 22:01:26 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-03-17 22:01:26 +0200
commitcd6b37514fd3eea9cc26a76514d487328a11a8ba (patch)
tree2568a171b735a02eaa41b340c99f5520b9fbd2a9
parent1a2dd672aa09d91eb7f3e72b12f387df2a507c7f (diff)
downloadgawk-cd6b37514fd3eea9cc26a76514d487328a11a8ba.tar.gz
Improve instruction dump of comments.
-rw-r--r--ChangeLog5
-rw-r--r--debug.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 05b3bfad..52965d59 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-03-17 Arnold D. Robbins <arnold@skeeve.com>
+
+ * debug.c (print_instruction): For Op_comment, improve notation as
+ to whether it's a full comment or an end of line comment.
+
2016-03-14 Arnold D. Robbins <arnold@skeeve.com>
* io.c (socketopen): For SOCK_DGRAM, set read_len to sizeof
diff --git a/debug.c b/debug.c
index 388b62bc..f5eaa779 100644
--- a/debug.c
+++ b/debug.c
@@ -4035,9 +4035,9 @@ print_instruction(INSTRUCTION *pc, Func_print print_func, FILE *fp, int in_dump)
case Op_comment:
print_memory(pc->memory, func, print_func, fp);
- fprintf(fp, " {%s}\n",
+ fprintf(fp, " [comment_type = %s]\n",
pc->memory->comment_type == EOL_COMMENT ?
- "eol" : "full");
+ "EOL" : "FULL");
break;
case Op_push_i: