diff options
author | Sergio Durigan Junior <sergiodj@redhat.com> | 2010-06-04 21:39:47 +0000 |
---|---|---|
committer | Sergio Durigan Junior <sergiodj@redhat.com> | 2010-06-04 21:39:47 +0000 |
commit | 554794dcf26bc2b4d9e9286c8000182b54554dd6 (patch) | |
tree | 296c4648c88766d3fb6c45c55af3e387de563cd7 /gdb/ada-lang.c | |
parent | bddaacb97a341ad5d4e4f808eee50cc8a40ae17e (diff) | |
download | binutils-gdb-554794dcf26bc2b4d9e9286c8000182b54554dd6.tar.gz |
2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
* ada-lang.c (ada_operator_length): Constify `struct expression'.
* parse.c (operator_length): Likewise.
(operator_length_standard): Likewise.
* parser-defs.h (operator_length): Likewise.
(operator_length_standard): Likewise.
(struct exp_descriptor <operator_length>): Likewise.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index be0c53b5d6d..1d4c38b8d37 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -11084,7 +11084,8 @@ ada_decode_assert_location (char *args, char **addr_string, OP_DEFN (OP_DISCRETE_RANGE, 1, 2, 0) static void -ada_operator_length (struct expression *exp, int pc, int *oplenp, int *argsp) +ada_operator_length (const struct expression *exp, int pc, int *oplenp, + int *argsp) { switch (exp->elts[pc - 1].opcode) { |