aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-12-05 20:53:10 +0200
committerArnold D. Robbins <arnold@skeeve.com>2013-12-05 20:53:10 +0200
commitbbf10e4b72801d9c52aad4140dda110795a5af78 (patch)
treef392ad613fd10b2324b0e5fd85f2f2bfe2c5b231
parent4b8cca04a77660f118135ea72c2ef812fbe9ed26 (diff)
parentda923f91d9bd8ade673a4f2f15be3d78a36b759e (diff)
downloadegawk-bbf10e4b72801d9c52aad4140dda110795a5af78.tar.gz
egawk-bbf10e4b72801d9c52aad4140dda110795a5af78.tar.bz2
egawk-bbf10e4b72801d9c52aad4140dda110795a5af78.zip
Merge branch 'gawk-4.1-stable'
-rw-r--r--ChangeLog4
-rw-r--r--debug.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8e64aeff..747b91b9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,10 @@
* dfa.c (parse_bracket_exp): Add a cast to quiet a warning.
* regex.c: Correctly bracket include of <sys/param.h>.
+ Unrelated:
+
+ * debug.c (find_rule): Add a FIXME comment.
+
2013-12-03 John E. Malmberg <wb8tyw@qsl.net>
* io.c (redirect): Add additional VMS error code to check.
diff --git a/debug.c b/debug.c
index 357ce725..8df9ed0d 100644
--- a/debug.c
+++ b/debug.c
@@ -2068,6 +2068,11 @@ find_rule(char *src, long lineno)
{
INSTRUCTION *rp;
+ /*
+ * FIXME: The check for zero and code that goes with it
+ * are probably fragile. A break with no arguments can
+ * cause this in certain cases. Try to review how this works.
+ */
if (lineno == 0) {
for (rp = rule_list->nexti; rp != NULL; rp = rp->nexti) {
if ((rp - 1)->source_file == src && (rp - 1)->source_line > 0)