2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
authorSergio Durigan Junior <sergiodj@redhat.com>
Fri, 4 Jun 2010 21:39:47 +0000 (21:39 +0000)
committerSergio Durigan Junior <sergiodj@redhat.com>
Fri, 4 Jun 2010 21:39:47 +0000 (21:39 +0000)
* 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.

gdb/ChangeLog
gdb/ada-lang.c
gdb/parse.c
gdb/parser-defs.h

index d22f917d77b001f8f6e68549f1fa80bb6b3933cd..48c688e7ddccf73eb7590069ee5a5fd8040e2605 100644 (file)
@@ -1,3 +1,12 @@
+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.
+
 2010-06-04  Doug Evans  <dje@google.com>
 
        Add support for enabling/disabling individual pretty-printers.
index be0c53b5d6dbf267a0b79f3dd83a02e43e144642..1d4c38b8d37e8ed20f58cde3879af6a85310f587 100644 (file)
@@ -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)
     {
index 1c8b3508ec7cd72ca1857d630d92d7ff74808c31..c885c6a6d54b1a99eaa1ab7dfd9485ed0e32a6b6 100644 (file)
@@ -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;
index 864f789e397210f3ddc3cdd9d728950690892095..bb79ae13914081036652f633b6687024cebb4aa8 100644 (file)
@@ -188,9 +188,10 @@ extern int dump_subexp (struct expression *, struct ui_file *, int);
 extern int dump_subexp_body_standard (struct expression *, 
                                      struct ui_file *, int);
 
-extern void operator_length (struct expression *, int, int *, int *);
+extern void operator_length (const struct expression *, int, int *, int *);
 
-extern void operator_length_standard (struct expression *, int, int *, int *);
+extern void operator_length_standard (const struct expression *, int, int *,
+                                     int *);
 
 extern int operator_check_standard (struct expression *exp, int pos,
                                    int (*objfile_func)
@@ -273,7 +274,7 @@ struct exp_descriptor
 
     /* Returns number of exp_elements needed to represent an operator and
        the number of subexpressions it takes.  */
-    void (*operator_length) (struct expression*, int, int*, int *);
+    void (*operator_length) (const struct expression*, int, int*, int *);
 
     /* Call TYPE_FUNC and OBJFILE_FUNC for any TYPE and OBJFILE found being
        referenced by the single operator of EXP at position POS.  Operator
This page took 0.046553 seconds and 4 git commands to generate.