aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1995-02-12 21:54:20 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1995-02-12 21:54:20 +0000
commit18d3d85907ade40bcc733fb4ca8eb72de118a131 (patch)
tree33e103946713802bbd9aa5bda8c60d6af0338f35
parentbc778001af63be9cf5d7fc3cd1b0321f8a1cd12f (diff)
downloadfsf-binutils-gdb-18d3d85907ade40bcc733fb4ca8eb72de118a131.zip
fsf-binutils-gdb-18d3d85907ade40bcc733fb4ca8eb72de118a131.tar.gz
fsf-binutils-gdb-18d3d85907ade40bcc733fb4ca8eb72de118a131.tar.bz2
* 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.
-rw-r--r--gdb/ChangeLog11
-rw-r--r--gdb/ch-lang.c4
-rw-r--r--gdb/expression.h5
3 files changed, 20 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f2c495b..575c2df 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/ch-lang.c b/gdb/ch-lang.c
index 9bce588..2b65fb4 100644
--- a/gdb/ch-lang.c
+++ b/gdb/ch-lang.c
@@ -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);
diff --git a/gdb/expression.h b/gdb/expression.h
index 3a08e12..dd9667f 100644
--- a/gdb/expression.h
+++ b/gdb/expression.h
@@ -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 *));