summaryrefslogtreecommitdiffstats
path: root/gdb/ch-exp.y
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1995-02-12 19:18:00 +0000
committerPer Bothner <per@bothner.com>1995-02-12 19:18:00 +0000
commit60438e8e3e963c5d06ffb85d30ec74d680b06f24 (patch)
treeed2d6069d86ef085c4c1a06216f2c3354d4decfe /gdb/ch-exp.y
parent7c606261da93584302aec93ead8bf328a978d9ab (diff)
downloadppe42-binutils-60438e8e3e963c5d06ffb85d30ec74d680b06f24.tar.gz
ppe42-binutils-60438e8e3e963c5d06ffb85d30ec74d680b06f24.zip
* ch-exp.y (maybe_expression_list): New non-terminal.
(primitive_value): Allow empty parameter list.
Diffstat (limited to 'gdb/ch-exp.y')
-rw-r--r--gdb/ch-exp.y9
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ch-exp.y b/gdb/ch-exp.y
index 8b76979091..c87157c465 100644
--- a/gdb/ch-exp.y
+++ b/gdb/ch-exp.y
@@ -367,6 +367,13 @@ expression_list : expression
}
;
+maybe_expression_list: /* EMPTY */
+ {
+ arglist_len = 0;
+ }
+ | expression_list
+ ;
+
/* Z.200, 5.2.1 */
@@ -382,7 +389,7 @@ rparen : ')'
primitive_value :
access_name
- | primitive_value_lparen expression_list rparen
+ | primitive_value_lparen maybe_expression_list rparen
{
write_exp_elt_opcode (MULTI_SUBSCRIPT);
write_exp_elt_longcst ($3);
OpenPOWER on IntegriCloud