aboutsummaryrefslogtreecommitdiff
path: root/gdb/parse.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/parse.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/parse.c')
-rw-r--r--gdb/parse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/parse.c b/gdb/parse.c
index 1c8b350..c885c6a 100644
--- a/gdb/parse.c
+++ b/gdb/parse.c
@@ -791,7 +791,8 @@ length_of_subexp (struct expression *expr, int endpos)
operator takes. */
void
-operator_length (struct expression *expr, int endpos, int *oplenp, int *argsp)
+operator_length (const struct expression *expr, int endpos, int *oplenp,
+ int *argsp)
{
expr->language_defn->la_exp_desc->operator_length (expr, endpos,
oplenp, argsp);
@@ -800,7 +801,7 @@ operator_length (struct expression *expr, int endpos, int *oplenp, int *argsp)
/* Default value for operator_length in exp_descriptor vectors. */
void
-operator_length_standard (struct expression *expr, int endpos,
+operator_length_standard (const struct expression *expr, int endpos,
int *oplenp, int *argsp)
{
int oplen = 1;