From: Joel Brobecker Date: Wed, 15 Aug 2007 18:43:15 +0000 (+0000) Subject: * ada-lang.c (resolve_subexp): Correct arity of binary operators. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=40c8aaa9feda31a1f9f77caa30ab3e8eb94448a4;p=binutils-gdb.git * ada-lang.c (resolve_subexp): Correct arity of binary operators. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 73c794b8e85..9869828da39 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-08-15 Paul Hilfinger + Joel Brobecker + + * ada-lang.c (resolve_subexp): Correct arity of binary operators. + 2007-08-15 Paul Hilfinger Joel Brobecker diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 7f96dea72b4..326bcec7491 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -2691,6 +2691,9 @@ resolve_subexp (struct expression **expp, int *pos, int deprocedure_p, case BINOP_REPEAT: case BINOP_SUBSCRIPT: case BINOP_COMMA: + *pos += 1; + nargs = 2; + break; case UNOP_NEG: case UNOP_PLUS: