summaryrefslogtreecommitdiff
path: root/gdb/ch-exp.c
diff options
context:
space:
mode:
authorWilfried Moser <moser@cygnus>1996-01-09 12:46:20 +0000
committerWilfried Moser <moser@cygnus>1996-01-09 12:46:20 +0000
commitd1f5c8043acfeb2b8e2ecdfca6dc43af016719cc (patch)
tree92e0fe8ac0755263628a7871161ab75300afc235 /gdb/ch-exp.c
parent1f2337586059fdc512ffd2b4145f11f454bb663f (diff)
downloadbinutils-gdb-d1f5c8043acfeb2b8e2ecdfca6dc43af016719cc.tar.gz
* ch-exp.c (parse_primval): in case ARRAY: Add missing FORWARD_TOKEN ().
Diffstat (limited to 'gdb/ch-exp.c')
-rw-r--r--gdb/ch-exp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/ch-exp.c b/gdb/ch-exp.c
index 31c92b5e247..492f3765a72 100644
--- a/gdb/ch-exp.c
+++ b/gdb/ch-exp.c
@@ -642,6 +642,7 @@ parse_primval ()
if (PEEK_TOKEN () != TYPENAME)
error ("missing MODENAME after ARRAY()");
type = PEEK_LVAL().tsym.type;
+ FORWARD_TOKEN ();
expect ('(', NULL);
parse_expr ();
expect (')', "missing right parenthesis");