]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* valops.c (value_arg_coerce): Use VALUE_TYPE not SYMBOL_TYPE on
authorJim Kingdon <jkingdon@engr.sgi.com>
Sun, 12 Feb 1995 21:54:20 +0000 (21:54 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Sun, 12 Feb 1995 21:54:20 +0000 (21:54 +0000)
arg, it is a value not a symbol.

gcc -Wall lint:
* eval.c: Move declaration of evaluate_subexp_with_coercion from here..
* expression.h: ..to here.
* expression.h: Include value.h.
* ch-lang.c (evaluate_subexp_chill): Add default case in switch.

gdb/ChangeLog
gdb/ch-lang.c
gdb/expression.h

index f2c495bf9d35e271e5d5a73389d0ed28dad507ef..575c2dff59e98061cf6a23ad8a90835722102171 100644 (file)
@@ -1,3 +1,14 @@
+Sun Feb 12 12:36:38 1995  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * valops.c (value_arg_coerce): Use VALUE_TYPE not SYMBOL_TYPE on
+       arg, it is a value not a symbol.
+
+       gcc -Wall lint:
+       * eval.c: Move declaration of evaluate_subexp_with_coercion from here..
+       * expression.h: ..to here.
+       * expression.h: Include value.h.
+       * ch-lang.c (evaluate_subexp_chill): Add default case in switch.
+
 Sun Feb 12 11:03:47 1995  Per Bothner  <bothner@kalessin.cygnus.com>
 
        * language.h (struct language_defn):  New field evaluate_exp.
index 9bce5880bf550848ae9983e4109293880de3797f..2b65fb4d648fe09783dff56ab8d19763f24fdede 100644 (file)
@@ -324,6 +324,8 @@ evaluate_subexp_chill (expect_type, exp, pos, noside)
          argvec[tem] = 0; /* signal end of arglist */
 
          return call_function_by_hand (argvec[0], nargs, argvec + 1);
+       default:
+         break;
        }
 
       while (nargs-- > 0)
@@ -332,6 +334,8 @@ evaluate_subexp_chill (expect_type, exp, pos, noside)
          arg1 = value_subscript (arg1, index);
        }
       return (arg1);
+    default:
+      break;
     }
 
   return evaluate_subexp_standard (expect_type, exp, pos, noside);
index 3a08e1287b035f8a1994bb4ff6b2b2b30886436e..dd9667fb710e63f18118bcd299f1501d98922c03 100644 (file)
@@ -20,6 +20,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #if !defined (EXPRESSION_H)
 #define EXPRESSION_H 1
 
+#include "value.h"
+
 #ifdef __STDC__
 struct block;  /* Forward declaration for prototypes */
 #endif
@@ -352,6 +354,9 @@ enum noside
 extern struct value* evaluate_subexp_standard
 PARAMS ((struct type *, struct expression *, int*, enum noside));
 
+extern value_ptr evaluate_subexp_with_coercion PARAMS ((struct expression *,
+                                                       int *, enum noside));
+
 /* From expprint.c */
 
 extern void print_expression PARAMS ((struct expression *, GDB_FILE *));