[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] gawk debugger: internal error line 1711, file: debug.c
From: |
arnold |
Subject: |
Re: [bug-gawk] gawk debugger: internal error line 1711, file: debug.c |
Date: |
Tue, 07 Jun 2016 04:56:25 -0600 |
User-agent: |
Heirloom mailx 12.4 7/29/08 |
Hi.
Hermann Peifer <address@hidden> wrote:
> Thanks for taking care. Your patch works fine. Now, `watch x' (or
> display x, print x) results into:
>
> no symbol `x' in current context
>
> Hermann
Thanks. I think the below is actually a better fix; if you do
git reset --hard
patch -p0 < the-patch-below
You should also see things working correctly.
Thanks,
Arnold
--------------------------
diff --git a/symbol.c b/symbol.c
index 84574e7..2e88952 100644
--- a/symbol.c
+++ b/symbol.c
@@ -117,6 +117,8 @@ lookup(const char *name)
}
unref(tmp);
+ if (n != NULL && n->type == Node_val) /* non-variable in SYMTAB */
+ return NULL;
return n; /* NULL or new place */
}