aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorSergio Durigan Junior <sergiodj@redhat.com>2010-06-04 21:39:47 +0000
committerSergio Durigan Junior <sergiodj@redhat.com>2010-06-04 21:39:47 +0000
commit554794dcf26bc2b4d9e9286c8000182b54554dd6 (patch)
tree296c4648c88766d3fb6c45c55af3e387de563cd7 /gdb/ada-lang.c
parentbddaacb97a341ad5d4e4f808eee50cc8a40ae17e (diff)
downloadgdb-554794dcf26bc2b4d9e9286c8000182b54554dd6.zip
gdb-554794dcf26bc2b4d9e9286c8000182b54554dd6.tar.gz
gdb-554794dcf26bc2b4d9e9286c8000182b54554dd6.tar.bz2
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index be0c53b..1d4c38b 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)
{