From cb18ec49971fe854438c21c6fd9bd08672d476e6 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Thu, 11 Sep 2008 14:16:51 +0000 Subject: [PATCH] * eval.c (evaluate_subexp_standard): Use builtin_type_int8 to construct the EVAL_SKIP dummy return value. * ada-lang.c (ada_evaluate_subexp): Likewise. * jv-lang.c (evaluate_subexp_java): Likewise. * m2-lang.c (evaluate_subexp_modula2): Likewise. * scm-lang.c (evaluate_exp): Likewise. --- gdb/ChangeLog | 9 +++++++++ gdb/ada-lang.c | 2 +- gdb/eval.c | 2 +- gdb/jv-lang.c | 2 +- gdb/m2-lang.c | 2 +- gdb/scm-lang.c | 2 +- 6 files changed, 14 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 40dbd228782..ec43cbd3c76 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2008-09-11 Ulrich Weigand + + * eval.c (evaluate_subexp_standard): Use builtin_type_int8 + to construct the EVAL_SKIP dummy return value. + * ada-lang.c (ada_evaluate_subexp): Likewise. + * jv-lang.c (evaluate_subexp_java): Likewise. + * m2-lang.c (evaluate_subexp_modula2): Likewise. + * scm-lang.c (evaluate_exp): Likewise. + 2008-09-11 Ulrich Weigand * value.h (coerce_enum, coerce_number): Remove prototypes. diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 840b5ed634b..15310efad23 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -9238,7 +9238,7 @@ ada_evaluate_subexp (struct type *expect_type, struct expression *exp, } nosideret: - return value_from_longest (builtin_type_long, (LONGEST) 1); + return value_from_longest (builtin_type_int8, (LONGEST) 1); } diff --git a/gdb/eval.c b/gdb/eval.c index ab7d83f1bfe..6a43e9486e7 100644 --- a/gdb/eval.c +++ b/gdb/eval.c @@ -2482,7 +2482,7 @@ GDB does not (yet) know how to evaluate that kind of expression")); } nosideret: - return value_from_longest (builtin_type_long, (LONGEST) 1); + return value_from_longest (builtin_type_int8, (LONGEST) 1); } /* Evaluate a subexpression of EXP, at index *POS, diff --git a/gdb/jv-lang.c b/gdb/jv-lang.c index e74b72da4a2..4430633240e 100644 --- a/gdb/jv-lang.c +++ b/gdb/jv-lang.c @@ -938,7 +938,7 @@ evaluate_subexp_java (struct type *expect_type, struct expression *exp, standard: return evaluate_subexp_standard (expect_type, exp, pos, noside); nosideret: - return value_from_longest (builtin_type_long, (LONGEST) 1); + return value_from_longest (builtin_type_int8, (LONGEST) 1); } static char *java_demangle (const char *mangled, int options) diff --git a/gdb/m2-lang.c b/gdb/m2-lang.c index 5c3a2840a5c..8bc0ce79523 100644 --- a/gdb/m2-lang.c +++ b/gdb/m2-lang.c @@ -273,7 +273,7 @@ evaluate_subexp_modula2 (struct type *expect_type, struct expression *exp, } nosideret: - return value_from_longest (builtin_type_long, (LONGEST) 1); + return value_from_longest (builtin_type_int8, (LONGEST) 1); } diff --git a/gdb/scm-lang.c b/gdb/scm-lang.c index 991e4b48d82..08f016d4576 100644 --- a/gdb/scm-lang.c +++ b/gdb/scm-lang.c @@ -220,7 +220,7 @@ evaluate_exp (struct type *expect_type, struct expression *exp, } return evaluate_subexp_standard (expect_type, exp, pos, noside); nosideret: - return value_from_longest (builtin_type_long, (LONGEST) 1); + return value_from_longest (builtin_type_int8, (LONGEST) 1); } const struct exp_descriptor exp_descriptor_scm = -- 2.30.2